public class ARBES2Compatibility
extends java.lang.Object
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.
| Modifier and Type | Field and Description |
|---|---|
static int |
GL_FIXED
Accepted by the
type parameter of VertexAttribPointer. |
static int |
GL_HIGH_FLOAT
Accepted by the
precisiontype parameter of GetShaderPrecisionFormat. |
static int |
GL_HIGH_INT
Accepted by the
precisiontype parameter of GetShaderPrecisionFormat. |
static int |
GL_IMPLEMENTATION_COLOR_READ_FORMAT
Accepted by the
value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev. |
static int |
GL_IMPLEMENTATION_COLOR_READ_TYPE
Accepted by the
value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev. |
static int |
GL_LOW_FLOAT
Accepted by the
precisiontype parameter of GetShaderPrecisionFormat. |
static int |
GL_LOW_INT
Accepted by the
precisiontype parameter of GetShaderPrecisionFormat. |
static int |
GL_MAX_FRAGMENT_UNIFORM_VECTORS
Accepted by the
value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev. |
static int |
GL_MAX_VARYING_VECTORS
Accepted by the
value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev. |
static int |
GL_MAX_VERTEX_UNIFORM_VECTORS
Accepted by the
value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev. |
static int |
GL_MEDIUM_FLOAT
Accepted by the
precisiontype parameter of GetShaderPrecisionFormat. |
static int |
GL_MEDIUM_INT
Accepted by the
precisiontype parameter of GetShaderPrecisionFormat. |
static int |
GL_NUM_SHADER_BINARY_FORMATS
Accepted by the
value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev. |
static int |
GL_RGB565
Accepted by the
format parameter of most commands taking sized internal formats. |
static int |
GL_SHADER_BINARY_FORMATS
Accepted by the
value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev. |
static int |
GL_SHADER_COMPILER
Accepted by the
value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev. |
| Modifier and Type | Method and Description |
|---|---|
static void |
glClearDepthf(float depth)
Specifies the clear value for the depth buffer
|
static void |
glDepthRangef(float zNear,
float zFar)
Specifies mapping of depth values from normalized device coordinates to window coordinates
|
static void |
glGetShaderPrecisionFormat(int shadertype,
int precisiontype,
int[] range,
int[] precision)
Array version of:
GetShaderPrecisionFormat |
static int |
glGetShaderPrecisionFormat(int shadertype,
int precisiontype,
java.nio.IntBuffer range)
Retrieves the range and precision for numeric formats supported by the shader compiler.
|
static void |
glGetShaderPrecisionFormat(int shadertype,
int precisiontype,
java.nio.IntBuffer range,
java.nio.IntBuffer precision)
Retrieves the range and precision for numeric formats supported by the shader compiler.
|
static void |
glReleaseShaderCompiler()
Releases resources allocated by the shader compiler.
|
static void |
glShaderBinary(int[] shaders,
int binaryformat,
java.nio.ByteBuffer binary)
Array version of:
ShaderBinary |
static void |
glShaderBinary(java.nio.IntBuffer shaders,
int binaryformat,
java.nio.ByteBuffer binary)
Loads pre-compiled shader binaries.
|
static void |
nglGetShaderPrecisionFormat(int shadertype,
int precisiontype,
long range,
long precision)
Unsafe version of:
GetShaderPrecisionFormat |
static void |
nglShaderBinary(int count,
long shaders,
int binaryformat,
long binary,
int length)
Unsafe version of:
ShaderBinary |
public static final int GL_SHADER_COMPILER
value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.public static final int GL_SHADER_BINARY_FORMATS
value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.public static final int GL_NUM_SHADER_BINARY_FORMATS
value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.public static final int GL_MAX_VERTEX_UNIFORM_VECTORS
value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.public static final int GL_MAX_VARYING_VECTORS
value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.public static final int GL_MAX_FRAGMENT_UNIFORM_VECTORS
value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.public static final int GL_IMPLEMENTATION_COLOR_READ_TYPE
value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.public static final int GL_IMPLEMENTATION_COLOR_READ_FORMAT
value parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.public static final int GL_FIXED
type parameter of VertexAttribPointer.public static final int GL_LOW_FLOAT
precisiontype parameter of GetShaderPrecisionFormat.public static final int GL_MEDIUM_FLOAT
precisiontype parameter of GetShaderPrecisionFormat.public static final int GL_HIGH_FLOAT
precisiontype parameter of GetShaderPrecisionFormat.public static final int GL_LOW_INT
precisiontype parameter of GetShaderPrecisionFormat.public static final int GL_MEDIUM_INT
precisiontype parameter of GetShaderPrecisionFormat.public static final int GL_HIGH_INT
precisiontype parameter of GetShaderPrecisionFormat.public static final int GL_RGB565
format parameter of most commands taking sized internal formats.public static void glReleaseShaderCompiler()
public static void nglShaderBinary(int count,
long shaders,
int binaryformat,
long binary,
int length)
ShaderBinarycount - the number of shader object handles contained in shaderslength - the length of the array whose address is given in binarypublic static void glShaderBinary(java.nio.IntBuffer shaders,
int binaryformat,
java.nio.ByteBuffer binary)
shaders - an array of shader handles into which to load pre-compiled shader binariesbinaryformat - the format of the shader binaries contained in binarybinary - an array of bytes containing pre-compiled binary shader codepublic static void nglGetShaderPrecisionFormat(int shadertype,
int precisiontype,
long range,
long precision)
GetShaderPrecisionFormatpublic static void glGetShaderPrecisionFormat(int shadertype,
int precisiontype,
java.nio.IntBuffer range,
java.nio.IntBuffer precision)
shadertype - the type of shader whose precision to query. One of:VERTEX_SHADER | FRAGMENT_SHADER |
precisiontype - 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 writtenpublic static int glGetShaderPrecisionFormat(int shadertype,
int precisiontype,
java.nio.IntBuffer range)
shadertype - the type of shader whose precision to query. One of:VERTEX_SHADER | FRAGMENT_SHADER |
precisiontype - 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 returnedpublic static void glDepthRangef(float zNear,
float zFar)
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.public static void glClearDepthf(float depth)
depth - the depth value used when the depth buffer is cleared. The initial value is 1.0f.public static void glShaderBinary(int[] shaders,
int binaryformat,
java.nio.ByteBuffer binary)
ShaderBinarypublic static void glGetShaderPrecisionFormat(int shadertype,
int precisiontype,
int[] range,
int[] precision)
GetShaderPrecisionFormatCopyright LWJGL. All Rights Reserved. License terms.