coeng

view src/comp_xform.h @ 2:4a1c9597f4d3

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 05 Feb 2015 11:04:07 +0200
parents
children
line source
1 #ifndef COMP_XFORM_H_
2 #define COMP_XFORM_H_
4 #include <vmath/vmath.h>
5 #include "comp.h"
7 class CompXForm : public Component {
8 public:
9 Matrix4x4 xform;
11 CompXForm();
12 };
14 class CompPRS : public Component {
15 private:
16 CompXForm *co_xform; // cached xform component of the parent object
18 public:
19 Vector3 pos, scale;
20 Quaternion rot;
22 CompPRS();
24 void update();
25 };
28 #endif // COMP_XFORM_H_