coeng

view src/co_dbgvis.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
children af24cfbdf9b6
line source
1 #ifndef CO_DBGVIS_H_
2 #define CO_DBGVIS_H_
4 #include "gobj.h"
5 #include "comp.h"
6 #include "co_xform.h"
8 class CoSphereVis : public Component {
9 protected:
10 CoXForm *co_xform;
12 public:
13 float radius;
14 Vector3 color;
16 CoSphereVis();
18 void update(float dt);
19 void draw() const;
20 };
22 #endif // CO_DBGVIS_H_