Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class ARBES2Compatibility

extends Object
Class Inheritance
Imports
java.nio.*, org.lwjgl.system.*

Native bindings to the ARB_ES2_compatibility extension.

This extension adds support for features of OpenGL ES 2.0 that are missing from OpenGL 3.x. Enabling these features will ease the process of porting applications from OpenGL ES 2.0 to OpenGL.

Promoted to core in OpenGL 4.1.

Field Summary

Modifier and TypeField and Description
public static final int
GL_FIXED

Accepted by the type parameter of VertexAttribPointer.

public static final int
GL_HIGH_FLOAT

Accepted by the precisiontype parameter of GetShaderPrecisionFormat.

public static final int
GL_HIGH_INT

Accepted by the precisiontype parameter of GetShaderPrecisionFormat.

public static final int
GL_IMPLEMENTATION_COLOR_READ_FORMAT

Accepted by the value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.

public static final int
GL_IMPLEMENTATION_COLOR_READ_TYPE

Accepted by the value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.

public static final int
GL_LOW_FLOAT

Accepted by the precisiontype parameter of GetShaderPrecisionFormat.

public static final int
GL_LOW_INT

Accepted by the precisiontype parameter of GetShaderPrecisionFormat.

public static final int
GL_MAX_FRAGMENT_UNIFORM_VECTORS

Accepted by the value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.

public static final int
GL_MAX_VARYING_VECTORS

Accepted by the value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.

public static final int
GL_MAX_VERTEX_UNIFORM_VECTORS

Accepted by the value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.

public static final int
GL_MEDIUM_FLOAT

Accepted by the precisiontype parameter of GetShaderPrecisionFormat.

public static final int
GL_MEDIUM_INT

Accepted by the precisiontype parameter of GetShaderPrecisionFormat.

public static final int
GL_NUM_SHADER_BINARY_FORMATS

Accepted by the value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.

public static final int
GL_RGB565

Accepted by the format parameter of most commands taking sized internal formats.

public static final int
GL_SHADER_BINARY_FORMATS

Accepted by the value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.

public static final int
GL_SHADER_COMPILER

Accepted by the value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
glClearDepthf(float
the depth value used when the depth buffer is cleared. The initial value is 1.0f.
depth
)

Specifies the clear value for the depth buffer

public static void
glDepthRangef(float
the mapping of the near clipping plane to window coordinates. The initial value is 0.0f.
zNear
,
float
the mapping of the far clipping plane to window coordinates. The initial value is 1.0f.
zFar
)

Specifies mapping of depth values from normalized device coordinates to window coordinates

public static void
glGetShaderPrecisionFormat(int
the type of shader whose precision to query. One of:
VERTEX_SHADERFRAGMENT_SHADER
shadertype
,
int
the numeric format whose precision and range to query
precisiontype
,
IntBuffer
the address of array of two integers into which encodings of the implementation's numeric range are returned
range
,
IntBuffer
the address of an integer into which the numeric precision of the implementation is written
precision
)

Retrieves the range and precision for numeric formats supported by the shader compiler.

public static int
glGetShaderPrecisionFormat(int
the type of shader whose precision to query. One of:
VERTEX_SHADERFRAGMENT_SHADER
shadertype
,
int
the numeric format whose precision and range to query
precisiontype
,
IntBuffer
the address of array of two integers into which encodings of the implementation's numeric range are returned
range
)

Retrieves the range and precision for numeric formats supported by the shader compiler.

public static void
glGetShaderPrecisionFormat(int shadertype, int precisiontype, int[] range, int[] precision)

Array version of: GetShaderPrecisionFormat

public static void
glReleaseShaderCompiler()

Releases resources allocated by the shader compiler.

public static void
glShaderBinary(IntBuffer
an array of shader handles into which to load pre-compiled shader binaries
shaders
,
int
the format of the shader binaries contained in binary
binaryformat
,
ByteBuffer
an array of bytes containing pre-compiled binary shader code
binary
)

Loads pre-compiled shader binaries.

public static void
glShaderBinary(int[] shaders, int binaryformat, ByteBuffer binary)

Array version of: ShaderBinary

public static void
nglGetShaderPrecisionFormat(int shadertype, int precisiontype, long range, long precision)

Unsafe version of: GetShaderPrecisionFormat

public static void
nglShaderBinary(int
the number of shader object handles contained in shaders
count
,
long shaders, int binaryformat, long binary, int
the length of the array whose address is given in binary
length
)

Unsafe version of: ShaderBinary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_FIXEDback to summary
public static final int GL_FIXED

Accepted by the type parameter of VertexAttribPointer.

GL_HIGH_FLOATback to summary
public static final int GL_HIGH_FLOAT

Accepted by the precisiontype parameter of GetShaderPrecisionFormat.

GL_HIGH_INTback to summary
public static final int GL_HIGH_INT

Accepted by the precisiontype parameter of GetShaderPrecisionFormat.

GL_IMPLEMENTATION_COLOR_READ_FORMATback to summary
public static final int GL_IMPLEMENTATION_COLOR_READ_FORMAT

Accepted by the value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.

GL_IMPLEMENTATION_COLOR_READ_TYPEback to summary
public static final int GL_IMPLEMENTATION_COLOR_READ_TYPE

Accepted by the value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.

GL_LOW_FLOATback to summary
public static final int GL_LOW_FLOAT

Accepted by the precisiontype parameter of GetShaderPrecisionFormat.

GL_LOW_INTback to summary
public static final int GL_LOW_INT

Accepted by the precisiontype parameter of GetShaderPrecisionFormat.

GL_MAX_FRAGMENT_UNIFORM_VECTORSback to summary
public static final int GL_MAX_FRAGMENT_UNIFORM_VECTORS

Accepted by the value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.

GL_MAX_VARYING_VECTORSback to summary
public static final int GL_MAX_VARYING_VECTORS

Accepted by the value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.

GL_MAX_VERTEX_UNIFORM_VECTORSback to summary
public static final int GL_MAX_VERTEX_UNIFORM_VECTORS

Accepted by the value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.

GL_MEDIUM_FLOATback to summary
public static final int GL_MEDIUM_FLOAT

Accepted by the precisiontype parameter of GetShaderPrecisionFormat.

GL_MEDIUM_INTback to summary
public static final int GL_MEDIUM_INT

Accepted by the precisiontype parameter of GetShaderPrecisionFormat.

GL_NUM_SHADER_BINARY_FORMATSback to summary
public static final int GL_NUM_SHADER_BINARY_FORMATS

Accepted by the value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.

GL_RGB565back to summary
public static final int GL_RGB565

Accepted by the format parameter of most commands taking sized internal formats.

GL_SHADER_BINARY_FORMATSback to summary
public static final int GL_SHADER_BINARY_FORMATS

Accepted by the value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.

GL_SHADER_COMPILERback to summary
public static final int GL_SHADER_COMPILER

Accepted by the value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.

Constructor Detail

ARBES2Compatibilityback to summary
protected ARBES2Compatibility()

Method Detail

glClearDepthfback to summary
public static void glClearDepthf(float depth)

Specifies the clear value for the depth buffer

Parameters
depth:float

the depth value used when the depth buffer is cleared. The initial value is 1.0f.

glDepthRangefback to summary
public static void glDepthRangef(float zNear, float zFar)

Specifies mapping of depth values from normalized device coordinates to window coordinates

Parameters
zNear:float

the mapping of the near clipping plane to window coordinates. The initial value is 0.0f.

zFar:float

the mapping of the far clipping plane to window coordinates. The initial value is 1.0f.

glGetShaderPrecisionFormatback to summary
public static void glGetShaderPrecisionFormat(int shadertype, int precisiontype, IntBuffer range, IntBuffer precision)

Retrieves the range and precision for numeric formats supported by the shader compiler.

Parameters
shadertype:int

the type of shader whose precision to query. One of:

VERTEX_SHADERFRAGMENT_SHADER
precisiontype:int

the numeric format whose precision and range to query

range:IntBuffer

the address of array of two integers into which encodings of the implementation's numeric range are returned

precision:IntBuffer

the address of an integer into which the numeric precision of the implementation is written

glGetShaderPrecisionFormatback to summary
public static int glGetShaderPrecisionFormat(int shadertype, int precisiontype, IntBuffer range)

Retrieves the range and precision for numeric formats supported by the shader compiler.

Parameters
shadertype:int

the type of shader whose precision to query. One of:

VERTEX_SHADERFRAGMENT_SHADER
precisiontype:int

the numeric format whose precision and range to query

range:IntBuffer

the address of array of two integers into which encodings of the implementation's numeric range are returned

Annotations
@NativeType:void
glGetShaderPrecisionFormatback to summary
public static void glGetShaderPrecisionFormat(int shadertype, int precisiontype, int[] range, int[] precision)

Array version of: GetShaderPrecisionFormat

glReleaseShaderCompilerback to summary
public static void glReleaseShaderCompiler()

Releases resources allocated by the shader compiler. This is a hint from the application, and does not prevent later use of the shader compiler.

glShaderBinaryback to summary
public static void glShaderBinary(IntBuffer shaders, int binaryformat, ByteBuffer binary)

Loads pre-compiled shader binaries.

Parameters
shaders:IntBuffer

an array of shader handles into which to load pre-compiled shader binaries

binaryformat:int

the format of the shader binaries contained in binary

binary:ByteBuffer

an array of bytes containing pre-compiled binary shader code

glShaderBinaryback to summary
public static void glShaderBinary(int[] shaders, int binaryformat, ByteBuffer binary)

Array version of: ShaderBinary

nglGetShaderPrecisionFormatback to summary
public static void nglGetShaderPrecisionFormat(int shadertype, int precisiontype, long range, long precision)

Unsafe version of: GetShaderPrecisionFormat

nglShaderBinaryback to summary
public static void nglShaderBinary(int count, long shaders, int binaryformat, long binary, int length)

Unsafe version of: ShaderBinary

Parameters
count:int

the number of shader object handles contained in shaders

length:int

the length of the array whose address is given in binary