Level H Engine
Functions
OpenGLRendering Namespace Reference

A namespace for handeling the openGLFunctions. More...

Functions

void generateVertexArrays (GLsizei numOfArrays, GLuint *VAO)
 A function to generate vertex arrays. More...
 
void activateShaderProgram (std::string shaderID)
 A function to activate a shader program. More...
 
void activateMeshVAO (std::string meshID)
 A function to activate a mesh vertex array object. More...
 
void activateMat4Uniform (std::string shaderID, std::string uniformID, float *matPointer)
 Activate a matrix 4 uniform. More...
 
void activateVec3Uniform (std::string shaderID, std::string uniformID, Vec3 vec)
 Activate a Vec 3 uniform. More...
 
void activateVec2Uniform (std::string shaderID, std::string uniformID, Vec2 vec)
 Activate a Vec 2 uniform. More...
 
void unbindVAO ()
 Unbond a vertex array object. More...
 
void disableShaderProgram ()
 Disable a shader program. More...
 
void bindTextures (std::string meshID, std::string shaderID)
 A function to bind textures. More...
 
void bindVertexArray (GLuint VAO)
 A function to bind a vertex array. More...
 
void drawWithVerticies (std::string meshID)
 A function to draw a mesh with verticies. More...
 
void drawWithPoints (std::string meshID)
 A function to draw a mesh with points. More...
 
void drawWithLines (std::string meshID)
 A function to draw a mesh with lines. More...
 
void drawWithIndices (std::string meshID)
 A function to draw a mesh with indicies. More...
 

Detailed Description

A namespace for handeling the openGLFunctions.

Function Documentation

◆ activateMat4Uniform()

void OpenGLRendering::activateMat4Uniform ( std::string  shaderID,
std::string  uniformID,
float *  matPointer 
)

Activate a matrix 4 uniform.

Parameters
shaderIDThe shader.
uniformIDThe uniform.
matPointerA pointer to the matrix.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ activateMeshVAO()

void OpenGLRendering::activateMeshVAO ( std::string  meshID)

A function to activate a mesh vertex array object.

Parameters
meshIdThe mesh to activate.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ activateShaderProgram()

void OpenGLRendering::activateShaderProgram ( std::string  shaderID)

A function to activate a shader program.

Parameters
shaderIDThe shader to activate.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ activateVec2Uniform()

void OpenGLRendering::activateVec2Uniform ( std::string  shaderID,
std::string  uniformID,
Vec2  vec 
)

Activate a Vec 2 uniform.

Parameters
shaderIDThe shader.
uniformIDThe uniform.
Vec3The vector to activate.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ activateVec3Uniform()

void OpenGLRendering::activateVec3Uniform ( std::string  shaderID,
std::string  uniformID,
Vec3  vec 
)

Activate a Vec 3 uniform.

Parameters
shaderIDThe shader.
uniformIDThe uniform.
Vec3The vector to activate.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ bindTextures()

void OpenGLRendering::bindTextures ( std::string  meshID,
std::string  shaderID 
)

A function to bind textures.

Parameters
uniformIDThe uniform.
shaderIDThe shader.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ bindVertexArray()

void OpenGLRendering::bindVertexArray ( GLuint  VAO)

A function to bind a vertex array.

Parameters
VAOA pointer to the vertex array object.

◆ disableShaderProgram()

void OpenGLRendering::disableShaderProgram ( )

Disable a shader program.

Here is the caller graph for this function:

◆ drawWithIndices()

void OpenGLRendering::drawWithIndices ( std::string  meshID)

A function to draw a mesh with indicies.

Parameters
meshIdThe mesh to activate.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawWithLines()

void OpenGLRendering::drawWithLines ( std::string  meshID)

A function to draw a mesh with lines.

Parameters
meshIdThe mesh to activate.
Here is the call graph for this function:

◆ drawWithPoints()

void OpenGLRendering::drawWithPoints ( std::string  meshID)

A function to draw a mesh with points.

Parameters
meshIdThe mesh to activate.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawWithVerticies()

void OpenGLRendering::drawWithVerticies ( std::string  meshID)

A function to draw a mesh with verticies.

Parameters
meshIdThe mesh to activate.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ generateVertexArrays()

void OpenGLRendering::generateVertexArrays ( GLsizei  numOfArrays,
GLuint *  VAO 
)

A function to generate vertex arrays.

Parameters
numOfArraysThe number of array to generate.
VAOA pointer to the vertex array object.

◆ unbindVAO()

void OpenGLRendering::unbindVAO ( )

Unbond a vertex array object.

Here is the caller graph for this function: