src/ldtypes.h

changeset 555
5bf1f8dd901d
parent 554
2478a6b3106d
child 556
5f4395ec5db0
equal deleted inserted replaced
554:2478a6b3106d 555:5bf1f8dd901d
182 class LDMatrixObject 182 class LDMatrixObject
183 { PROPERTY (public, LDObject*, LinkPointer, NO_OPS, STOCK_WRITE) 183 { PROPERTY (public, LDObject*, LinkPointer, NO_OPS, STOCK_WRITE)
184 PROPERTY (public, matrix, Transform, NO_OPS, CUSTOM_WRITE) 184 PROPERTY (public, matrix, Transform, NO_OPS, CUSTOM_WRITE)
185 185
186 public: 186 public:
187 LDMatrixObject() {} 187 LDMatrixObject() :
188 m_Position (LDSharedVertex::getSharedVertex ({0, 0, 0})) {}
189
188 LDMatrixObject (const matrix& transform, const vertex& pos) : 190 LDMatrixObject (const matrix& transform, const vertex& pos) :
189 m_Transform (transform), 191 m_Transform (transform),
190 m_Position (LDSharedVertex::getSharedVertex (pos)) {} 192 m_Position (LDSharedVertex::getSharedVertex (pos)) {}
191 193
192 inline const vertex& getPosition() const 194 inline const vertex& getPosition() const

mercurial