X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fscene.h;h=e6e337b907388591ea82f8a769cb9f163b819f0f;hp=27656a59db2fbbdc5af57de1daf498361f5f07a5;hb=72a13418cc19e750abf3f8d8a52aea5e1abe4983;hpb=3919a742c65783a9ebce05a88427bdcd8f6a6c92 diff --git a/source/scene.h b/source/scene.h index 27656a59..e6e337b9 100644 --- a/source/scene.h +++ b/source/scene.h @@ -3,6 +3,7 @@ #include #include +#include "matrix.h" #include "renderable.h" #include "vector.h" @@ -28,6 +29,7 @@ public: protected: std::list owned_data; + mutable Matrix culling_matrix; mutable Vector4 frustum_edges[6]; Scene() { } @@ -37,11 +39,8 @@ private: public: virtual ~Scene(); - virtual void add(const Renderable &) = 0; - virtual void remove(const Renderable &) = 0; - - using Renderable::render; - virtual void render(const Tag & = Tag()) const; + virtual void add(Renderable &) = 0; + virtual void remove(Renderable &) = 0; protected: bool setup_frustum(const Renderer &) const;