CUGL
2.0
|
Functions | |
CUGLErrorType | cugl::getError () |
const char * | cugl::getErrorString (CUGLErrorType err) |
void | cugl::checkCUGLStatus () |
void | cugl::checkOpenGLStatus () |
enum cugl::CUGLErrorType |
Enumeration values for CUGL function errors.
void cugl::checkCUGLStatus | ( | ) |
Display a message if an CUGL error has occurred. This function checks the CUGL error status. If no error has occurred, it has no effect. If CUGL has reported an error, this function writes the CUGL error code and the corresponding message to the stream cerr
.
Since getError()
clears the CUGL error flag, after calling this function CUGL shows no errors.
This function is intended mainly for development and should not normally be included in a production program.
void cugl::checkOpenGLStatus | ( | ) |
Display a message if an OpenGL error has occurred. This function checks the OpenGL error status. If no error has occurred, it has no effect. If OpenGL has reported an error, this function writes the OpenGL error code and the corresponding message to the stream cerr
.
Since glGetError()
clears the OpenGL error flag, after calling this function OpenGL shows no errors.
This function is intended mainly for development and should not normally be included in a production program.
CUGLErrorType cugl::getError | ( | ) |
Set code to NO_ERROR
and return last error code.
const char* cugl::getErrorString | ( | CUGLErrorType | err | ) |
Map error codes to descriptive strings.
err | is an error code obtained from getError() . |