OpenGL_accelerate.errorchecker

Cython-coded GL-error-check module

Classes

Global error-checking object
This error checker also includes "safeGetError" functionality, that is, it allows for checking for context validity as well as for glBegin/glEnd checking.
__init__
Initialize from a platform module/reference
_getErrors
_isValid
_noErrorResult
check
checkContext
doChecks
glCheckError
Base GL Error checker compatible with new ctypes errcheck protocol
This function will raise a GLError with just the calling information available at the C-calling level, i.e. the error code, cArguments, baseOperation and result. Higher-level code is responsible for any extra annotations.
Note: glCheckError relies on glBegin/glEnd interactions to prevent glGetError being called during a glBegin/glEnd sequence. If you are calling glBegin/glEnd in C you should call onBegin and onEnd appropriately.
onBegin
Called by glBegin to record the fact that glGetError won't work
onEnd
Called by glEnd to record the fact that glGetError will work