A linked OpenGL program.
More...
#include <shaderProgram.h>
◆ ShaderProgram()
| ShaderProgram::ShaderProgram |
( |
std::vector< ShaderSource > | shaderList = {} | ) |
|
|
explicit |
Create a new shader program. Compiles all the shaders and links the program.
- Parameters
-
| shaderList | The list of shaders to compile and link in the program. |
◆ getProgramId()
| GLuint Aire::ShaderProgram::getProgramId |
( |
| ) |
const |
|
inline |
- Returns
- The OpenGL handle for the program object
◆ set2DTextureUniform()
Set a uniform sampler2D variable.
- Parameters
-
| uniformName | The name of the uniform |
| textureHandle | The texture to initialise the uniform with |
◆ setCubeTextureUniform()
Set a uniform samplerCube variable
- Parameters
-
| uniformName | The name of the uniform |
| textureHandle | The texture to initialise the uniform with |
◆ unbind2DTextures()
| void Aire::ShaderProgram::unbind2DTextures |
( |
int | numTextures | ) |
|
|
inline |
Unbind the 2D textures currently bound to the program
- Parameters
-
| numTextures | The number of textures to unbind. |
◆ unbindCubeTextures()
| void Aire::ShaderProgram::unbindCubeTextures |
( |
int | numTextures | ) |
|
|
inline |
Unbind the cube textures currently bound to the program
- Parameters
-
| numTextures | The number of textures to unbind. |
The documentation for this class was generated from the following files: