|
Level H Engine
|
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... | |
A namespace for handeling the openGLFunctions.
| void OpenGLRendering::activateMat4Uniform | ( | std::string | shaderID, |
| std::string | uniformID, | ||
| float * | matPointer | ||
| ) |
Activate a matrix 4 uniform.
| shaderID | The shader. |
| uniformID | The uniform. |
| matPointer | A pointer to the matrix. |


| void OpenGLRendering::activateMeshVAO | ( | std::string | meshID | ) |
A function to activate a mesh vertex array object.
| meshId | The mesh to activate. |


| void OpenGLRendering::activateShaderProgram | ( | std::string | shaderID | ) |
A function to activate a shader program.
| shaderID | The shader to activate. |


| void OpenGLRendering::activateVec2Uniform | ( | std::string | shaderID, |
| std::string | uniformID, | ||
| Vec2 | vec | ||
| ) |
Activate a Vec 2 uniform.
| shaderID | The shader. |
| uniformID | The uniform. |
| Vec3 | The vector to activate. |


| void OpenGLRendering::activateVec3Uniform | ( | std::string | shaderID, |
| std::string | uniformID, | ||
| Vec3 | vec | ||
| ) |
Activate a Vec 3 uniform.
| shaderID | The shader. |
| uniformID | The uniform. |
| Vec3 | The vector to activate. |


| void OpenGLRendering::bindTextures | ( | std::string | meshID, |
| std::string | shaderID | ||
| ) |
A function to bind textures.
| uniformID | The uniform. |
| shaderID | The shader. |


| void OpenGLRendering::bindVertexArray | ( | GLuint | VAO | ) |
A function to bind a vertex array.
| VAO | A pointer to the vertex array object. |
| void OpenGLRendering::disableShaderProgram | ( | ) |
Disable a shader program.

| void OpenGLRendering::drawWithIndices | ( | std::string | meshID | ) |
A function to draw a mesh with indicies.
| meshId | The mesh to activate. |


| void OpenGLRendering::drawWithLines | ( | std::string | meshID | ) |
A function to draw a mesh with lines.
| meshId | The mesh to activate. |

| void OpenGLRendering::drawWithPoints | ( | std::string | meshID | ) |
A function to draw a mesh with points.
| meshId | The mesh to activate. |


| void OpenGLRendering::drawWithVerticies | ( | std::string | meshID | ) |
A function to draw a mesh with verticies.
| meshId | The mesh to activate. |


| void OpenGLRendering::generateVertexArrays | ( | GLsizei | numOfArrays, |
| GLuint * | VAO | ||
| ) |
A function to generate vertex arrays.
| numOfArrays | The number of array to generate. |
| VAO | A pointer to the vertex array object. |
| void OpenGLRendering::unbindVAO | ( | ) |
Unbond a vertex array object.

1.8.13