Class GLUtils

java.lang.Object
dev.prozilla.pine.common.lwjgl.GLUtils

public final class GLUtils extends Object
OpenGL utilities.
  • Method Details

    • getErrorString

      @NotNull public static @NotNull String getErrorString(int errorCode)
      Translates an OpenGL error code to a string describing the error. Source: GLUtil.java.
      Parameters:
      errorCode - The error code, as returned by GL11.glGetError()
      Returns:
      The error description.
    • checkError

      public static void checkError() throws GLException
      Checks if an OpenGL error has been detected and throws a GLException if it has.
      Throws:
      GLException - If an OpenGL error has been detected.
    • getInt

      public static int getInt(int name)