Package panamagl.opengl
Class GLError
java.lang.Object
panamagl.opengl.GLError
A toy helper to track GL errors.
Should later be improved as made in JOGL with a pipeline approach.
- Author:
- Martin Pernollet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkAndPrint
(GL gl) static void
checkAndThrow
(GL gl) static GLError
Check if the open gl pipeline is in an erroenous state.void
Print error on system.errvoid
Throw a runtime exception with this message and error codetoString()
-
Constructor Details
-
GLError
-
-
Method Details
-
toString
-
throwRuntimeException
public void throwRuntimeException()Throw a runtime exception with this message and error code -
systemErrPrint
public void systemErrPrint()Print error on system.err -
get
Check if the open gl pipeline is in an erroenous state. Return an error if it is, null otherwise. -
checkAndThrow
-
checkAndPrint
-