The class responsible for creating amazing shaders.
More...
#include <Shader.h>
|
| | Shader (const char *vertexPath, const char *fragmentPath) |
| | Creates the shader by taking in the vertex and fragment shader files. More...
|
| |
| | ~Shader () |
| |
| void | setUniform1f (const GLchar *name, float value) |
| |
| void | setUniform1fv (const GLchar *name, float *value, GLsizei count) |
| |
| void | setUniform1i (const GLchar *name, int value) |
| |
| void | setUniform1iv (const GLchar *name, int *value, GLsizei count) |
| |
| void | setUniform2f (const GLchar *name, const glm::vec2 &vector) |
| |
| void | setUniform3f (const GLchar *name, const glm::vec3 &vector) |
| |
| void | setUniform4f (const GLchar *name, const glm::vec4 &vector) |
| |
| void | setUniformMat4 (const GLchar *name, const glm::mat4 &matrix) |
| |
| void | enable () |
| | Enables the shader. More...
|
| |
| void | disable () |
| | Disables the shader. More...
|
| |
| GLint | getShaderProgram () const |
| | Gets the shaders Program. More...
|
| |
The class responsible for creating amazing shaders.
◆ Shader()
| fireworks::graphics::Shader::Shader |
( |
const char * |
vertexPath, |
|
|
const char * |
fragmentPath |
|
) |
| |
Creates the shader by taking in the vertex and fragment shader files.
- Parameters
-
| vertexPath | The path to the vertex shader file |
| fragmentPath | The path to the fragment shader file |
◆ ~Shader()
| fireworks::graphics::Shader::~Shader |
( |
| ) |
|
◆ disable()
| void fireworks::graphics::Shader::disable |
( |
| ) |
|
◆ enable()
| void fireworks::graphics::Shader::enable |
( |
| ) |
|
◆ getShaderProgram()
| GLint fireworks::graphics::Shader::getShaderProgram |
( |
| ) |
const |
|
inline |
Gets the shaders Program.
◆ setUniform1f()
| void fireworks::graphics::Shader::setUniform1f |
( |
const GLchar * |
name, |
|
|
float |
value |
|
) |
| |
◆ setUniform1fv()
| void fireworks::graphics::Shader::setUniform1fv |
( |
const GLchar * |
name, |
|
|
float * |
value, |
|
|
GLsizei |
count |
|
) |
| |
◆ setUniform1i()
| void fireworks::graphics::Shader::setUniform1i |
( |
const GLchar * |
name, |
|
|
int |
value |
|
) |
| |
◆ setUniform1iv()
| void fireworks::graphics::Shader::setUniform1iv |
( |
const GLchar * |
name, |
|
|
int * |
value, |
|
|
GLsizei |
count |
|
) |
| |
◆ setUniform2f()
| void fireworks::graphics::Shader::setUniform2f |
( |
const GLchar * |
name, |
|
|
const glm::vec2 & |
vector |
|
) |
| |
◆ setUniform3f()
| void fireworks::graphics::Shader::setUniform3f |
( |
const GLchar * |
name, |
|
|
const glm::vec3 & |
vector |
|
) |
| |
◆ setUniform4f()
| void fireworks::graphics::Shader::setUniform4f |
( |
const GLchar * |
name, |
|
|
const glm::vec4 & |
vector |
|
) |
| |
◆ setUniformMat4()
| void fireworks::graphics::Shader::setUniformMat4 |
( |
const GLchar * |
name, |
|
|
const glm::mat4 & |
matrix |
|
) |
| |
◆ m_FragPath
| const char* fireworks::graphics::Shader::m_FragPath |
Path to the fragment shader file.
◆ m_ShaderID
| GLuint fireworks::graphics::Shader::m_ShaderID |
◆ m_VertPath
| const char* fireworks::graphics::Shader::m_VertPath |
Path to the vertex shader file.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/fireworks-engine/checkouts/latest/Fireworks Engine/Fireworks Core/src/graphics/Shader.h
- /home/docs/checkouts/readthedocs.org/user_builds/fireworks-engine/checkouts/latest/Fireworks Engine/Fireworks Core/src/graphics/Shader.cpp