Package dev.prozilla.pine.common.lwjgl
Class GLUtils
java.lang.Object
dev.prozilla.pine.common.lwjgl.GLUtils
OpenGL utilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidChecks if an OpenGL error has been detected and throws aGLExceptionif it has.static @NotNull StringgetErrorString(int errorCode) Translates an OpenGL error code to a string describing the error.static intgetInt(int name)
-
Method Details
-
getErrorString
Translates an OpenGL error code to a string describing the error. Source: GLUtil.java.- Parameters:
errorCode- The error code, as returned byGL11.glGetError()- Returns:
- The error description.
-
checkError
Checks if an OpenGL error has been detected and throws aGLExceptionif it has.- Throws:
GLException- If an OpenGL error has been detected.
-
getInt
public static int getInt(int name)
-