]> git.tdb.fi Git - libs/gl.git/blob - source/clipplane.h
Remove the deprecated ProgramBuilder class
[libs/gl.git] / source / clipplane.h
1 #ifndef MSP_GL_CLIP_H_
2 #define MSP_GL_CLIP_H_
3
4 #include "vector.h"
5
6 namespace Msp {
7 namespace GL {
8
9 class Matrix;
10 class ProgramData;
11
12 class ClipPlane
13 {
14 private:
15         Vector4 eq;
16
17 public:
18         ClipPlane();
19         ClipPlane(const Vector4 &);
20         ClipPlane(const Vector3 &, const Vector3 &);
21
22         void set_equation(const Vector4 &);
23         void set_plane(const Vector3 &, const Vector3 &);
24         void update_shader_data(ProgramData &, const Matrix &, unsigned) const;
25 };
26
27 } // namespace GL
28 } // namespace Msp
29
30 #endif