Class GLError

java.lang.Object
panamagl.opengl.GLError

public class GLError extends Object
A toy helper to track GL errors. Should later be improved as made in JOGL with a pipeline approach.
Author:
Martin Pernollet
  • Constructor Details

    • GLError

      public GLError(int code, String message)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • throwRuntimeException

      public void throwRuntimeException()
      Throw a runtime exception with this message and error code
    • systemErrPrint

      public void systemErrPrint()
      Print error on system.err
    • get

      public static GLError get(GL gl)
      Check if the open gl pipeline is in an erroenous state. Return an error if it is, null otherwise.
    • checkAndThrow

      public static void checkAndThrow(GL gl)
    • checkAndPrint

      public static void checkAndPrint(GL gl)