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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckAndPrint(GL gl) static voidcheckAndPrint(GL gl, String context) static voidcheckAndThrow(GL gl) static voidcheckAndThrow(GL gl, String context) static GLErrorCheck if the open gl pipeline is in an erroenous state.voidPrint error on system.errvoidThrow 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
-
checkAndThrow
-
checkAndThrow
-
checkAndPrint
-
checkAndPrint
-