X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=blobdiff_plain;f=src%2Fobject.h;h=3ffec1f6c16a5863f017a9b3e3e5329e130b7e2b;hp=cc82d1ba8e2f1107e4401e29a83089b8447e1dda;hb=03085a16aa2fef785083fa3921be83015e08b290;hpb=b7c92831285013b2a0783bccaf3d900545ebb5ba diff --git a/src/object.h b/src/object.h index cc82d1b..3ffec1f 100644 --- a/src/object.h +++ b/src/object.h @@ -12,12 +12,12 @@ class SceneNode; enum ObjType { OBJ_NULL, OBJ_MESH }; class Object { -private: +protected: std::string name; + mutable AABox aabb; public: Material mtl; - //GeomObject *bvol; SceneNode *node; Object(); @@ -32,6 +32,8 @@ public: virtual void update(float dt = 0.0f); virtual void draw() const; + + virtual const AABox &get_aabox() const; }; #endif // OBJECT_H_