#include <list>
#include <msp/datafile/objectloader.h>
+#include "matrix.h"
#include "renderable.h"
#include "vector.h"
protected:
std::list<Renderable *> owned_data;
- mutable Vector3 frustum_edges[4];
+ mutable Matrix culling_matrix;
+ mutable Vector4 frustum_edges[6];
Scene() { }
private:
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