Package org.lwjgl.opengles
Class Util
- java.lang.Object
-
- org.lwjgl.opengles.Util
-
public final class Util extends Object
Simple utility class.- Author:
- Spasi
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckGLError()Checks for OpenGL ES errors.static StringtranslateGLErrorString(int error_code)Translates a GL error code to a String describing the error.
-
-
-
Method Detail
-
checkGLError
public static void checkGLError() throws OpenGLExceptionChecks for OpenGL ES errors.- Throws:
OpenGLException- if GLES20.glGetError() returns anything else than GLES20.GL_NO_ERROR
-
translateGLErrorString
public static String translateGLErrorString(int error_code)
Translates a GL error code to a String describing the error.- Parameters:
error_code- the OpenGL ES error code- Returns:
- the error description
-
-