set_error_check(errcheck_func=Ellipsis,
errcheck_ok=Ellipsis,
name_re=' ^gl[A-Z].*$ ' ,
d=None)
| source code
|
Add error handlers to OpenGL functions.
The errcheck attribute of all items in a dictionary
d having such an attribute and matching name_re
will be set to a function that calls errcheck_func and
raises GLError if the return value is unequal to
errcheck_ok . By default, d is
glitter.raw.__dict__ .
Defaults for errcheck_func and errcheck_ok
are glGetError and GL_NO_ERROR , respectively.
If errcheck_func is None , error checking will
be disabled.
|