coeng

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/co_xform.h	Sat Feb 14 01:35:42 2015 +0200
     1.3 @@ -0,0 +1,28 @@
     1.4 +#ifndef CO_XFORM_H_
     1.5 +#define CO_XFORM_H_
     1.6 +
     1.7 +#include <vmath/vmath.h>
     1.8 +#include "comp.h"
     1.9 +
    1.10 +class CoXForm : public Component {
    1.11 +public:
    1.12 +	Matrix4x4 xform;
    1.13 +
    1.14 +	CoXForm();
    1.15 +};
    1.16 +
    1.17 +class CoPRS : public Component {
    1.18 +private:
    1.19 +	CoXForm *co_xform;	// cached xform component of the parent object
    1.20 +
    1.21 +public:
    1.22 +	Vector3 pos, scale;
    1.23 +	Quaternion rot;
    1.24 +
    1.25 +	CoPRS();
    1.26 +
    1.27 +	void update();
    1.28 +};
    1.29 +
    1.30 +
    1.31 +#endif	// CO_XFORM_H_