coeng
annotate src/comp_xform.h @ 4:49a2e70ac455
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 10 Feb 2015 17:21:30 +0200 |
parents | |
children |
rev | line source |
---|---|
nuclear@2 | 1 #ifndef COMP_XFORM_H_ |
nuclear@2 | 2 #define COMP_XFORM_H_ |
nuclear@2 | 3 |
nuclear@2 | 4 #include <vmath/vmath.h> |
nuclear@2 | 5 #include "comp.h" |
nuclear@2 | 6 |
nuclear@2 | 7 class CompXForm : public Component { |
nuclear@2 | 8 public: |
nuclear@2 | 9 Matrix4x4 xform; |
nuclear@2 | 10 |
nuclear@2 | 11 CompXForm(); |
nuclear@2 | 12 }; |
nuclear@2 | 13 |
nuclear@2 | 14 class CompPRS : public Component { |
nuclear@2 | 15 private: |
nuclear@2 | 16 CompXForm *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@2 | 22 CompPRS(); |
nuclear@2 | 23 |
nuclear@2 | 24 void update(); |
nuclear@2 | 25 }; |
nuclear@2 | 26 |
nuclear@2 | 27 |
nuclear@2 | 28 #endif // COMP_XFORM_H_ |