Debian Codegraph @

include/iglprogram.h

raw
1 #pragma once
2
3 class Matrix4;
4
5 /// Representation of a GL vertex/fragment program.
6 class GLProgram
7 {
8 public:
9 /// Destructor
10 virtual ~GLProgram() {}
11
12 /// Bind this program as the currently-operative shader.
13 virtual void enable() = 0;
14
15 /// Unbind this program from OpenGL.
16 virtual void disable() = 0;
17 };
18
19 // Interface implemented by GLSL programs supporting alpha test
20 class ISupportsAlphaTest
21 {
22 public:
23 virtual ~ISupportsAlphaTest() {}
24
25 // Set the alpha test value uniform
26 virtual void setAlphaTest(float alphaTest) = 0;
27
28 // Set the diffuse texture matrix needed to look up the texel for the alpha test
29 virtual void setDiffuseTextureTransform(const Matrix4& transform) = 0;
30 };