Package com.jme3.renderer.opengl
Interface GLExt
- All Known Implementing Classes:
AndroidGL
,IosGL
,LwjglGLExt
public interface GLExt
GL functions provided by extensions.
Always must check against a renderer capability prior to using those.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
glBufferData
(int target, IntBuffer data, int usage) void
glBufferSubData
(int target, long offset, IntBuffer data) int
glClientWaitSync
(Object sync, int flags, long timeout) Causes the client to block and wait for a sync object to become signaled.void
glDeleteSync
(Object sync) Deletes a sync object.void
glDrawArraysInstancedARB
(int mode, int first, int count, int primCount) Draw multiple instances of a range of elements.void
glDrawBuffers
(IntBuffer bufs) void
glDrawElementsInstancedARB
(int mode, int indicesCount, int type, long indicesBufferOffset, int primCount) Draws multiple instances of a set of elements.glFenceSync
(int condition, int flags) Creates a new sync object and inserts it into the GL command stream.void
glGetMultisample
(int pname, int index, FloatBuffer val) Retrieves the location of a sample.default void
glObjectLabel
(int identifier, int id, String label) default void
default void
glPushDebugGroup
(int source, int id, String message) void
glTexImage2DMultisample
(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.void
glVertexAttribDivisorARB
(int index, int divisor) Modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives in a single draw call.
-
Field Details
-
GL_ALREADY_SIGNALED
static final int GL_ALREADY_SIGNALED- See Also:
-
GL_COMPRESSED_RGB8_ETC2
static final int GL_COMPRESSED_RGB8_ETC2- See Also:
-
GL_COMPRESSED_SRGB8_ETC2
static final int GL_COMPRESSED_SRGB8_ETC2- See Also:
-
GL_COMPRESSED_RGBA8_ETC2_EAC
static final int GL_COMPRESSED_RGBA8_ETC2_EAC- See Also:
-
GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC
static final int GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC- See Also:
-
GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2
static final int GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2- See Also:
-
GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2
static final int GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2- See Also:
-
GL_COMPRESSED_RGBA_S3TC_DXT1_EXT
static final int GL_COMPRESSED_RGBA_S3TC_DXT1_EXT- See Also:
-
GL_COMPRESSED_RGBA_S3TC_DXT3_EXT
static final int GL_COMPRESSED_RGBA_S3TC_DXT3_EXT- See Also:
-
GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
static final int GL_COMPRESSED_RGBA_S3TC_DXT5_EXT- See Also:
-
GL_COMPRESSED_RGB_S3TC_DXT1_EXT
static final int GL_COMPRESSED_RGB_S3TC_DXT1_EXT- See Also:
-
GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT
static final int GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT- See Also:
-
GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT
static final int GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT- See Also:
-
GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT
static final int GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT- See Also:
-
GL_COMPRESSED_SRGB_S3TC_DXT1_EXT
static final int GL_COMPRESSED_SRGB_S3TC_DXT1_EXT- See Also:
-
GL_CONDITION_SATISFIED
static final int GL_CONDITION_SATISFIED- See Also:
-
GL_DEPTH_COMPONENT32F
static final int GL_DEPTH_COMPONENT32F- See Also:
-
GL_DEPTH24_STENCIL8_EXT
static final int GL_DEPTH24_STENCIL8_EXT- See Also:
-
GL_DEPTH_STENCIL_EXT
static final int GL_DEPTH_STENCIL_EXT- See Also:
-
GL_ETC1_RGB8_OES
static final int GL_ETC1_RGB8_OES- See Also:
-
GL_FRAMEBUFFER_SRGB_CAPABLE_EXT
static final int GL_FRAMEBUFFER_SRGB_CAPABLE_EXT- See Also:
-
GL_FRAMEBUFFER_SRGB_EXT
static final int GL_FRAMEBUFFER_SRGB_EXT- See Also:
-
GL_HALF_FLOAT_ARB
static final int GL_HALF_FLOAT_ARB- See Also:
-
GL_HALF_FLOAT_OES
static final int GL_HALF_FLOAT_OES- See Also:
-
GL_LUMINANCE16F_ARB
static final int GL_LUMINANCE16F_ARB- See Also:
-
GL_LUMINANCE32F_ARB
static final int GL_LUMINANCE32F_ARB- See Also:
-
GL_LUMINANCE_ALPHA16F_ARB
static final int GL_LUMINANCE_ALPHA16F_ARB- See Also:
-
GL_MAX_COLOR_TEXTURE_SAMPLES
static final int GL_MAX_COLOR_TEXTURE_SAMPLES- See Also:
-
GL_MAX_DEPTH_TEXTURE_SAMPLES
static final int GL_MAX_DEPTH_TEXTURE_SAMPLES- See Also:
-
GL_MAX_DRAW_BUFFERS_ARB
static final int GL_MAX_DRAW_BUFFERS_ARB- See Also:
-
GL_MAX_SAMPLES_EXT
static final int GL_MAX_SAMPLES_EXT- See Also:
-
GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT
static final int GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT- See Also:
-
GL_MULTISAMPLE_ARB
static final int GL_MULTISAMPLE_ARB- See Also:
-
GL_NUM_PROGRAM_BINARY_FORMATS
static final int GL_NUM_PROGRAM_BINARY_FORMATS- See Also:
-
GL_PIXEL_PACK_BUFFER_ARB
static final int GL_PIXEL_PACK_BUFFER_ARB- See Also:
-
GL_PIXEL_UNPACK_BUFFER_ARB
static final int GL_PIXEL_UNPACK_BUFFER_ARB- See Also:
-
GL_R11F_G11F_B10F_EXT
static final int GL_R11F_G11F_B10F_EXT- See Also:
-
GL_RGBA8
static final int GL_RGBA8- See Also:
-
GL_RGB16F_ARB
static final int GL_RGB16F_ARB- See Also:
-
GL_RGB32F_ARB
static final int GL_RGB32F_ARB- See Also:
-
GL_RGB9_E5_EXT
static final int GL_RGB9_E5_EXT- See Also:
-
GL_RGBA16F_ARB
static final int GL_RGBA16F_ARB- See Also:
-
GL_RGBA32F_ARB
static final int GL_RGBA32F_ARB- See Also:
-
GL_SAMPLES_ARB
static final int GL_SAMPLES_ARB- See Also:
-
GL_SAMPLE_ALPHA_TO_COVERAGE_ARB
static final int GL_SAMPLE_ALPHA_TO_COVERAGE_ARB- See Also:
-
GL_SAMPLE_BUFFERS_ARB
static final int GL_SAMPLE_BUFFERS_ARB- See Also:
-
GL_SAMPLE_POSITION
static final int GL_SAMPLE_POSITION- See Also:
-
GL_SLUMINANCE8_ALPHA8_EXT
static final int GL_SLUMINANCE8_ALPHA8_EXT- See Also:
-
GL_SLUMINANCE8_EXT
static final int GL_SLUMINANCE8_EXT- See Also:
-
GL_SRGB8_ALPHA8_EXT
static final int GL_SRGB8_ALPHA8_EXT- See Also:
-
GL_SRGB8_EXT
static final int GL_SRGB8_EXT- See Also:
-
GL_SYNC_FLUSH_COMMANDS_BIT
static final int GL_SYNC_FLUSH_COMMANDS_BIT- See Also:
-
GL_SYNC_GPU_COMMANDS_COMPLETE
static final int GL_SYNC_GPU_COMMANDS_COMPLETE- See Also:
-
GL_TEXTURE_2D_ARRAY_EXT
static final int GL_TEXTURE_2D_ARRAY_EXT- See Also:
-
GL_TEXTURE_2D_MULTISAMPLE
static final int GL_TEXTURE_2D_MULTISAMPLE- See Also:
-
GL_TEXTURE_2D_MULTISAMPLE_ARRAY
static final int GL_TEXTURE_2D_MULTISAMPLE_ARRAY- See Also:
-
GL_TEXTURE_CUBE_MAP_SEAMLESS
static final int GL_TEXTURE_CUBE_MAP_SEAMLESS- See Also:
-
GL_TEXTURE_MAX_ANISOTROPY_EXT
static final int GL_TEXTURE_MAX_ANISOTROPY_EXT- See Also:
-
GL_TIMEOUT_EXPIRED
static final int GL_TIMEOUT_EXPIRED- See Also:
-
GL_UNSIGNED_INT_10F_11F_11F_REV_EXT
static final int GL_UNSIGNED_INT_10F_11F_11F_REV_EXT- See Also:
-
GL_UNSIGNED_INT_24_8_EXT
static final int GL_UNSIGNED_INT_24_8_EXT- See Also:
-
GL_UNSIGNED_INT_5_9_9_9_REV_EXT
static final int GL_UNSIGNED_INT_5_9_9_9_REV_EXT- See Also:
-
GL_WAIT_FAILED
static final int GL_WAIT_FAILED- See Also:
-
GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT
static final int GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT- See Also:
-
GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT
static final int GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT- See Also:
-
GL_COMPRESSED_RGBA_BPTC_UNORM
static final int GL_COMPRESSED_RGBA_BPTC_UNORM- See Also:
-
GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM
static final int GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM- See Also:
-
GL_DEBUG_SOURCE_API
static final int GL_DEBUG_SOURCE_API- See Also:
-
GL_DEBUG_SOURCE_WINDOW_SYSTEM
static final int GL_DEBUG_SOURCE_WINDOW_SYSTEM- See Also:
-
GL_DEBUG_SOURCE_SHADER_COMPILER
static final int GL_DEBUG_SOURCE_SHADER_COMPILER- See Also:
-
GL_DEBUG_SOURCE_THIRD_PARTY
static final int GL_DEBUG_SOURCE_THIRD_PARTY- See Also:
-
GL_DEBUG_SOURCE_APPLICATION
static final int GL_DEBUG_SOURCE_APPLICATION- See Also:
-
GL_DEBUG_SOURCE_OTHER
static final int GL_DEBUG_SOURCE_OTHER- See Also:
-
GL_BUFFER
static final int GL_BUFFER- See Also:
-
GL_SHADER
static final int GL_SHADER- See Also:
-
GL_PROGRAM
static final int GL_PROGRAM- See Also:
-
GL_QUERY
static final int GL_QUERY- See Also:
-
GL_PROGRAM_PIPELINE
static final int GL_PROGRAM_PIPELINE- See Also:
-
GL_SAMPLER
static final int GL_SAMPLER- See Also:
-
GL_DISPLAY_LIST
static final int GL_DISPLAY_LIST- See Also:
-
-
Method Details
-
glBufferData
Creates and initializes a buffer object's data store.usage
is 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.usage
can 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.
- Parameters:
target
- the target buffer object.data
- a pointer to data that will be copied into the data store for initialization, orNULL
if no data is to be copied.usage
- the expected usage pattern of the data store.
-
glBufferSubData
Updates a subset of a buffer object's data store.
- 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.
-
glClientWaitSync
Causes the client to block and wait for a sync object to become signaled. Ifsync
is signaled whenglClientWaitSync
is called,glClientWaitSync
returns immediately, otherwise it will block and wait for up to timeout nanoseconds forsync
to become signaled.- 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 forsync
to become signaled.- Returns:
- the status is one of ALREADY_SIGNALED, TIMEOUT_EXPIRED, CONDITION_SATISFIED or WAIT_FAILED.
-
glDeleteSync
Deletes a sync object.- Parameters:
sync
- the sync object to be deleted.
-
glDrawArraysInstancedARB
void glDrawArraysInstancedARB(int mode, int first, int count, int primCount) Draw multiple instances of a range of elements.- 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.
-
glDrawBuffers
Specifies a list of color buffers to be drawn into.
- Parameters:
bufs
- an array of symbolic constants specifying the buffers into which fragment colors or data values will be written.
-
glDrawElementsInstancedARB
void glDrawElementsInstancedARB(int mode, int indicesCount, int type, long indicesBufferOffset, int primCount) Draws multiple instances of a set of elements.- Parameters:
mode
- the kind of primitives to render.indicesCount
- the number of elements to be rendered.type
- the type of the values inindices
.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.
-
glFenceSync
Creates a new sync object and inserts it into the GL command stream.- 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 andflags
must be zero.- Returns:
- a new instance
-
glGetMultisample
Retrieves the location of a sample.- 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.
-
glTexImage2DMultisample
void glTexImage2DMultisample(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.- Parameters:
target
- the target of the operation.samples
- the number of samples in the multisample texture's imageinternalFormat
- the internal format to be used to store the multisample texture's image.internalformat
must specify a color-renderable, depth-renderable, or stencil-renderable format.width
- the width of the multisample texture's image, in texelsheight
- the height of the multisample texture's image, in texelsfixedSampleLocations
- 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
-
glVertexAttribDivisorARB
void glVertexAttribDivisorARB(int index, int divisor) Modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives in a single draw call. Ifdivisor
is zero, the attribute at slotindex
advances once per vertex. Ifdivisor
is non-zero, the attribute advances once perdivisor
instances of the set(s) of vertices being rendered. An attribute is referred to asinstanced
if itsdivisor
value is non-zero.- Parameters:
index
- the attribute index.divisor
- the divisor value.
-
glPushDebugGroup
-
glPopDebugGroup
default void glPopDebugGroup() -
glObjectLabel
-