Rubeus::GraphicComponents::RShaderComponent class

A shader class. Allows shader code to be sent to OpenGL.

Base classes

class Rubeus::RMasterComponent
A master component. Serves as parent class for all components.

Public functions

void setUniform1fv(const GLchar* name, float* values, int count)
Sets the uniform float array required in this shader.
void setUniform1iv(const GLchar* name, int* values, int count)
Sets the uniform int array required in this shader.

Public variables

GLuint m_ShaderID
Identifier for the shader being added.
const char* m_VertPath
Full pathname of the vertex shader code file.
const char* m_FragPath
Full pathname of the fragment shader code file.
UtilityComponents::RLoaderComponent* m_Loader
The loader component for shader loading.

Function documentation

void Rubeus::GraphicComponents::RShaderComponent::setUniform1fv(const GLchar* name, float* values, int count)

Sets the uniform float array required in this shader.

Parameters
name Name given to the uniform in this shader.
values Pointer to the first element of the float array to be passed in.
count Number of elements in the float array.

void Rubeus::GraphicComponents::RShaderComponent::setUniform1iv(const GLchar* name, int* values, int count)

Sets the uniform int array required in this shader.

Parameters
name Name given to the uniform in this shader.
values Pointer to the first element of the int array to be passed in.
count Number of elements in the int array.