X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fscene.h;h=9e2da3dfe97b620bf0f9008dc36ca2b22fbe7532;hb=dafd3a42a2f06bfd8e88f9240fc2f4bd3d401541;hp=27656a59db2fbbdc5af57de1daf498361f5f07a5;hpb=3919a742c65783a9ebce05a88427bdcd8f6a6c92;p=libs%2Fgl.git diff --git a/source/scene.h b/source/scene.h index 27656a59..9e2da3df 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() { } @@ -40,9 +42,6 @@ public: virtual void add(const Renderable &) = 0; virtual void remove(const Renderable &) = 0; - using Renderable::render; - virtual void render(const Tag & = Tag()) const; - protected: bool setup_frustum(const Renderer &) const; bool frustum_cull(const Renderable &) const;