Package org.lwjgl.opengl
Class ARBES2Compatibility
java.lang.Object
org.lwjgl.opengl.ARBES2Compatibility
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
FieldsModifier and TypeFieldDescriptionstatic final intAccepted by thetypeparameter of VertexAttribPointer.static final intAccepted by theprecisiontypeparameter of GetShaderPrecisionFormat.static final intAccepted by theprecisiontypeparameter of GetShaderPrecisionFormat.static final intAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.static final intAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.static final intAccepted by theprecisiontypeparameter of GetShaderPrecisionFormat.static final intAccepted by theprecisiontypeparameter of GetShaderPrecisionFormat.static final intAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.static final intAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.static final intAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.static final intAccepted by theprecisiontypeparameter of GetShaderPrecisionFormat.static final intAccepted by theprecisiontypeparameter of GetShaderPrecisionFormat.static final intAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.static final intAccepted by theformatparameter of most commands taking sized internal formats.static final intAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.static final intAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidglClearDepthf(float depth) Specifies the clear value for the depth bufferstatic voidglDepthRangef(float zNear, float zFar) Specifies mapping of depth values from normalized device coordinates to window coordinatesstatic voidglGetShaderPrecisionFormat(int shadertype, int precisiontype, int[] range, int[] precision) Array version of:GetShaderPrecisionFormatstatic intglGetShaderPrecisionFormat(int shadertype, int precisiontype, IntBuffer range) Retrieves the range and precision for numeric formats supported by the shader compiler.static voidglGetShaderPrecisionFormat(int shadertype, int precisiontype, IntBuffer range, IntBuffer precision) Retrieves the range and precision for numeric formats supported by the shader compiler.static voidReleases resources allocated by the shader compiler.static voidglShaderBinary(int[] shaders, int binaryformat, ByteBuffer binary) Array version of:ShaderBinarystatic voidglShaderBinary(IntBuffer shaders, int binaryformat, ByteBuffer binary) Loads pre-compiled shader binaries.static voidnglGetShaderPrecisionFormat(int shadertype, int precisiontype, long range, long precision) Unsafe version of:GetShaderPrecisionFormatstatic voidnglShaderBinary(int count, long shaders, int binaryformat, long binary, int length) Unsafe version of:ShaderBinary
-
Field Details
-
GL_SHADER_COMPILER
public static final int GL_SHADER_COMPILERAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.- See Also:
-
GL_SHADER_BINARY_FORMATS
public static final int GL_SHADER_BINARY_FORMATSAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.- See Also:
-
GL_NUM_SHADER_BINARY_FORMATS
public static final int GL_NUM_SHADER_BINARY_FORMATSAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.- See Also:
-
GL_MAX_VERTEX_UNIFORM_VECTORS
public static final int GL_MAX_VERTEX_UNIFORM_VECTORSAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.- See Also:
-
GL_MAX_VARYING_VECTORS
public static final int GL_MAX_VARYING_VECTORSAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.- See Also:
-
GL_MAX_FRAGMENT_UNIFORM_VECTORS
public static final int GL_MAX_FRAGMENT_UNIFORM_VECTORSAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.- See Also:
-
GL_IMPLEMENTATION_COLOR_READ_TYPE
public static final int GL_IMPLEMENTATION_COLOR_READ_TYPEAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.- See Also:
-
GL_IMPLEMENTATION_COLOR_READ_FORMAT
public static final int GL_IMPLEMENTATION_COLOR_READ_FORMATAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.- See Also:
-
GL_FIXED
public static final int GL_FIXEDAccepted by thetypeparameter of VertexAttribPointer.- See Also:
-
GL_LOW_FLOAT
public static final int GL_LOW_FLOATAccepted by theprecisiontypeparameter of GetShaderPrecisionFormat.- See Also:
-
GL_MEDIUM_FLOAT
public static final int GL_MEDIUM_FLOATAccepted by theprecisiontypeparameter of GetShaderPrecisionFormat.- See Also:
-
GL_HIGH_FLOAT
public static final int GL_HIGH_FLOATAccepted by theprecisiontypeparameter of GetShaderPrecisionFormat.- See Also:
-
GL_LOW_INT
public static final int GL_LOW_INTAccepted by theprecisiontypeparameter of GetShaderPrecisionFormat.- See Also:
-
GL_MEDIUM_INT
public static final int GL_MEDIUM_INTAccepted by theprecisiontypeparameter of GetShaderPrecisionFormat.- See Also:
-
GL_HIGH_INT
public static final int GL_HIGH_INTAccepted by theprecisiontypeparameter of GetShaderPrecisionFormat.- See Also:
-
GL_RGB565
public static final int GL_RGB565Accepted by theformatparameter of most commands taking sized internal formats.- See Also:
-
-
Method Details
-
glReleaseShaderCompiler
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. -
nglShaderBinary
public static void nglShaderBinary(int count, long shaders, int binaryformat, long binary, int length) Unsafe version of:ShaderBinary- Parameters:
count- the number of shader object handles contained inshaderslength- the length of the array whose address is given in binary
-
glShaderBinary
Loads pre-compiled shader binaries.- Parameters:
shaders- an array of shader handles into which to load pre-compiled shader binariesbinaryformat- the format of the shader binaries contained inbinarybinary- an array of bytes containing pre-compiled binary shader code
-
nglGetShaderPrecisionFormat
public static void nglGetShaderPrecisionFormat(int shadertype, int precisiontype, long range, long precision) Unsafe version of:GetShaderPrecisionFormat -
glGetShaderPrecisionFormat
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- the type of shader whose precision to query. One of:VERTEX_SHADERFRAGMENT_SHADERprecisiontype- the numeric format whose precision and range to queryrange- the address of array of two integers into which encodings of the implementation's numeric range are returnedprecision- the address of an integer into which the numeric precision of the implementation is written
-
glGetShaderPrecisionFormat
Retrieves the range and precision for numeric formats supported by the shader compiler.- Parameters:
shadertype- the type of shader whose precision to query. One of:VERTEX_SHADERFRAGMENT_SHADERprecisiontype- the numeric format whose precision and range to queryrange- the address of array of two integers into which encodings of the implementation's numeric range are returned
-
glDepthRangef
public static void glDepthRangef(float zNear, float zFar) Specifies mapping of depth values from normalized device coordinates to window coordinates- Parameters:
zNear- the mapping of the near clipping plane to window coordinates. The initial value is 0.0f.zFar- the mapping of the far clipping plane to window coordinates. The initial value is 1.0f.
-
glClearDepthf
public static void glClearDepthf(float depth) Specifies the clear value for the depth buffer- Parameters:
depth- the depth value used when the depth buffer is cleared. The initial value is 1.0f.
-
glShaderBinary
Array version of:ShaderBinary -
glGetShaderPrecisionFormat
public static void glGetShaderPrecisionFormat(int shadertype, int precisiontype, int[] range, int[] precision) Array version of:GetShaderPrecisionFormat
-