Level H Engine
Namespaces | Functions
OpenGLRendering.h File Reference
#include <string>
#include "GL/glew.h"
#include "../Maths/Vec3.h"
#include "../Maths/Vec2.h"
Include dependency graph for OpenGLRendering.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 OpenGLRendering
 A namespace for handeling the openGLFunctions.
 

Functions

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