X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fscene.h;h=a04fbc01f9a304c5969759fd6afc6380af52b8fe;hb=3b159edbe4e80a2bc19c4c2fcd42cb996b9fbfe0;hp=611f3508e2d7e103a592787aa5e08ea75f0f1625;hpb=802832425b02be7b3ccb7d585fe63f4b68b5275f;p=libs%2Fgl.git diff --git a/source/scene.h b/source/scene.h index 611f3508..a04fbc01 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,7 +29,8 @@ public: protected: std::list owned_data; - mutable Vector3 frustum_edges[4]; + mutable Matrix culling_matrix; + mutable Vector4 frustum_edges[6]; Scene() { } private: @@ -44,8 +46,8 @@ public: virtual void render(const Tag & = Tag()) const; protected: - void setup_frustum(const Renderer &) const; - bool frustum_cull(const Renderer &, const Renderable &) const; + bool setup_frustum(const Renderer &) const; + bool frustum_cull(const Renderable &) const; }; } // namespace GL