]> git.tdb.fi Git - libs/gl.git/blob - source/frustumculler.h
Move some common matrix operations to the header so they can be inlined
[libs/gl.git] / source / frustumculler.h
1 #ifndef MSP_GL_FRUSTUMCULLER_H_
2 #define MSP_GL_FRUSTUMCULLER_H_
3
4 #include "culler.h"
5 #include "vector.h"
6
7 namespace Msp {
8 namespace GL {
9
10 /**
11 Culls objects that are outside of the view frustum.
12 */
13 class FrustumCuller: public Culler
14 {
15 private:
16         Vector3 edges[4];
17
18 public:
19         virtual void setup_pass(const Renderer &);
20
21         virtual bool cull(const Renderer &, const Renderable &) const;
22 };
23
24 } // namespace GL
25 } // namespace Msp
26
27 #endif