coeng

view 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
line source
1 #ifndef CO_XFORM_H_
2 #define CO_XFORM_H_
4 #include <vmath/vmath.h>
5 #include "comp.h"
7 class CoXForm : public Component {
8 public:
9 Matrix4x4 xform;
11 CoXForm();
12 };
14 class CoPRS : public Component {
15 private:
16 CoXForm *co_xform; // cached xform component of the parent object
18 public:
19 Vector3 pos, scale;
20 Quaternion rot;
22 CoPRS();
24 void update();
25 };
28 #endif // CO_XFORM_H_