Class AndroidGL
- 
Field SummaryFields inherited from interface com.jme3.renderer.opengl.GLGL_ALIASED_LINE_WIDTH_RANGE, GL_ALPHA, GL_ALWAYS, GL_ARRAY_BUFFER, GL_BACK, GL_BLEND, GL_BLUE, GL_BYTE, GL_CLAMP_TO_EDGE, GL_COLOR_BUFFER_BIT, GL_COMPILE_STATUS, GL_CULL_FACE, GL_DECR, GL_DECR_WRAP, GL_DEPTH_BUFFER_BIT, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_TEST, GL_DOUBLE, GL_DST_ALPHA, GL_DST_COLOR, GL_DYNAMIC_COPY, GL_DYNAMIC_DRAW, GL_ELEMENT_ARRAY_BUFFER, GL_EQUAL, GL_EXTENSIONS, GL_FALSE, GL_FLOAT, GL_FRAGMENT_SHADER, GL_FRAMEBUFFER_BINDING, GL_FRONT, GL_FRONT_AND_BACK, GL_FUNC_ADD, GL_FUNC_REVERSE_SUBTRACT, GL_FUNC_SUBTRACT, GL_GEQUAL, GL_GREATER, GL_GREEN, GL_INCR, GL_INCR_WRAP, GL_INFO_LOG_LENGTH, GL_INT, GL_INVALID_ENUM, GL_INVALID_OPERATION, GL_INVALID_VALUE, GL_INVERT, GL_KEEP, GL_LEQUAL, GL_LESS, GL_LINE_LOOP, GL_LINE_SMOOTH, GL_LINE_STRIP, GL_LINEAR, GL_LINEAR_MIPMAP_LINEAR, GL_LINEAR_MIPMAP_NEAREST, GL_LINES, GL_LINK_STATUS, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_MAX, GL_MAX_CUBE_MAP_TEXTURE_SIZE, GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, GL_MAX_FRAGMENT_UNIFORM_VECTORS, GL_MAX_TEXTURE_IMAGE_UNITS, GL_MAX_TEXTURE_SIZE, GL_MAX_VERTEX_ATTRIBS, GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS, GL_MAX_VERTEX_UNIFORM_COMPONENTS, GL_MAX_VERTEX_UNIFORM_VECTORS, GL_MIN, GL_MIRRORED_REPEAT, GL_NEAREST, GL_NEAREST_MIPMAP_LINEAR, GL_NEAREST_MIPMAP_NEAREST, GL_NEVER, GL_NO_ERROR, GL_NONE, GL_NOTEQUAL, GL_ONE, GL_ONE_MINUS_DST_ALPHA, GL_ONE_MINUS_DST_COLOR, GL_ONE_MINUS_SRC_ALPHA, GL_ONE_MINUS_SRC_COLOR, GL_OUT_OF_MEMORY, GL_POINTS, GL_POLYGON_OFFSET_FILL, GL_QUERY_RESULT, GL_QUERY_RESULT_AVAILABLE, GL_RED, GL_RENDERER, GL_REPEAT, GL_REPLACE, GL_RGB, GL_RGB5_A1, GL_RGB565, GL_RGBA, GL_RGBA4, GL_SCISSOR_TEST, GL_SHADING_LANGUAGE_VERSION, GL_SHORT, GL_SRC_ALPHA, GL_SRC_ALPHA_SATURATE, GL_SRC_COLOR, GL_STATIC_DRAW, GL_STENCIL_BUFFER_BIT, GL_STENCIL_TEST, GL_STREAM_DRAW, GL_STREAM_READ, GL_TEXTURE, GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE0, GL_TEXTURE1, GL_TEXTURE10, GL_TEXTURE11, GL_TEXTURE12, GL_TEXTURE13, GL_TEXTURE14, GL_TEXTURE15, GL_TEXTURE2, GL_TEXTURE3, GL_TEXTURE4, GL_TEXTURE5, GL_TEXTURE6, GL_TEXTURE7, GL_TEXTURE8, GL_TEXTURE9, GL_TIME_ELAPSED, GL_TRIANGLE_FAN, GL_TRIANGLE_STRIP, GL_TRIANGLES, GL_TRUE, GL_UNPACK_ALIGNMENT, GL_UNPACK_ROW_LENGTH, GL_UNSIGNED_BYTE, GL_UNSIGNED_INT, GL_UNSIGNED_SHORT, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_5_6_5, GL_VENDOR, GL_VERSION, GL_VERTEX_SHADER, GL_ZEROFields inherited from interface com.jme3.renderer.opengl.GL2GL_ALPHA_TEST, GL_ALPHA8, GL_BGR, GL_BGRA, GL_COMPARE_REF_TO_TEXTURE, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_DEPTH_TEXTURE_MODE, GL_DOUBLEBUFFER, GL_DRAW_BUFFER, GL_FILL, GL_GENERATE_MIPMAP, GL_INTENSITY, GL_LINE, GL_LUMINANCE8, GL_LUMINANCE8_ALPHA8, GL_MAX_ELEMENTS_INDICES, GL_MAX_ELEMENTS_VERTICES, GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, GL_MAX_VERTEX_UNIFORM_COMPONENTS, GL_POINT, GL_POINT_SPRITE, GL_READ_BUFFER, GL_RGB8, GL_STACK_OVERFLOW, GL_STACK_UNDERFLOW, GL_TEXTURE_3D, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_COMPARE_FUNC, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_R, GL_UNSIGNED_INT_8_8_8_8, GL_VERTEX_PROGRAM_POINT_SIZEFields inherited from interface com.jme3.renderer.opengl.GLES_30GL_RGB10_A2, GL_UNSIGNED_INT_2_10_10_10_REVFields inherited from interface com.jme3.renderer.opengl.GLExtGL_ALREADY_SIGNALED, GL_BUFFER, GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT, GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT, GL_COMPRESSED_RGB_S3TC_DXT1_EXT, GL_COMPRESSED_RGB8_ETC2, GL_COMPRESSED_RGBA_BPTC_UNORM, GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, GL_COMPRESSED_RGBA_S3TC_DXT3_EXT, GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM, GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT, GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT, GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT, GL_COMPRESSED_SRGB_S3TC_DXT1_EXT, GL_CONDITION_SATISFIED, GL_DEBUG_SOURCE_API, GL_DEBUG_SOURCE_APPLICATION, GL_DEBUG_SOURCE_OTHER, GL_DEBUG_SOURCE_SHADER_COMPILER, GL_DEBUG_SOURCE_THIRD_PARTY, GL_DEBUG_SOURCE_WINDOW_SYSTEM, GL_DEPTH_COMPONENT32F, GL_DEPTH_STENCIL_EXT, GL_DEPTH24_STENCIL8_EXT, GL_DISPLAY_LIST, GL_ETC1_RGB8_OES, GL_FRAMEBUFFER_SRGB_CAPABLE_EXT, GL_FRAMEBUFFER_SRGB_EXT, GL_HALF_FLOAT_ARB, GL_HALF_FLOAT_OES, GL_LUMINANCE_ALPHA16F_ARB, GL_LUMINANCE16F_ARB, GL_LUMINANCE32F_ARB, GL_MAX_COLOR_TEXTURE_SAMPLES, GL_MAX_DEPTH_TEXTURE_SAMPLES, GL_MAX_DRAW_BUFFERS_ARB, GL_MAX_SAMPLES_EXT, GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, GL_MULTISAMPLE_ARB, GL_NUM_PROGRAM_BINARY_FORMATS, GL_PIXEL_PACK_BUFFER_ARB, GL_PIXEL_UNPACK_BUFFER_ARB, GL_PROGRAM, GL_PROGRAM_PIPELINE, GL_QUERY, GL_R11F_G11F_B10F_EXT, GL_RGB16F_ARB, GL_RGB32F_ARB, GL_RGB9_E5_EXT, GL_RGBA16F_ARB, GL_RGBA32F_ARB, GL_RGBA8, GL_SAMPLE_ALPHA_TO_COVERAGE_ARB, GL_SAMPLE_BUFFERS_ARB, GL_SAMPLE_POSITION, GL_SAMPLER, GL_SAMPLES_ARB, GL_SHADER, GL_SLUMINANCE8_ALPHA8_EXT, GL_SLUMINANCE8_EXT, GL_SRGB8_ALPHA8_EXT, GL_SRGB8_EXT, GL_SYNC_FLUSH_COMMANDS_BIT, GL_SYNC_GPU_COMMANDS_COMPLETE, GL_TEXTURE_2D_ARRAY_EXT, GL_TEXTURE_2D_MULTISAMPLE, GL_TEXTURE_2D_MULTISAMPLE_ARRAY, GL_TEXTURE_CUBE_MAP_SEAMLESS, GL_TEXTURE_MAX_ANISOTROPY_EXT, GL_TIMEOUT_EXPIRED, GL_UNSIGNED_INT_10F_11F_11F_REV_EXT, GL_UNSIGNED_INT_24_8_EXT, GL_UNSIGNED_INT_5_9_9_9_REV_EXT, GL_WAIT_FAILEDFields inherited from interface com.jme3.renderer.opengl.GLFboGL_COLOR_ATTACHMENT0_EXT, GL_COLOR_ATTACHMENT1_EXT, GL_COLOR_ATTACHMENT10_EXT, GL_COLOR_ATTACHMENT11_EXT, GL_COLOR_ATTACHMENT12_EXT, GL_COLOR_ATTACHMENT13_EXT, GL_COLOR_ATTACHMENT14_EXT, GL_COLOR_ATTACHMENT15_EXT, GL_COLOR_ATTACHMENT2_EXT, GL_COLOR_ATTACHMENT3_EXT, GL_COLOR_ATTACHMENT4_EXT, GL_COLOR_ATTACHMENT5_EXT, GL_COLOR_ATTACHMENT6_EXT, GL_COLOR_ATTACHMENT7_EXT, GL_COLOR_ATTACHMENT8_EXT, GL_COLOR_ATTACHMENT9_EXT, GL_DEPTH_ATTACHMENT_EXT, GL_DRAW_FRAMEBUFFER_BINDING_EXT, GL_DRAW_FRAMEBUFFER_EXT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT, GL_FRAMEBUFFER_COMPLETE_EXT, GL_FRAMEBUFFER_EXT, GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT, GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT, GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT, GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT, GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT, GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT, GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT, GL_FRAMEBUFFER_UNSUPPORTED_EXT, GL_INVALID_FRAMEBUFFER_OPERATION_EXT, GL_MAX_COLOR_ATTACHMENTS_EXT, GL_MAX_RENDERBUFFER_SIZE_EXT, GL_READ_FRAMEBUFFER_BINDING_EXT, GL_READ_FRAMEBUFFER_EXT, GL_RENDERBUFFER_EXT
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidglActiveTexture(int texture) voidglAlphaFunc(int func, float ref) Reference Page - This function is deprecated and unavailable in the Core profilevoidglAttachShader(int program, int shader) voidglBeginQuery(int target, int query) voidglBindBuffer(int target, int buffer) voidglBindFramebufferEXT(int param1, int param2) voidglBindRenderbufferEXT(int param1, int param2) voidglBindTexture(int target, int texture) voidglBlendEquationSeparate(int colorMode, int alphaMode) voidglBlendFunc(int sfactor, int dfactor) voidglBlendFuncSeparate(int sfactorRGB, int dfactorRGB, int sfactorAlpha, int dfactorAlpha) voidglBlitFramebufferEXT(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter) voidglBufferData(int target, long dataSize, int usage) voidglBufferData(int target, ByteBuffer data, int usage) voidglBufferData(int target, FloatBuffer data, int usage) voidglBufferData(int target, IntBuffer data, int usage) voidglBufferData(int target, ShortBuffer data, int usage) voidglBufferSubData(int target, long offset, ByteBuffer data) voidglBufferSubData(int target, long offset, FloatBuffer data) voidglBufferSubData(int target, long offset, IntBuffer data) voidglBufferSubData(int target, long offset, ShortBuffer data) intglCheckFramebufferStatusEXT(int param1) voidglClear(int mask) voidglClearColor(float red, float green, float blue, float alpha) intglClientWaitSync(Object sync, int flags, long timeout) Causes the client to block and wait for a sync object to become signaled.voidglColorMask(boolean red, boolean green, boolean blue, boolean alpha) voidglCompileShader(int shader) voidglCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, ByteBuffer data) voidglCompressedTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, ByteBuffer data) voidglCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, ByteBuffer data) voidglCompressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, ByteBuffer data) intintglCreateShader(int shaderType) voidglCullFace(int mode) voidglDeleteBuffers(IntBuffer buffers) voidglDeleteFramebuffersEXT(IntBuffer param1) voidglDeleteProgram(int program) voidglDeleteRenderbuffersEXT(IntBuffer param1) voidglDeleteShader(int shader) voidglDeleteSync(Object sync) Deletes a sync object.voidglDeleteTextures(IntBuffer textures) voidglDepthFunc(int func) voidglDepthMask(boolean flag) voidglDepthRange(double nearVal, double farVal) voidglDetachShader(int program, int shader) voidglDisable(int cap) voidglDisableVertexAttribArray(int index) voidglDrawArrays(int mode, int first, int count) voidglDrawArraysInstancedARB(int mode, int first, int count, int primcount) Draw multiple instances of a range of elements.voidglDrawBuffer(int mode) voidglDrawBuffers(IntBuffer bufs) voidglDrawElementsInstancedARB(int mode, int indicesCount, int type, long indicesBufferOffset, int primcount) Draws multiple instances of a set of elements.voidglDrawRangeElements(int mode, int start, int end, int count, int type, long indices) voidglEnable(int cap) voidglEnableVertexAttribArray(int index) voidglEndQuery(int target) glFenceSync(int condition, int flags) Creates a new sync object and inserts it into the GL command stream.voidglFramebufferRenderbufferEXT(int param1, int param2, int param3, int param4) voidglFramebufferTexture2DEXT(int param1, int param2, int param3, int param4, int param5) voidglFramebufferTextureLayerEXT(int target, int attachment, int texture, int level, int layer) voidglGenBuffers(IntBuffer buffers) voidglGenerateMipmapEXT(int param1) voidglGenFramebuffersEXT(IntBuffer param1) voidglGenQueries(int num, IntBuffer buff) voidglGenRenderbuffersEXT(IntBuffer param1) voidglGenTextures(IntBuffer textures) intglGetAttribLocation(int program, String name) voidglGetBoolean(int pname, ByteBuffer params) voidglGetBufferSubData(int target, long offset, ByteBuffer data) intvoidglGetFloat(int parameterId, FloatBuffer storeValues) Determine the current single-precision floating-point value(s) of the specified parameter.voidglGetInteger(int pname, IntBuffer params) voidglGetMultisample(int pname, int index, FloatBuffer val) Retrieves the location of a sample.voidglGetProgram(int program, int pname, IntBuffer params) glGetProgramInfoLog(int program, int maxLength) intglGetQueryObjectiv(int query, int pname) longglGetQueryObjectui64(int query, int pname) Unsigned version.voidglGetShader(int shader, int pname, IntBuffer params) glGetShaderInfoLog(int shader, int maxLength) glGetString(int name) intglGetUniformLocation(int program, String name) booleanglIsEnabled(int cap) voidglLineWidth(float width) voidglLinkProgram(int program) voidglPixelStorei(int pname, int param) voidglPointSize(float size) voidglPolygonMode(int face, int mode) voidglPolygonOffset(float factor, float units) voidglReadBuffer(int mode) voidglReadPixels(int x, int y, int width, int height, int format, int type, long offset) voidglReadPixels(int x, int y, int width, int height, int format, int type, ByteBuffer data) voidglRenderbufferStorageEXT(int param1, int param2, int param3, int param4) voidglRenderbufferStorageMultisampleEXT(int target, int samples, int internalformat, int width, int height) voidglScissor(int x, int y, int width, int height) voidglShaderSource(int shader, String[] string, IntBuffer length) voidglStencilFuncSeparate(int face, int func, int ref, int mask) voidglStencilOpSeparate(int face, int sfail, int dpfail, int dppass) voidglTexImage2D(int target, int level, int internalFormat, int width, int height, int border, int format, int type, ByteBuffer data) voidglTexImage2DMultisample(int target, int samples, int internalformat, int width, int height, boolean fixedSampleLocations) Establishes the data storage, format, dimensions, and number of samples of a 2D multisample texture's image.voidglTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, ByteBuffer data) voidglTexParameterf(int target, int pname, float param) voidglTexParameteri(int target, int pname, int param) voidglTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, ByteBuffer data) voidglTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, ByteBuffer data) voidglUniform1(int location, FloatBuffer value) voidglUniform1(int location, IntBuffer value) voidglUniform1f(int location, float v0) voidglUniform1i(int location, int v0) voidglUniform2(int location, FloatBuffer value) voidglUniform2(int location, IntBuffer value) voidglUniform2f(int location, float v0, float v1) voidglUniform3(int location, FloatBuffer value) voidglUniform3(int location, IntBuffer value) voidglUniform3f(int location, float v0, float v1, float v2) voidglUniform4(int location, FloatBuffer value) voidglUniform4(int location, IntBuffer value) voidglUniform4f(int location, float v0, float v1, float v2, float v3) voidglUniformMatrix3(int location, boolean transpose, FloatBuffer value) voidglUniformMatrix4(int location, boolean transpose, FloatBuffer value) voidglUseProgram(int program) voidglVertexAttribDivisorARB(int index, int divisor) Modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives in a single draw call.voidglVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, long pointer) voidglViewport(int x, int y, int width, int height) voidMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jme3.renderer.opengl.GLExtglObjectLabel, glPopDebugGroup, glPushDebugGroup
- 
Constructor Details- 
AndroidGLpublic AndroidGL()
 
- 
- 
Method Details- 
resetStatspublic void resetStats()- Specified by:
- resetStatsin interface- GL
 
- 
glActiveTexturepublic void glActiveTexture(int texture) Description copied from interface:GLSelects which texture unit subsequent texture state calls will affect. The number of texture units an implementation supports is implementation dependent. - Specified by:
- glActiveTexturein interface- GL
- Parameters:
- texture- which texture unit to make active. One of:- TEXTURE0GL_TEXTURE[1-31]
 
- 
glAttachShaderpublic void glAttachShader(int program, int shader) Description copied from interface:GLAttaches a shader object to a program object. In order to create a complete shader program, there must be a way to specify the list of things that will be linked together. Program objects provide this mechanism. Shaders that are to be linked together in a program object must first be attached to that program object. glAttachShader attaches the shader object specified by shader to the program object specified by program. This indicates that shader will be included in link operations that will be performed on program. All operations that can be performed on a shader object are valid whether or not the shader object is attached to a program object. It is permissible to attach a shader object to a program object before source code has been loaded into the shader object or before the shader object has been compiled. It is permissible to attach multiple shader objects of the same type because each may contain a portion of the complete shader. It is also permissible to attach a shader object to more than one program object. If a shader object is deleted while it is attached to a program object, it will be flagged for deletion, and deletion will not occur until glDetachShader is called to detach it from all program objects to which it is attached. - Specified by:
- glAttachShaderin interface- GL
- Parameters:
- program- the program object to which a shader object will be attached.
- shader- the shader object that is to be attached.
 
- 
glBeginQuerypublic void glBeginQuery(int target, int query) Description copied from interface:GLCreates a query object and makes it active. - Specified by:
- glBeginQueryin interface- GL
- Parameters:
- target- the target type of query object established.
- query- the name of a query object.
 
- 
glBindBufferpublic void glBindBuffer(int target, int buffer) Description copied from interface:GLBinds a named buffer object. - Specified by:
- glBindBufferin interface- GL
- Parameters:
- target- the target to which the buffer object is bound.
- buffer- the name of a buffer object.
 
- 
glBindTexturepublic void glBindTexture(int target, int texture) Description copied from interface:GLBinds the a texture to a texture target. While a texture object is bound, GL operations on the target to which it is bound affect the bound object, and queries of the target to which it is bound return state from the bound object. If texture mapping of the dimensionality of the target to which a texture object is bound is enabled, the state of the bound texture object directs the texturing operation. - Specified by:
- glBindTexturein interface- GL
- Parameters:
- target- the texture target.
- texture- the texture object to bind.
 
- 
glBlendFuncpublic void glBlendFunc(int sfactor, int dfactor) Description copied from interface:GLSpecifies the weighting factors used by the blend equation, for both RGB and alpha functions and for all draw buffers. - Specified by:
- glBlendFuncin interface- GL
- Parameters:
- sfactor- the source weighting factor.
- dfactor- the destination weighting factor.
 
- 
glBlendFuncSeparatepublic void glBlendFuncSeparate(int sfactorRGB, int dfactorRGB, int sfactorAlpha, int dfactorAlpha) Description copied from interface:GLSpecifies pixel arithmetic for RGB and alpha components separately. - Specified by:
- glBlendFuncSeparatein interface- GL
- Parameters:
- sfactorRGB- how the red, green, and blue blending factors are computed. The initial value is GL_ONE.
- dfactorRGB- how the red, green, and blue destination blending factors are computed. The initial value is GL_ZERO.
- sfactorAlpha- how the alpha source blending factor is computed. The initial value is GL_ONE.
- dfactorAlpha- how the alpha destination blending factor is computed. The initial value is GL_ZERO.
 
- 
glBufferDataDescription copied from interface:GLCreates and initializes a buffer object's data store. usageis a hint to the GL implementation as to how a buffer object's data store will be accessed. This enables the GL implementation to make more intelligent decisions that may significantly impact buffer object performance. It does not, however, constrain the actual usage of the data store.usagecan be broken down into two parts: first, the frequency of access (modification and usage), and second, the nature of that access. The frequency of access may be one of these:- STREAM - The data store contents will be modified once and used at most a few times.
- STATIC - The data store contents will be modified once and used many times.
- DYNAMIC - The data store contents will be modified repeatedly and used many times.
 The nature of access may be one of these: - DRAW - The data store contents are modified by the application, and used as the source for GL drawing and image specification commands.
- READ - The data store contents are modified by reading data from the GL, and used to return that data when queried by the application.
- COPY - The data store contents are modified by reading data from the GL, and used as the source for GL drawing and image specification commands.
 - Specified by:
- glBufferDatain interface- GL
- Parameters:
- target- the target buffer object.
- data- a pointer to data that will be copied into the data store for initialization, or- NULLif no data is to be copied.
- usage- the expected usage pattern of the data store.
 
- 
glBufferDataDescription copied from interface:GLCreates and initializes a buffer object's data store. usageis a hint to the GL implementation as to how a buffer object's data store will be accessed. This enables the GL implementation to make more intelligent decisions that may significantly impact buffer object performance. It does not, however, constrain the actual usage of the data store.usagecan be broken down into two parts: first, the frequency of access (modification and usage), and second, the nature of that access. The frequency of access may be one of these:- STREAM - The data store contents will be modified once and used at most a few times.
- STATIC - The data store contents will be modified once and used many times.
- DYNAMIC - The data store contents will be modified repeatedly and used many times.
 The nature of access may be one of these: - DRAW - The data store contents are modified by the application, and used as the source for GL drawing and image specification commands.
- READ - The data store contents are modified by reading data from the GL, and used to return that data when queried by the application.
- COPY - The data store contents are modified by reading data from the GL, and used as the source for GL drawing and image specification commands.
 - Specified by:
- glBufferDatain interface- GL
- Parameters:
- target- the target buffer object.
- data- a pointer to data that will be copied into the data store for initialization, or- NULLif no data is to be copied
- usage- the expected usage pattern of the data store.
 
- 
glBufferDataDescription copied from interface:GLCreates and initializes a buffer object's data store. usageis a hint to the GL implementation as to how a buffer object's data store will be accessed. This enables the GL implementation to make more intelligent decisions that may significantly impact buffer object performance. It does not, however, constrain the actual usage of the data store.usagecan be broken down into two parts: first, the frequency of access (modification and usage), and second, the nature of that access. The frequency of access may be one of these:- STREAM - The data store contents will be modified once and used at most a few times.
- STATIC - The data store contents will be modified once and used many times.
- DYNAMIC - The data store contents will be modified repeatedly and used many times.
 The nature of access may be one of these: - DRAW - The data store contents are modified by the application, and used as the source for GL drawing and image specification commands.
- READ - The data store contents are modified by reading data from the GL, and used to return that data when queried by the application.
- COPY - The data store contents are modified by reading data from the GL, and used as the source for GL drawing and image specification commands.
 - Specified by:
- glBufferDatain interface- GL
- Parameters:
- target- the target buffer object.
- data- a pointer to data that will be copied into the data store for initialization, or- NULLif no data is to be copied.
- usage- the expected usage pattern of the data store.
 
- 
glBufferDatapublic void glBufferData(int target, long dataSize, int usage) Description copied from interface:GLCreates and initializes a buffer object's data store. usageis a hint to the GL implementation as to how a buffer object's data store will be accessed. This enables the GL implementation to make more intelligent decisions that may significantly impact buffer object performance. It does not, however, constrain the actual usage of the data store.usagecan be broken down into two parts: first, the frequency of access (modification and usage), and second, the nature of that access. The frequency of access may be one of these:- STREAM - The data store contents will be modified once and used at most a few times.
- STATIC - The data store contents will be modified once and used many times.
- DYNAMIC - The data store contents will be modified repeatedly and used many times.
 The nature of access may be one of these: - DRAW - The data store contents are modified by the application, and used as the source for GL drawing and image specification commands.
- READ - The data store contents are modified by reading data from the GL, and used to return that data when queried by the application.
- COPY - The data store contents are modified by reading data from the GL, and used as the source for GL drawing and image specification commands.
 - Specified by:
- glBufferDatain interface- GL
- Parameters:
- target- the target buffer object.
- dataSize- the size in bytes of the buffer object's new data store
- usage- the expected usage pattern of the data store.
 
- 
glBufferSubDataDescription copied from interface:GLUpdates a subset of a buffer object's data store. - Specified by:
- glBufferSubDatain interface- GL
- Parameters:
- target- the target buffer object.
- offset- the offset into the buffer object's data store where data replacement will begin, measured in bytes.
- data- a pointer to the new data that will be copied into the data store.
 
- 
glBufferSubDataDescription copied from interface:GLUpdates a subset of a buffer object's data store. - Specified by:
- glBufferSubDatain interface- GL
- Parameters:
- target- the target buffer object.
- offset- the offset into the buffer object's data store where data replacement will begin, measured in bytes.
- data- a pointer to the new data that will be copied into the data store.
 
- 
glBufferSubDataDescription copied from interface:GLUpdates a subset of a buffer object's data store. - Specified by:
- glBufferSubDatain interface- GL
- Parameters:
- target- the target buffer object.
- offset- the offset into the buffer object's data store where data replacement will begin, measured in bytes.
- data- a pointer to the new data that will be copied into the data store.
 
- 
glGetBufferSubDataDescription copied from interface:GLReturns a subset of a buffer object's data store.- Specified by:
- glGetBufferSubDatain interface- GL
- Parameters:
- target- the target buffer object.
- offset- the offset into the buffer object's data store from which data will be returned, measured in bytes.
- data- a pointer to the location where buffer object data is returned.
 
- 
glClearpublic void glClear(int mask) Description copied from interface:GLSets portions of every pixel in a particular buffer to the same value. The value to which each buffer is cleared depends on the setting of the clear value for that buffer. 
- 
glClearColorpublic void glClearColor(float red, float green, float blue, float alpha) Description copied from interface:GLSets the clear value for fixed-point and floating-point color buffers in RGBA mode. The specified components are stored as floating-point values.- Specified by:
- glClearColorin interface- GL
- Parameters:
- red- the value to which to clear the R channel of the color buffer.
- green- the value to which to clear the G channel of the color buffer.
- blue- the value to which to clear the B channel of the color buffer.
- alpha- the value to which to clear the A channel of the color buffer.
 
- 
glColorMaskpublic void glColorMask(boolean red, boolean green, boolean blue, boolean alpha) Description copied from interface:GLMasks the writing of R, G, B and A values to all draw buffers. In the initial state, all color values are enabled for writing for all draw buffers.- Specified by:
- glColorMaskin interface- GL
- Parameters:
- red- whether R values are written or not.
- green- whether G values are written or not.
- blue- whether B values are written or not.
- alpha- whether A values are written or not.
 
- 
glCompileShaderpublic void glCompileShader(int shader) Description copied from interface:GLCompiles a shader object. - Specified by:
- glCompileShaderin interface- GL
- Parameters:
- shader- the shader object to be compiled.
 
- 
glCompressedTexImage2Dpublic void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, ByteBuffer data) Description copied from interface:GLSpecifies a two-dimensional texture image in a compressed format. - Specified by:
- glCompressedTexImage2Din interface- GL
- Parameters:
- target- the target texture.
- level- the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
- internalformat- the format of the compressed image data.
- width- the width of the texture image
- height- the height of the texture image
- border- must be 0
- data- a pointer to the compressed image data
 
- 
glCompressedTexSubImage2Dpublic void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, ByteBuffer data) Description copied from interface:GLRespecifies only a rectangular subregion of an existing 2D texel array, with incoming data stored in a specific compressed image format.- Specified by:
- glCompressedTexSubImage2Din interface- GL
- Parameters:
- target- the target texture.
- level- the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
- xoffset- a texel offset in the x direction within the texture array.
- yoffset- a texel offset in the y direction within the texture array.
- width- the width of the texture subimage.
- height- the height of the texture subimage.
- format- the format of the compressed image data stored at address- data.
- data- a pointer to the compressed image data.
 
- 
glCreateProgrampublic int glCreateProgram()Description copied from interface:GLCreates a program object.- Specified by:
- glCreateProgramin interface- GL
- Returns:
- the ID of the new program, or 0 if unsuccessful
 
- 
glCreateShaderpublic int glCreateShader(int shaderType) Description copied from interface:GLCreates a shader object.- Specified by:
- glCreateShaderin interface- GL
- Parameters:
- shaderType- the type of shader to be created. One of:- VERTEX_SHADER- FRAGMENT_SHADER- GEOMETRY_SHADER- TESS_CONTROL_SHADER- TESS_EVALUATION_SHADER
- Returns:
- the ID of the new shader, or 0 if unsuccessful
 
- 
glCullFacepublic void glCullFace(int mode) Description copied from interface:GLSpecifies which polygon faces are culled if CULL_FACEis enabled. Front-facing polygons are rasterized if either culling is disabled or the CullFace mode isBACKwhile back-facing polygons are rasterized only if either culling is disabled or the CullFace mode isFRONT. The initial setting of the CullFace mode isBACK. Initially, culling is disabled.- Specified by:
- glCullFacein interface- GL
- Parameters:
- mode- the CullFace mode. One of:- FRONT- BACK- FRONT_AND_BACK
 
- 
glDeleteBuffersDescription copied from interface:GLDeletes named buffer objects. - Specified by:
- glDeleteBuffersin interface- GL
- Parameters:
- buffers- an array of buffer objects to be deleted.
 
- 
glDeleteProgrampublic void glDeleteProgram(int program) Description copied from interface:GLDeletes a program object. - Specified by:
- glDeleteProgramin interface- GL
- Parameters:
- program- the program object to be deleted.
 
- 
glDeleteShaderpublic void glDeleteShader(int shader) Description copied from interface:GLDeletes a shader object. - Specified by:
- glDeleteShaderin interface- GL
- Parameters:
- shader- the shader object to be deleted.
 
- 
glDeleteTexturesDescription copied from interface:GLDeletes texture objects. After a texture object is deleted, it has no contents or dimensionality, and its name is again unused. If a texture that is currently bound to any of the target bindings of BindTextureis deleted, it is as thoughBindTexturehad been executed with the same target and texture zero. Additionally, special care must be taken when deleting a texture if any of the images of the texture are attached to a framebuffer object.Unused names in textures that have been marked as used for the purposes of GenTexturesare marked as unused again. Unused names in textures are silently ignored, as is the name zero.- Specified by:
- glDeleteTexturesin interface- GL
- Parameters:
- textures- contains- nnames of texture objects to be deleted.
 
- 
glDepthFuncpublic void glDepthFunc(int func) Description copied from interface:GLSpecifies the comparison that takes place during the depth buffer test (when DEPTH_TESTis enabled).
- 
glDepthMaskpublic void glDepthMask(boolean flag) Description copied from interface:GLMasks the writing of depth values to the depth buffer. In the initial state, the depth buffer is enabled for writing. - Specified by:
- glDepthMaskin interface- GL
- Parameters:
- flag- whether depth values are written or not.
 
- 
glDepthRangepublic void glDepthRange(double nearVal, double farVal) Description copied from interface:GLSets the depth range for all viewports to the same values. - Specified by:
- glDepthRangein interface- GL
- Parameters:
- nearVal- the near depth range.
- farVal- the far depth range.
 
- 
glDetachShaderpublic void glDetachShader(int program, int shader) Description copied from interface:GLDetaches a shader object from a program object to which it is attached. - Specified by:
- glDetachShaderin interface- GL
- Parameters:
- program- the program object from which to detach the shader object.
- shader- the shader object to be detached.
 
- 
glDisablepublic void glDisable(int cap) Description copied from interface:GLDisables the specified OpenGL state. 
- 
glDisableVertexAttribArraypublic void glDisableVertexAttribArray(int index) Description copied from interface:GLDisables a generic vertex attribute array. - Specified by:
- glDisableVertexAttribArrayin interface- GL
- Parameters:
- index- the index of the generic vertex attribute to be disabled.
 
- 
glDrawArrayspublic void glDrawArrays(int mode, int first, int count) Description copied from interface:GLConstructs a sequence of geometric primitives by successively transferring elements for countvertices. Elementsfirstthroughfirst + count – 1of each enabled non-instanced array are transferred to the GL.If an array corresponding to an attribute required by a vertex shader is not enabled, then the corresponding element is taken from the current attribute state. If an array is enabled, the corresponding current vertex attribute value is unaffected by the execution of this function. - Specified by:
- glDrawArraysin interface- GL
- Parameters:
- mode- the kind of primitives being constructed.
- first- the first vertex to transfer to the GL.
- count- the number of vertices after- firstto transfer to the GL.
 
- 
glDrawRangeElementspublic void glDrawRangeElements(int mode, int start, int end, int count, int type, long indices) Description copied from interface:GLImplementations denote recommended maximum amounts of vertex and index data, which may be queried by calling glGet with argument MAX_ELEMENTS_VERTICESandMAX_ELEMENTS_INDICES. If end - start + 1 is greater than the value of GL_MAX_ELEMENTS_VERTICES, or if count is greater than the value of GL_MAX_ELEMENTS_INDICES, then the call may operate at reduced performance. There is no requirement that all vertices in the range start end be referenced. However, the implementation may partially process unused vertices, reducing performance from what could be achieved with an optimal index set.When glDrawRangeElements is called, it uses count sequential elements from an enabled array, starting at start to construct a sequence of geometric primitives. mode specifies what kind of primitives are constructed, and how the array elements construct these primitives. If more than one array is enabled, each is used. Vertex attributes that are modified by glDrawRangeElements have an unspecified value after glDrawRangeElements returns. Attributes that aren't modified maintain their previous values. ErrorsIt is an error for indices to lie outside the range start end, but implementations may not check for this situation. Such indices cause implementation-dependent behavior. - GL_INVALID_ENUM is generated if mode is not an accepted value.
- GL_INVALID_VALUE is generated if count is negative.
- GL_INVALID_VALUE is generated if end < start.
- GL_INVALID_OPERATION is generated if a geometry shader is active and mode is incompatible with the input primitive type of the geometry shader in the currently installed program object.
- GL_INVALID_OPERATION is generated if a non-zero buffer object name is bound to an enabled array or the element array and the buffer object's data store is currently mapped.
 - Specified by:
- glDrawRangeElementsin interface- GL
- Parameters:
- mode- the kind of primitives to render.
- start- the minimum array index contained in- indices.
- end- the maximum array index contained in- indices.
- count- the number of elements to be rendered.
- type- the type of the values in- indices.
- indices- a pointer to the location where the indices are stored.
 
- 
glEnablepublic void glEnable(int cap) Description copied from interface:GLEnables the specified OpenGL state. 
- 
glEnableVertexAttribArraypublic void glEnableVertexAttribArray(int index) Description copied from interface:GLEnables a generic vertex attribute array. - Specified by:
- glEnableVertexAttribArrayin interface- GL
- Parameters:
- index- the index of the generic vertex attribute to be enabled.
 
- 
glEndQuerypublic void glEndQuery(int target) Description copied from interface:GLMarks the end of the sequence of commands to be tracked for the active query specified by target.- Specified by:
- glEndQueryin interface- GL
- Parameters:
- target- the query object target.
 
- 
glGenBuffersDescription copied from interface:GLGenerates buffer object names. - Specified by:
- glGenBuffersin interface- GL
- Parameters:
- buffers- a buffer in which the generated buffer object names are stored.
 
- 
glGenTexturesDescription copied from interface:GLReturns n previously unused texture names in textures. These names are marked as used, for the purposes of GenTextures only, but they acquire texture state and a dimensionality only when they are first bound, just as if they were unused. - Specified by:
- glGenTexturesin interface- GL
- Parameters:
- textures- a scalar or buffer in which to place the returned texture names.
 
- 
glGenQueriesDescription copied from interface:GLGenerates query object names.- Specified by:
- glGenQueriesin interface- GL
- Parameters:
- num- the number of query object names to be generated
- buff- a buffer in which the generated query object names are stored.
 
- 
glGetAttribLocationDescription copied from interface:GLReturns the location of an attribute variable.- Specified by:
- glGetAttribLocationin interface- GL
- Parameters:
- program- the program object to be queried.
- name- a null terminated string containing the name of the attribute variable whose location is to be queried.
- Returns:
- the location
 
- 
glGetBooleanDescription copied from interface:GLReturns the current boolean value of the specified state variable.LWJGL note: The state that corresponds to the state variable may be a single value or an array of values. In the case of an array of values, LWJGL will not validate if paramshas enough space to store that array. Doing so would introduce significant overhead, as the OpenGL state variables are too many. It is the user's responsibility to avoid JVM crashes by ensuring enough space for the returned values.- Specified by:
- glGetBooleanin interface- GL
- Parameters:
- pname- the state variable.
- params- a scalar or buffer in which to place the returned data.
 
- 
glGetErrorpublic int glGetError()Description copied from interface:GLReturns error information. Each detectable error is assigned a numeric code. When an error is detected, a flag is set and the code is recorded. Further errors, if they occur, do not affect this recorded code. WhenGetErroris called, the code is returned and the flag is cleared, so that a further error will again record its code. If a call toGetErrorreturnsNO_ERROR, then there has been no detectable error since the last call toGetError(or since the GL was initialized).- Specified by:
- glGetErrorin interface- GL
- Returns:
- the error code, or NO_ERROR if none
 
- 
glGetFloatDescription copied from interface:GLDetermine the current single-precision floating-point value(s) of the specified parameter.- Specified by:
- glGetFloatin interface- GL
- Parameters:
- parameterId- which parameter
- storeValues- storage for the value(s)
 
- 
glGetIntegerDescription copied from interface:GLReturns the current integer value of the specified state variable.LWJGL note: The state that corresponds to the state variable may be a single value or an array of values. In the case of an array of values, LWJGL will not validate if paramshas enough space to store that array. Doing so would introduce significant overhead, as the OpenGL state variables are too many. It is the user's responsibility to avoid JVM crashes by ensuring enough space for the returned values.- Specified by:
- glGetIntegerin interface- GL
- Parameters:
- pname- the state variable.
- params- a scalar or buffer in which to place the returned data.
 
- 
glGetProgramDescription copied from interface:GLReturns a parameter from a program object. - Specified by:
- glGetProgramin interface- GL
- Parameters:
- program- the program object to be queried.
- pname- the object parameter.
- params- the requested object parameter.
 
- 
glGetProgramInfoLogDescription copied from interface:GLReturns the information log for a program object. - Specified by:
- glGetProgramInfoLogin interface- GL
- Parameters:
- program- the program object whose information log is to be queried.
- maxLength- the size of the character buffer for storing the returned information log.
- Returns:
- the contents of the information log
 
- 
glGetQueryObjectui64public long glGetQueryObjectui64(int query, int pname) Description copied from interface:GLUnsigned version.- Specified by:
- glGetQueryObjectui64in interface- GL
- Parameters:
- query- the name of a query object
- pname- the symbolic name of a query object parameter
- Returns:
- the value of the parameter
 
- 
glGetQueryObjectivpublic int glGetQueryObjectiv(int query, int pname) Description copied from interface:GLReturns the integer value of a query object parameter. - Specified by:
- glGetQueryObjectivin interface- GL
- Parameters:
- query- the name of a query object
- pname- the symbolic name of a query object parameter. One of:- QUERY_RESULT- QUERY_RESULT_AVAILABLE
- Returns:
- the value of the parameter
 
- 
glGetShaderDescription copied from interface:GLReturns a parameter from a shader object. - Specified by:
- glGetShaderin interface- GL
- Parameters:
- shader- the shader object to be queried.
- pname- the object parameter.
- params- the requested object parameter.
 
- 
glGetShaderInfoLogDescription copied from interface:GLReturns the information log for a shader object. - Specified by:
- glGetShaderInfoLogin interface- GL
- Parameters:
- shader- the shader object whose information log is to be queried.
- maxLength- the size of the character buffer for storing the returned information log.
- Returns:
- the contents of the information log
 
- 
glGetStringDescription copied from interface:GLReturn strings describing properties of the current GL context. - Specified by:
- glGetStringin interface- GL
- Parameters:
- name- the property to query. One of:- RENDERER- VENDOR- EXTENSIONS- VERSION- SHADING_LANGUAGE_VERSION
- Returns:
- the value of the property
 
- 
glGetUniformLocationDescription copied from interface:GLReturns the location of a uniform variable. - Specified by:
- glGetUniformLocationin interface- GL
- Parameters:
- program- the program object to be queried.
- name- a null terminated string containing the name of the uniform variable whose location is to be queried.
- Returns:
- the location
 
- 
glIsEnabledpublic boolean glIsEnabled(int cap) Description copied from interface:GLDetermines if capis currently enabled (as withEnable) or disabled.- Specified by:
- glIsEnabledin interface- GL
- Parameters:
- cap- the enable state to query.
- Returns:
- true if enabled, otherwise false
 
- 
glLineWidthpublic void glLineWidth(float width) Description copied from interface:GLSets the width of rasterized line segments. The default width is 1.0.- Specified by:
- glLineWidthin interface- GL
- Parameters:
- width- the line width.
 
- 
glLinkProgrampublic void glLinkProgram(int program) Description copied from interface:GLLinks a program object.- Specified by:
- glLinkProgramin interface- GL
- Parameters:
- program- the program object to be linked.
 
- 
glPixelStoreipublic void glPixelStorei(int pname, int param) Description copied from interface:GLSets the integer value of a pixel store parameter. - Specified by:
- glPixelStoreiin interface- GL
- Parameters:
- pname- the pixel store parameter to set.
- param- the parameter value
 
- 
glPolygonOffsetpublic void glPolygonOffset(float factor, float units) Description copied from interface:GLThe depth values of all fragments generated by the rasterization of a polygon may be offset by a single value that is computed for that polygon. This function determines that value.factorscales the maximum depth slope of the polygon, andunitsscales an implementation-dependent constant that relates to the usable resolution of the depth buffer. The resulting values are summed to produce the polygon offset value.- Specified by:
- glPolygonOffsetin interface- GL
- Parameters:
- factor- the maximum depth slope factor.
- units- the constant scale.
 
- 
glReadPixelspublic void glReadPixels(int x, int y, int width, int height, int format, int type, ByteBuffer data) Description copied from interface:GLReadPixels obtains values from the selected read buffer from each pixel with lower left hand corner at (x + i, y + j)for0 <= i < widthand0 <= j < height; this pixel is said to be the ith pixel in the jth row. If any of these pixels lies outside of the window allocated to the current GL context, or outside of the image attached to the currently bound read framebuffer object, then the values obtained for those pixels are undefined. WhenREAD_FRAMEBUFFER_BINDINGis zero, values are also undefined for individual pixels that are not owned by the current context. Otherwise,ReadPixelsobtains values from the selected buffer, regardless of how those values were placed there.- Specified by:
- glReadPixelsin interface- GL
- Parameters:
- x- the left pixel coordinate
- y- the lower pixel coordinate
- width- the number of pixels to read in the x-dimension
- height- the number of pixels to read in the y-dimension
- format- the pixel format.
- type- the pixel type.
- data- a buffer in which to place the returned pixel data.
 
- 
glScissorpublic void glScissor(int x, int y, int width, int height) Description copied from interface:GLDefines the scissor rectangle for all viewports. The scissor test is enabled or disabled for all viewports using EnableorDisablewith the symbolic constantSCISSOR_TEST. When disabled, it is as if the scissor test always passes. When enabled, if left <= xw < left + width and bottom <= yw < bottom + height for the scissor rectangle, then the scissor test passes. Otherwise, the test fails and the fragment is discarded.
- 
glShaderSourceDescription copied from interface:GLSets the source code in shaderto the source code in the array of strings specified bystrings. Any source code previously stored in the shader object is completely replaced. The number of strings in the array is specified bycount. IflengthisNULL, each string is assumed to be null terminated. Iflengthis a value other thanNULL, it points to an array containing a string length for each of the corresponding elements ofstrings. Each element in the length array may contain the length of the corresponding string (the null character is not counted as part of the string length) or a value less than 0 to indicate that the string is null terminated. The source code strings are not scanned or parsed at this time; they are simply copied into the specified shader object.- Specified by:
- glShaderSourcein interface- GL
- Parameters:
- shader- the shader object whose source code is to be replaced,
- string- an array of pointers to strings containing the source code to be loaded into the shader
- length- storage for the string lengths, or null for null-terminated strings
 
- 
glStencilFuncSeparatepublic void glStencilFuncSeparate(int face, int func, int ref, int mask) Description copied from interface:GLSets front and/or back function and reference value for stencil testing. - Specified by:
- glStencilFuncSeparatein interface- GL
- Parameters:
- face- whether front and/or back stencil state is updated. One of:- FRONT- BACK- FRONT_AND_BACK
- func- the test function. The initial value is GL_ALWAYS. One of:- NEVER- LESS- LEQUAL- GREATER- GEQUAL- EQUAL- NOTEQUAL- ALWAYS
- ref- the reference value for the stencil test.- refis clamped to the range [0, 2n – 1], where- nis the number of bitplanes in the stencil buffer. The initial value is 0.
- mask- a mask that is ANDed with both the reference value and the stored stencil value when the test is done. The initial value is all 1's.
 
- 
glStencilOpSeparatepublic void glStencilOpSeparate(int face, int sfail, int dpfail, int dppass) Description copied from interface:GLSets front and/or back stencil test actions. - Specified by:
- glStencilOpSeparatein interface- GL
- Parameters:
- face- whether front and/or back stencil state is updated. One of:- FRONT- BACK- FRONT_AND_BACK
- sfail- the action to take when the stencil test fails. The initial value is GL_KEEP. One of:- KEEP- ZERO- REPLACE- INCR- INCR_WRAP- DECR- DECR_WRAP- INVERT
- dpfail- the stencil action when the stencil test passes, but the depth test fails. The initial value is GL_KEEP.
- dppass- the stencil action when both the stencil test and the depth test pass, or when the stencil test passes and either there is no depth buffer or depth testing is not enabled. The initial value is GL_KEEP.
 
- 
glTexImage2Dpublic void glTexImage2D(int target, int level, int internalFormat, int width, int height, int border, int format, int type, ByteBuffer data) Description copied from interface:GLSpecifies a two-dimensional texture image. - Specified by:
- glTexImage2Din interface- GL
- Parameters:
- target- the texture target.
- level- the level-of-detail number.
- internalFormat- the texture internal format.
- width- the texture width.
- height- the texture height.
- border- the texture border width.
- format- the texel data format.
- type- the texel data type.
- data- the texel data.
 
- 
glTexParameterfpublic void glTexParameterf(int target, int pname, float param) Description copied from interface:GLFloat version of TexParameteri.- Specified by:
- glTexParameterfin interface- GL
- Parameters:
- target- the texture target.
- pname- the parameter to set.
- param- the parameter value.
 
- 
glTexParameteripublic void glTexParameteri(int target, int pname, int param) Description copied from interface:GLSets the integer value of a texture parameter, which controls how the texel array is treated when specified or changed, and when applied to a fragment. - Specified by:
- glTexParameteriin interface- GL
- Parameters:
- target- the texture target.
- pname- the parameter to set.
- param- the parameter value.
 
- 
glTexSubImage2Dpublic void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, ByteBuffer data) Description copied from interface:GLRespecifies a rectangular subregion of an existing texel array. No change is made to the internalformat, width, height, depth, or border parameters of the specified texel array, nor is any change made to texel values outside the specified subregion. - Specified by:
- glTexSubImage2Din interface- GL
- Parameters:
- target- the texture target.
- level- the level-of-detail-number
- xoffset- the left coordinate of the texel subregion
- yoffset- the bottom coordinate of the texel subregion
- width- the subregion width
- height- the subregion height
- format- the pixel data format.
- type- the pixel data type.
- data- the pixel data.
 
- 
glUniform1Description copied from interface:GLSpecifies the value of a single float uniform variable or a float uniform variable array for the current program object. - Specified by:
- glUniform1in interface- GL
- Parameters:
- location- the location of the uniform variable to be modified.
- value- a pointer to an array of- countvalues that will be used to update the specified uniform variable.
 
- 
glUniform1Description copied from interface:GLSpecifies the value of a single int uniform variable or an int uniform variable array for the current program object. - Specified by:
- glUniform1in interface- GL
- Parameters:
- location- the location of the uniform variable to be modified.
- value- a pointer to an array of- countvalues that will be used to update the specified uniform variable.
 
- 
glUniform1fpublic void glUniform1f(int location, float v0) Description copied from interface:GLSpecifies the value of a float uniform variable for the current program object. - Specified by:
- glUniform1fin interface- GL
- Parameters:
- location- the location of the uniform variable to be modified.
- v0- the uniform value.
 
- 
glUniform1ipublic void glUniform1i(int location, int v0) Description copied from interface:GLSpecifies the value of an int uniform variable for the current program object. - Specified by:
- glUniform1iin interface- GL
- Parameters:
- location- the location of the uniform variable to be modified.
- v0- the uniform value.
 
- 
glUniform2Description copied from interface:GLSpecifies the value of a single ivec2 uniform variable or an ivec2 uniform variable array for the current program object. - Specified by:
- glUniform2in interface- GL
- Parameters:
- location- the location of the uniform variable to be modified.
- value- a pointer to an array of- countvalues that will be used to update the specified uniform variable.
 
- 
glUniform2Description copied from interface:GLSpecifies the value of a single vec2 uniform variable or a vec2 uniform variable array for the current program object. - Specified by:
- glUniform2in interface- GL
- Parameters:
- location- the location of the uniform variable to be modified.
- value- a pointer to an array of- countvalues that will be used to update the specified uniform variable.
 
- 
glUniform2fpublic void glUniform2f(int location, float v0, float v1) Description copied from interface:GLSpecifies the value of a vec2 uniform variable for the current program object. - Specified by:
- glUniform2fin interface- GL
- Parameters:
- location- the location of the uniform variable to be modified.
- v0- the uniform x value.
- v1- the uniform y value.
 
- 
glUniform3Description copied from interface:GLSpecifies the value of a single ivec3 uniform variable or an ivec3 uniform variable array for the current program object. - Specified by:
- glUniform3in interface- GL
- Parameters:
- location- the location of the uniform variable to be modified.
- value- a pointer to an array of- countvalues that will be used to update the specified uniform variable.
 
- 
glUniform3Description copied from interface:GLSpecifies the value of a single vec3 uniform variable or a vec3 uniform variable array for the current program object. - Specified by:
- glUniform3in interface- GL
- Parameters:
- location- the location of the uniform variable to be modified.
- value- a pointer to an array of- countvalues that will be used to update the specified uniform variable.
 
- 
glUniform3fpublic void glUniform3f(int location, float v0, float v1, float v2) Description copied from interface:GLSpecifies the value of a vec3 uniform variable for the current program object. - Specified by:
- glUniform3fin interface- GL
- Parameters:
- location- the location of the uniform variable to be modified.
- v0- the uniform x value.
- v1- the uniform y value.
- v2- the uniform z value.
 
- 
glUniform4Description copied from interface:GLSpecifies the value of a single vec4 uniform variable or a vec4 uniform variable array for the current program object. - Specified by:
- glUniform4in interface- GL
- Parameters:
- location- the location of the uniform variable to be modified.
- value- a pointer to an array of- countvalues that will be used to update the specified uniform variable.
 
- 
glUniform4Description copied from interface:GLSpecifies the value of a single ivec4 uniform variable or an ivec4 uniform variable array for the current program object. - Specified by:
- glUniform4in interface- GL
- Parameters:
- location- the location of the uniform variable to be modified.
- value- a pointer to an array of- countvalues that will be used to update the specified uniform variable.
 
- 
glUniform4fpublic void glUniform4f(int location, float v0, float v1, float v2, float v3) Description copied from interface:GLSpecifies the value of a vec4 uniform variable for the current program object. - Specified by:
- glUniform4fin interface- GL
- Parameters:
- location- the location of the uniform variable to be modified.
- v0- the uniform x value.
- v1- the uniform y value.
- v2- the uniform z value.
- v3- the uniform w value.
 
- 
glUniformMatrix3Description copied from interface:GLSpecifies the value of a single mat3 uniform variable or a mat3 uniform variable array for the current program object. - Specified by:
- glUniformMatrix3in interface- GL
- Parameters:
- location- the location of the uniform variable to be modified.
- transpose- whether to transpose the matrix as the values are loaded into the uniform variable.
- value- a pointer to an array of- countvalues that will be used to update the specified uniform variable.
 
- 
glUniformMatrix4Description copied from interface:GLSpecifies the value of a single mat4 uniform variable or a mat4 uniform variable array for the current program object. - Specified by:
- glUniformMatrix4in interface- GL
- Parameters:
- location- the location of the uniform variable to be modified.
- transpose- whether to transpose the matrix as the values are loaded into the uniform variable.
- value- a pointer to an array of- countvalues that will be used to update the specified uniform variable.
 
- 
glUseProgrampublic void glUseProgram(int program) Description copied from interface:GLInstalls a program object as part of current rendering state. - Specified by:
- glUseProgramin interface- GL
- Parameters:
- program- the program object whose executables are to be used as part of current rendering state.
 
- 
glVertexAttribPointerpublic void glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, long pointer) Description copied from interface:GLSpecifies the location and organization of a vertex attribute array. - Specified by:
- glVertexAttribPointerin interface- GL
- Parameters:
- index- the index of the generic vertex attribute to be modified
- size- the number of values per vertex that are stored in the array.
- type- the data type of each component in the array. The initial value is GL_FLOAT.
- normalized- whether fixed-point data values should be normalized or converted directly as fixed-point values when they are accessed
- stride- the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0.
- pointer- the vertex attribute data or the offset of the first component of the first generic vertex attribute in the array in the data store of the buffer currently bound to the- ARRAY_BUFFERtarget. The initial value is 0.
 
- 
glViewportpublic void glViewport(int x, int y, int width, int height) Description copied from interface:GLSpecifies the viewport transformation parameters for all viewports.In the initial state, widthandheightfor each viewport are set to the width and height, respectively, of the window into which the GL is to do its rendering. If the default framebuffer is bound but no default framebuffer is associated with the GL context, thenwidthandheightare initially set to zero.- Specified by:
- glViewportin interface- GL
- Parameters:
- x- the left viewport coordinate.
- y- the bottom viewport coordinate.
- width- the viewport width.
- height- the viewport height.
 
- 
glBlitFramebufferEXTpublic void glBlitFramebufferEXT(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter) - Specified by:
- glBlitFramebufferEXTin interface- GLFbo
 
- 
glBufferDataDescription copied from interface:GLExtCreates and initializes a buffer object's data store.usageis a hint to the GL implementation as to how a buffer object's data store will be accessed. This enables the GL implementation to make more intelligent decisions that may significantly impact buffer object performance. It does not, however, constrain the actual usage of the data store.usagecan be broken down into two parts: first, the frequency of access (modification and usage), and second, the nature of that access. The frequency of access may be one of these:- STREAM - The data store contents will be modified once and used at most a few times.
- STATIC - The data store contents will be modified once and used many times.
- DYNAMIC - The data store contents will be modified repeatedly and used many times.
 The nature of access may be one of these: - DRAW - The data store contents are modified by the application, and used as the source for GL drawing and image specification commands.
- READ - The data store contents are modified by reading data from the GL, and used to return that data when queried by the application.
- COPY - The data store contents are modified by reading data from the GL, and used as the source for GL drawing and image specification commands.
 - Specified by:
- glBufferDatain interface- GLExt
- Parameters:
- target- the target buffer object.
- data- a pointer to data that will be copied into the data store for initialization, or- NULLif no data is to be copied.
- usage- the expected usage pattern of the data store.
 
- 
glBufferSubDataDescription copied from interface:GLExtUpdates a subset of a buffer object's data store. - Specified by:
- glBufferSubDatain interface- GLExt
- Parameters:
- target- the target buffer object.
- offset- the offset into the buffer object's data store where data replacement will begin, measured in bytes.
- data- a pointer to the new data that will be copied into the data store.
 
- 
glDrawArraysInstancedARBpublic void glDrawArraysInstancedARB(int mode, int first, int count, int primcount) Description copied from interface:GLExtDraw multiple instances of a range of elements.- Specified by:
- glDrawArraysInstancedARBin interface- GLExt
- Parameters:
- mode- the kind of primitives to render.
- first- the starting index in the enabled arrays.
- count- the number of indices to be rendered.
- primcount- the number of instances of the specified range of indices to be rendered.
 
- 
glDrawBuffersDescription copied from interface:GLExtSpecifies a list of color buffers to be drawn into. - Specified by:
- glDrawBuffersin interface- GLExt
- Parameters:
- bufs- an array of symbolic constants specifying the buffers into which fragment colors or data values will be written.
 
- 
glDrawElementsInstancedARBpublic void glDrawElementsInstancedARB(int mode, int indicesCount, int type, long indicesBufferOffset, int primcount) Description copied from interface:GLExtDraws multiple instances of a set of elements.- Specified by:
- glDrawElementsInstancedARBin interface- GLExt
- Parameters:
- mode- the kind of primitives to render.
- indicesCount- the number of elements to be rendered.
- type- the type of the values in- indices.
- indicesBufferOffset- a pointer to the location where the indices are stored.
- primcount- the number of instances of the specified range of indices to be rendered.
 
- 
glGetMultisampleDescription copied from interface:GLExtRetrieves the location of a sample.- Specified by:
- glGetMultisamplein interface- GLExt
- Parameters:
- pname- the sample parameter name.
- index- the index of the sample whose position to query.
- val- an array to receive the position of the sample.
 
- 
glRenderbufferStorageMultisampleEXTpublic void glRenderbufferStorageMultisampleEXT(int target, int samples, int internalformat, int width, int height) - Specified by:
- glRenderbufferStorageMultisampleEXTin interface- GLFbo
 
- 
glTexImage2DMultisamplepublic void glTexImage2DMultisample(int target, int samples, int internalformat, int width, int height, boolean fixedSampleLocations) Description copied from interface:GLExtEstablishes the data storage, format, dimensions, and number of samples of a 2D multisample texture's image.- Specified by:
- glTexImage2DMultisamplein interface- GLExt
- Parameters:
- target- the target of the operation.
- samples- the number of samples in the multisample texture's image
- internalformat- the internal format to be used to store the multisample texture's image.- internalformatmust specify a color-renderable, depth-renderable, or stencil-renderable format.
- width- the width of the multisample texture's image, in texels
- height- the height of the multisample texture's image, in texels
- fixedSampleLocations- whether the image will use identical sample locations and the same number of samples for all texels in the image, and the sample locations will not depend on the internal format or size of the image
 
- 
glVertexAttribDivisorARBpublic void glVertexAttribDivisorARB(int index, int divisor) Description copied from interface:GLExtModifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives in a single draw call. Ifdivisoris zero, the attribute at slotindexadvances once per vertex. Ifdivisoris non-zero, the attribute advances once perdivisorinstances of the set(s) of vertices being rendered. An attribute is referred to asinstancedif itsdivisorvalue is non-zero.- Specified by:
- glVertexAttribDivisorARBin interface- GLExt
- Parameters:
- index- the attribute index.
- divisor- the divisor value.
 
- 
glBindFramebufferEXTpublic void glBindFramebufferEXT(int param1, int param2) - Specified by:
- glBindFramebufferEXTin interface- GLFbo
 
- 
glBindRenderbufferEXTpublic void glBindRenderbufferEXT(int param1, int param2) - Specified by:
- glBindRenderbufferEXTin interface- GLFbo
 
- 
glCheckFramebufferStatusEXTpublic int glCheckFramebufferStatusEXT(int param1) - Specified by:
- glCheckFramebufferStatusEXTin interface- GLFbo
 
- 
glDeleteFramebuffersEXT- Specified by:
- glDeleteFramebuffersEXTin interface- GLFbo
 
- 
glDeleteRenderbuffersEXT- Specified by:
- glDeleteRenderbuffersEXTin interface- GLFbo
 
- 
glFramebufferRenderbufferEXTpublic void glFramebufferRenderbufferEXT(int param1, int param2, int param3, int param4) - Specified by:
- glFramebufferRenderbufferEXTin interface- GLFbo
 
- 
glFramebufferTexture2DEXTpublic void glFramebufferTexture2DEXT(int param1, int param2, int param3, int param4, int param5) - Specified by:
- glFramebufferTexture2DEXTin interface- GLFbo
 
- 
glGenFramebuffersEXT- Specified by:
- glGenFramebuffersEXTin interface- GLFbo
 
- 
glGenRenderbuffersEXT- Specified by:
- glGenRenderbuffersEXTin interface- GLFbo
 
- 
glGenerateMipmapEXTpublic void glGenerateMipmapEXT(int param1) - Specified by:
- glGenerateMipmapEXTin interface- GLFbo
 
- 
glRenderbufferStorageEXTpublic void glRenderbufferStorageEXT(int param1, int param2, int param3, int param4) - Specified by:
- glRenderbufferStorageEXTin interface- GLFbo
 
- 
glReadPixelspublic void glReadPixels(int x, int y, int width, int height, int format, int type, long offset) Description copied from interface:GLReadPixels obtains values from the selected read buffer from each pixel with lower left hand corner at (x + i, y + j)for0 <= i < widthand0 <= j < height; this pixel is said to be the ith pixel in the jth row. If any of these pixels lies outside of the window allocated to the current GL context, or outside of the image attached to the currently bound read framebuffer object, then the values obtained for those pixels are undefined. WhenREAD_FRAMEBUFFER_BINDINGis zero, values are also undefined for individual pixels that are not owned by the current context. Otherwise,ReadPixelsobtains values from the selected buffer, regardless of how those values were placed there.- Specified by:
- glReadPixelsin interface- GL
- Parameters:
- x- the left pixel coordinate
- y- the lower pixel coordinate
- width- the number of pixels to read in the x-dimension
- height- the number of pixels to read in the y-dimension
- format- the pixel format.
- type- the pixel type.
- offset- a buffer in which to place the returned pixel data/
 
- 
glClientWaitSyncDescription copied from interface:GLExtCauses the client to block and wait for a sync object to become signaled. Ifsyncis signaled whenglClientWaitSyncis called,glClientWaitSyncreturns immediately, otherwise it will block and wait for up to timeout nanoseconds forsyncto become signaled.- Specified by:
- glClientWaitSyncin interface- GLExt
- Parameters:
- sync- the sync object whose status to wait on.
- flags- a bitfield controlling the command flushing behavior.
- timeout- the timeout, specified in nanoseconds, for which the implementation should wait for- syncto become signaled.
- Returns:
- the status is one of ALREADY_SIGNALED, TIMEOUT_EXPIRED, CONDITION_SATISFIED or WAIT_FAILED.
 
- 
glDeleteSyncDescription copied from interface:GLExtDeletes a sync object.- Specified by:
- glDeleteSyncin interface- GLExt
- Parameters:
- sync- the sync object to be deleted.
 
- 
glFenceSyncDescription copied from interface:GLExtCreates a new sync object and inserts it into the GL command stream.- Specified by:
- glFenceSyncin interface- GLExt
- Parameters:
- condition- the condition that must be met to set the sync object's state to signaled.
- flags- a bitwise combination of flags controlling the behavior of the sync object. No flags are presently defined for this operation and- flagsmust be zero.
- Returns:
- a new instance
 
- 
glBlendEquationSeparatepublic void glBlendEquationSeparate(int colorMode, int alphaMode) Description copied from interface:GLSets the RGB blend equation and the alpha blend equation separately. - Specified by:
- glBlendEquationSeparatein interface- GL
- Parameters:
- colorMode- the RGB blend equation, how the red, green, and blue components of the source and destination colors are combined.
- alphaMode- the alpha blend equation, how the alpha component of the source and destination colors are combined
 
- 
glFramebufferTextureLayerEXTpublic void glFramebufferTextureLayerEXT(int target, int attachment, int texture, int level, int layer) - Specified by:
- glFramebufferTextureLayerEXTin interface- GLFbo
 
- 
glAlphaFuncpublic void glAlphaFunc(int func, float ref) Description copied from interface:GL2Reference Page - This function is deprecated and unavailable in the Core profile The alpha test discards a fragment conditionally based on the outcome of a comparison between the incoming fragment’s alpha value and a constant value. The comparison is enabled or disabled with the genericEnableandDisablecommands using the symbolic constantALPHA_TEST. When disabled, it is as if the comparison always passes. The test is controlled with this method.- Specified by:
- glAlphaFuncin interface- GL2
- Parameters:
- func- a symbolic constant indicating the alpha test function. One of:- NEVER- ALWAYS- LESS- LEQUAL- EQUAL- GEQUAL- GREATER- NOTEQUAL
- ref- a reference value clamped to the range [0, 1]. When performing the alpha test, the GL will convert the reference value to the same representation as the fragment's alpha value (floating-point or fixed-point).
 
- 
glPointSizepublic void glPointSize(float size) Description copied from interface:GL2Controls the rasterization of points if no vertex, tessellation control, tessellation evaluation, or geometry shader is active. The default point size is 1.0. - Specified by:
- glPointSizein interface- GL2
- Parameters:
- size- the request size of a point.
 
- 
glPolygonModepublic void glPolygonMode(int face, int mode) Description copied from interface:GL2Controls the interpretation of polygons for rasterization.FILLis the default mode of polygon rasterization. Note that these modes affect only the final rasterization of polygons: in particular, a polygon's vertices are lit, and the polygon is clipped and possibly culled before these modes are applied. Polygon antialiasing applies only to theFILLstate of PolygonMode. ForPOINTorLINE, point antialiasing or line segment antialiasing, respectively, apply.- Specified by:
- glPolygonModein interface- GL2
- Parameters:
- face- the face for which to set the rasterizing method. One of:- FRONT- BACK- FRONT_AND_BACK
- mode- the rasterization mode. One of:- POINT- LINE- FILL
 
- 
glDrawBufferpublic void glDrawBuffer(int mode) Description copied from interface:GL2Defines the color buffer to which fragment color zero is written. - Specified by:
- glDrawBufferin interface- GL2
- Parameters:
- mode- the color buffer to draw to.
 
- 
glReadBufferpublic void glReadBuffer(int mode) Description copied from interface:GL2Defines the color buffer from which values are obtained. - Specified by:
- glReadBufferin interface- GL2
- Parameters:
- mode- the color buffer to read from.
 
- 
glCompressedTexImage3Dpublic void glCompressedTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, ByteBuffer data) Description copied from interface:GL2Specifies a three-dimensional texture image in a compressed format. - Specified by:
- glCompressedTexImage3Din interface- GL2
- Parameters:
- target- the target texture.
- level- the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
- internalFormat- the format of the compressed image data.
- width- the width of the texture image
- height- the height of the texture image
- depth- the depth of the texture image
- border- must be 0
- data- a pointer to the compressed image data
 
- 
glCompressedTexSubImage3Dpublic void glCompressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, ByteBuffer data) Description copied from interface:GL2Respecifies only a cubic subregion of an existing 3D texel array, with incoming data stored in a specific compressed image format. - Specified by:
- glCompressedTexSubImage3Din interface- GL2
- Parameters:
- target- the target texture.
- level- the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
- xoffset- a texel offset in the x direction within the texture array.
- yoffset- a texel offset in the y direction within the texture array.
- zoffset- a texel offset in the z direction within the texture array.
- width- the width of the texture subimage.
- height- the height of the texture subimage.
- depth- the depth of the texture subimage.
- format- the format of the compressed image data stored at address- data.
- data- a pointer to the compressed image data.
 
- 
glTexImage3Dpublic void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, ByteBuffer data) Description copied from interface:GL2Specifies a three-dimensional texture image. - Specified by:
- glTexImage3Din interface- GL2
- Parameters:
- target- the texture target.
- level- the level-of-detail number.
- internalFormat- the texture internal format.
- width- the texture width.
- height- the texture height.
- depth- the texture depth.
- border- the texture border width.
- format- the texel data format.
- type- the texel data type.
- data- the texel data.
 
- 
glTexSubImage3Dpublic void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, ByteBuffer data) Description copied from interface:GL2Respecifies a cubic subregion of an existing 3D texel array. No change is made to the internalformat, width, height, depth, or border parameters of the specified texel array, nor is any change made to texel values outside the specified subregion. - Specified by:
- glTexSubImage3Din interface- GL2
- Parameters:
- target- the texture target.
- level- the level-of-detail-number.
- xoffset- the x coordinate of the texel subregion.
- yoffset- the y coordinate of the texel subregion.
- zoffset- the z coordinate of the texel subregion.
- width- the subregion width.
- height- the subregion height.
- depth- the subregion depth.
- format- the pixel data format.
- type- the pixel data type.
- data- the pixel data.
 
 
-