Tucano  0.1
A library for rapid prototyping with modern OpenGL and GLSL
Tucano::Misc Namespace Reference

Functions

void errorCheckFunc (std::string file, int line, std::string message="")
 GL error check method. More...
 
void initGlew (void)
 Initialize Glew. More...
 

Function Documentation

void Tucano::Misc::errorCheckFunc ( std::string  file,
int  line,
std::string  message = "" 
)
inline

GL error check method.

This is a method to check for OpenGL erros. Note this will catch the last OpenGL error, independently form where it was thrown. This should be used more for debug purposes. Usually the macros FILE and LINE are passed as parameters, with and optional custom message.

Parameters
fileFile from where method was called.
lineLine in file.
messageA custom message to be exhibited.
void Tucano::Misc::initGlew ( void  )
inline

Initialize Glew.