coeng

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/co_dbgvis.h	Sat Feb 14 07:27:12 2015 +0200
     1.3 @@ -0,0 +1,22 @@
     1.4 +#ifndef CO_DBGVIS_H_
     1.5 +#define CO_DBGVIS_H_
     1.6 +
     1.7 +#include "gobj.h"
     1.8 +#include "comp.h"
     1.9 +#include "co_xform.h"
    1.10 +
    1.11 +class CoSphereVis : public Component {
    1.12 +protected:
    1.13 +	CoXForm *co_xform;
    1.14 +
    1.15 +public:
    1.16 +	float radius;
    1.17 +	Vector3 color;
    1.18 +
    1.19 +	CoSphereVis();
    1.20 +
    1.21 +	void update(float dt);
    1.22 +	void draw() const;
    1.23 +};
    1.24 +
    1.25 +#endif	// CO_DBGVIS_H_