coeng

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