coeng
diff src/co_xform.h @ 6:2f872a179914
first component test:
- prs, xform, physics components with dependencies
- topological sort of components to update them in the correct order
- debug visualization component
todo: remove draw() from components, doesn't make sense
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 14 Feb 2015 07:27:12 +0200 |
parents | 0e5da17d589c |
children | 8cce82794f90 |
line diff
1.1 --- a/src/co_xform.h Sat Feb 14 01:35:42 2015 +0200 1.2 +++ b/src/co_xform.h Sat Feb 14 07:27:12 2015 +0200 1.3 @@ -12,16 +12,18 @@ 1.4 }; 1.5 1.6 class CoPRS : public Component { 1.7 -private: 1.8 +protected: 1.9 CoXForm *co_xform; // cached xform component of the parent object 1.10 1.11 + const char **update_before() const; 1.12 + 1.13 public: 1.14 Vector3 pos, scale; 1.15 Quaternion rot; 1.16 1.17 CoPRS(); 1.18 1.19 - void update(); 1.20 + void update(float dt); 1.21 }; 1.22 1.23