|
CGVIS Utils
|
Functions | |
| std::string | errorString (GLenum glerr) |
| Convert a GL error enum to a short string (e.g., "GL_INVALID_VALUE"). | |
| void | errorOut (const std::string &statement, const std::string &location, uint32_t line, const std::string &file, uint32_t errnum) |
| Internal printer used by the GL() macro to emit formatted errors. | |
| void | checkAndThrow () |
| Throw a GLException if glGetError() reports an error. | |
| void | checkAndThrowShader (GLuint shader) |
| Check a shader object's compile status and throw with its log on error. | |
| void | checkAndThrowProgram (GLuint program) |
| Check a program object's link status and throw with its log on error. | |
| void checkAndThrow | ( | ) |
Throw a GLException if glGetError() reports an error.
| void checkAndThrowProgram | ( | GLuint | program | ) |
Check a program object's link status and throw with its log on error.
| program | Program object name returned by glCreateProgram(). |
| void checkAndThrowShader | ( | GLuint | shader | ) |
Check a shader object's compile status and throw with its log on error.
| shader | Shader object name returned by glCreateShader(). |
| void errorOut | ( | const std::string & | statement, |
| const std::string & | location, | ||
| uint32_t | line, | ||
| const std::string & | file, | ||
| uint32_t | errnum ) |
Internal printer used by the GL() macro to emit formatted errors.
| statement | The stringified GL statement being executed. |
| location | One of "before" or "in" indicating when the error occurred. |
| line | Source line number. |
| file | Source file name. |
| errnum | Numeric GL error code. |
| std::string errorString | ( | GLenum | glerr | ) |
Convert a GL error enum to a short string (e.g., "GL_INVALID_VALUE").
| glerr | Error code returned by glGetError(). |