liballofw
Functions
allofw::glutils Namespace Reference

Functions

void checkGLErrors (const char *info, Logger *logger=Logger::Default())
 
GLuint compileShaderProgram (const char *source_vertex, const char *source_fragment, Logger *logger=Logger::Default())
 
GLuint compileShaderProgram (const char *source_vertex, const char *source_geometry, const char *source_fragment, Logger *logger=Logger::Default())
 

Function Documentation

void allofw::glutils::checkGLErrors ( const char *  info,
Logger logger = Logger::Default() 
)

Print glGetError() to the logger.

Parameters
infoThe description.
loggerThe logger object.
GLuint allofw::glutils::compileShaderProgram ( const char *  source_vertex,
const char *  source_fragment,
Logger logger = Logger::Default() 
)

Compile shader program.

Parameters
source_vertexThe source of the vertex shader.
source_fragmentThe source of the fragment shader.
loggerThe logger object.
Returns
The program ID, or 0 if failed.
GLuint allofw::glutils::compileShaderProgram ( const char *  source_vertex,
const char *  source_geometry,
const char *  source_fragment,
Logger logger = Logger::Default() 
)

Compile shader program with gemoetry shader.

Parameters
source_vertexThe source of the vertex shader.
source_geometryThe source of the geometry shader.
source_fragmentThe source of the fragment shader.
loggerThe logger object.
Returns
The program ID, or 0 if failed.