coeng
annotate src/co_xform.h @ 5:0e5da17d589c
decided to really work on this, so first a slight rename
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 14 Feb 2015 01:35:42 +0200 |
parents | src/comp_xform.h@4a1c9597f4d3 |
children | 2f872a179914 |
rev | line source |
---|---|
nuclear@5 | 1 #ifndef CO_XFORM_H_ |
nuclear@5 | 2 #define CO_XFORM_H_ |
nuclear@2 | 3 |
nuclear@2 | 4 #include <vmath/vmath.h> |
nuclear@2 | 5 #include "comp.h" |
nuclear@2 | 6 |
nuclear@5 | 7 class CoXForm : public Component { |
nuclear@2 | 8 public: |
nuclear@2 | 9 Matrix4x4 xform; |
nuclear@2 | 10 |
nuclear@5 | 11 CoXForm(); |
nuclear@2 | 12 }; |
nuclear@2 | 13 |
nuclear@5 | 14 class CoPRS : public Component { |
nuclear@2 | 15 private: |
nuclear@5 | 16 CoXForm *co_xform; // cached xform component of the parent object |
nuclear@2 | 17 |
nuclear@2 | 18 public: |
nuclear@2 | 19 Vector3 pos, scale; |
nuclear@2 | 20 Quaternion rot; |
nuclear@2 | 21 |
nuclear@5 | 22 CoPRS(); |
nuclear@2 | 23 |
nuclear@2 | 24 void update(); |
nuclear@2 | 25 }; |
nuclear@2 | 26 |
nuclear@2 | 27 |
nuclear@5 | 28 #endif // CO_XFORM_H_ |