Top Description Constructors Methods
org.lwjgl.opengles

public final Class Util

extends Object
Class Inheritance
Imports
org.lwjgl.LWJGLException, org.lwjgl.opengl.OpenGLException

Simple utility class.
Author
Spasi

Constructor Summary

AccessConstructor and Description
private
Util()

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
checkEGLError()

Checks for EGL errors.

public static void
checkGLError()

Checks for OpenGL ES errors.

pack-priv static String

Returns:

the error description
translateEGLErrorString
(int
the EGL error code
error_code
)

Translates an EGL error code to a String describing the error.

public static String

Returns:

the error description
translateGLErrorString
(int
the OpenGL ES error code
error_code
)

Translates a GL error code to a String describing the error.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Utilback to summary
private Util()

Method Detail

checkEGLErrorback to summary
pack-priv static void checkEGLError() throws LWJGLException

Checks for EGL errors.

Exceptions
LWJGLException:
if EGL.eglGetError() returns anything else than EGL.EGL_SUCCESS
checkGLErrorback to summary
public static void checkGLError() throws OpenGLException

Checks for OpenGL ES errors.

Exceptions
OpenGLException:
if GLES20.glGetError() returns anything else than GLES20.GL_NO_ERROR
translateEGLErrorStringback to summary
pack-priv static String translateEGLErrorString(int error_code)

Translates an EGL error code to a String describing the error.

Parameters
error_code:int

the EGL error code

Returns:String

the error description

translateGLErrorStringback to summary
public static String translateGLErrorString(int error_code)

Translates a GL error code to a String describing the error.

Parameters
error_code:int

the OpenGL ES error code

Returns:String

the error description