Package com.jme3.renderer.opengl
Interface GL4
- All Known Implementing Classes:
LwjglGL
GL functions only available on vanilla desktop OpenGL 4.0.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intReturned by ClientWaitSync.static final intAccepted by thetargetparameter of BindBufferBase and BindBufferRange.static final intAccepted by theshaderTypeparameter of CreateShader.static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intAccepted by the <pname> parameter of GetIntegerv, GetBooleanv, GetInteger64v, GetFloatv, and GetDoublev:static final intstatic final intAccepted by thebarriersparameter of MemoryBarrier.static final intstatic final intAccepted by thetargetparameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, and GetBufferPointerv.static final intstatic final intAccepted by theconditionparameter of FenceSync.static final intstatic final intstatic final intstatic final intstatic final intFields inherited from interface com.jme3.renderer.opengl.GL
GL_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_DYNAMIC_READ, 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_VECTORS, GL_MAX_TEXTURE_IMAGE_UNITS, GL_MAX_TEXTURE_SIZE, GL_MAX_VERTEX_ATTRIBS, GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS, 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_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STENCIL_BUFFER_BIT, GL_STENCIL_TEST, GL_STREAM_COPY, 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.GL2
GL_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_READ_ONLY, GL_READ_WRITE, 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_SIZE, GL_WRITE_ONLYFields inherited from interface com.jme3.renderer.opengl.GL3
GL_COMPRESSED_RED_RGTC1, GL_COMPRESSED_RG_RGTC2, GL_COMPRESSED_SIGNED_RED_RGTC1, GL_COMPRESSED_SIGNED_RG_RGTC2, GL_DEPTH_STENCIL_ATTACHMENT, GL_DRAW_FRAMEBUFFER, GL_FRAMEBUFFER, GL_GEOMETRY_SHADER, GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS, GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS, GL_MAX_COMBINED_UNIFORM_BLOCKS, GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS, GL_MAX_FRAGMENT_UNIFORM_BLOCKS, GL_MAX_GEOMETRY_UNIFORM_BLOCKS, GL_MAX_UNIFORM_BLOCK_SIZE, GL_MAX_UNIFORM_BUFFER_BINDINGS, GL_MAX_VERTEX_UNIFORM_BLOCKS, GL_NUM_EXTENSIONS, GL_R16F, GL_R16I, GL_R16UI, GL_R32F, GL_R32I, GL_R32UI, GL_R8, GL_R8I, GL_R8UI, GL_READ_FRAMEBUFFER, GL_RED_INTEGER, GL_RG, GL_RG_INTEGER, GL_RG16F, GL_RG16I, GL_RG16UI, GL_RG32F, GL_RG32I, GL_RG32UI, GL_RG8, GL_RG8I, GL_RG8UI, GL_RGB_INTEGER, GL_RGB16I, GL_RGB16UI, GL_RGB32I, GL_RGB32UI, GL_RGB8I, GL_RGB8UI, GL_RGBA_INTEGER, GL_RGBA16I, GL_RGBA16UI, GL_RGBA32I, GL_RGBA32UI, GL_RGBA8I, GL_RGBA8UI, GL_TEXTURE_SWIZZLE_A, GL_TEXTURE_SWIZZLE_B, GL_TEXTURE_SWIZZLE_G, GL_TEXTURE_SWIZZLE_R, GL_TRANSFORM_FEEDBACK_BUFFER, GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES, GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS, GL_UNIFORM_BLOCK_BINDING, GL_UNIFORM_BLOCK_DATA_SIZE, GL_UNIFORM_BLOCK_NAME_LENGTH, GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER, GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER, GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER, GL_UNIFORM_BUFFER, GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, GL_UNIFORM_OFFSET -
Method Summary
Modifier and TypeMethodDescriptionvoidglBindImageTexture(int unit, int texture, int level, boolean layered, int layer, int access, int format) Binds a single level of a texture to an image unit for the purpose of reading and writing it from shaders.intglClientWaitSync(GLFence sync, int flags, long timeout) voidglDeleteSync(GLFence sync) voidglDispatchCompute(int numGroupsX, int numGroupsY, int numGroupsZ) glFenceSync(int condition, int flags) intglGetProgramResourceIndex(int program, int programInterface, String name) Returns the unsigned integer index assigned to a resource named name in the interface type programInterface of program object program.voidglMemoryBarrier(int barriers) voidglPatchParameter(int count) voidglShaderStorageBlockBinding(int program, int storageBlockIndex, int storageBlockBinding) Changes the active shader storage block with an assigned index of storageBlockIndex in program object program.Methods inherited from interface com.jme3.renderer.opengl.GL
glActiveTexture, glAttachShader, glBeginQuery, glBindBuffer, glBindTexture, glBlendEquationSeparate, glBlendFunc, glBlendFuncSeparate, glBufferData, glBufferData, glBufferData, glBufferData, glBufferData, glBufferSubData, glBufferSubData, glBufferSubData, glClear, glClearColor, glColorMask, glCompileShader, glCompressedTexImage2D, glCompressedTexSubImage2D, glCreateProgram, glCreateShader, glCullFace, glDeleteBuffers, glDeleteProgram, glDeleteShader, glDeleteTextures, glDepthFunc, glDepthMask, glDepthRange, glDetachShader, glDisable, glDisableVertexAttribArray, glDrawArrays, glDrawRangeElements, glEnable, glEnableVertexAttribArray, glEndQuery, glGenBuffers, glGenQueries, glGenTextures, glGetAttribLocation, glGetBoolean, glGetBufferSubData, glGetBufferSubData, glGetError, glGetFloat, glGetInteger, glGetProgram, glGetProgramInfoLog, glGetQueryObjectiv, glGetQueryObjectui64, glGetShader, glGetShaderInfoLog, glGetString, glGetUniformLocation, glIsEnabled, glLineWidth, glLinkProgram, glPixelStorei, glPolygonOffset, glReadPixels, glReadPixels, glScissor, glShaderSource, glStencilFuncSeparate, glStencilOpSeparate, glTexImage2D, glTexParameterf, glTexParameteri, glTexSubImage2D, glUniform1, glUniform1, glUniform1f, glUniform1i, glUniform2, glUniform2, glUniform2f, glUniform3, glUniform3, glUniform3f, glUniform4, glUniform4, glUniform4f, glUniformMatrix3, glUniformMatrix4, glUseProgram, glVertexAttribPointer, glViewport, resetStatsMethods inherited from interface com.jme3.renderer.opengl.GL2
glAlphaFunc, glCompressedTexImage3D, glCompressedTexSubImage3D, glDrawBuffer, glPointSize, glPolygonMode, glReadBuffer, glTexImage3D, glTexSubImage3DMethods inherited from interface com.jme3.renderer.opengl.GL3
glBindBufferBase, glBindFragDataLocation, glBindVertexArray, glDeleteVertexArrays, glGenVertexArrays, glGetString, glGetUniformBlockIndex, glUniformBlockBinding
-
Field Details
-
GL_TESS_CONTROL_SHADER
static final int GL_TESS_CONTROL_SHADER- See Also:
-
GL_TESS_EVALUATION_SHADER
static final int GL_TESS_EVALUATION_SHADER- See Also:
-
GL_PATCHES
static final int GL_PATCHES- See Also:
-
GL_COMPUTE_SHADER
static final int GL_COMPUTE_SHADERAccepted by theshaderTypeparameter of CreateShader.- See Also:
-
GL_SHADER_STORAGE_BARRIER_BIT
static final int GL_SHADER_STORAGE_BARRIER_BITAccepted by thebarriersparameter of MemoryBarrier.- See Also:
-
GL_TEXTURE_FETCH_BARRIER_BIT
static final int GL_TEXTURE_FETCH_BARRIER_BIT- See Also:
-
GL_SYNC_GPU_COMMANDS_COMPLETE
static final int GL_SYNC_GPU_COMMANDS_COMPLETEAccepted by theconditionparameter of FenceSync.- See Also:
-
GL_ALREADY_SIGNALED
static final int GL_ALREADY_SIGNALEDReturned by ClientWaitSync.- See Also:
-
GL_TIMEOUT_EXPIRED
static final int GL_TIMEOUT_EXPIRED- See Also:
-
GL_CONDITION_SATISFIED
static final int GL_CONDITION_SATISFIED- See Also:
-
GL_WAIT_FAILED
static final int GL_WAIT_FAILED- See Also:
-
GL_ATOMIC_COUNTER_BUFFER
static final int GL_ATOMIC_COUNTER_BUFFERAccepted by thetargetparameter of BindBufferBase and BindBufferRange.- See Also:
-
GL_SHADER_STORAGE_BUFFER
static final int GL_SHADER_STORAGE_BUFFERAccepted by thetargetparameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, and GetBufferPointerv.- See Also:
-
GL_SHADER_STORAGE_BLOCK
static final int GL_SHADER_STORAGE_BLOCK- See Also:
-
GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS
static final int GL_MAX_VERTEX_SHADER_STORAGE_BLOCKSAccepted by the <pname> parameter of GetIntegerv, GetBooleanv, GetInteger64v, GetFloatv, and GetDoublev:- See Also:
-
GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS
static final int GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS- See Also:
-
GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS
static final int GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS- See Also:
-
GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS
static final int GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS- See Also:
-
GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS
static final int GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS- See Also:
-
GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS
static final int GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS- See Also:
-
GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS
static final int GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS- See Also:
-
GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS
static final int GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS- See Also:
-
GL_MAX_SHADER_STORAGE_BLOCK_SIZE
static final int GL_MAX_SHADER_STORAGE_BLOCK_SIZE- See Also:
-
GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT
static final int GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT- See Also:
-
-
Method Details
-
glPatchParameter
void glPatchParameter(int count) Specifies the integer value of the specified parameter for patch primitives.
- Parameters:
count- the new value for the parameter given bypname
-
glGetProgramResourceIndex
Returns the unsigned integer index assigned to a resource named name in the interface type programInterface of program object program.- Parameters:
program- the name of a program object whose resources to query.programInterface- a token identifying the interface within program containing the resource named name.name- the name of the resource to query the index of.- Returns:
- the index of a named resource within a program.
-
glShaderStorageBlockBinding
void glShaderStorageBlockBinding(int program, int storageBlockIndex, int storageBlockBinding) Changes the active shader storage block with an assigned index of storageBlockIndex in program object program. storageBlockIndex must be an active shader storage block index in program. storageBlockBinding must be less than the value of#GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS. If successful, glShaderStorageBlockBinding specifies that program will use the data store of the buffer object bound to the binding point storageBlockBinding to read and write the values of the buffer variables in the shader storage block identified by storageBlockIndex.- Parameters:
program- the name of a program object whose resources to query.storageBlockIndex- The index storage block within the program.storageBlockBinding- The index storage block binding to associate with the specified storage block.
-
glBindImageTexture
void glBindImageTexture(int unit, int texture, int level, boolean layered, int layer, int access, int format) Binds a single level of a texture to an image unit for the purpose of reading and writing it from shaders.- Parameters:
unit- image unit to bind totexture- texture to bind to the image unitlevel- level of the texture to bindlayered- true to bind all array elementslayer- if not layered, the layer to bindaccess- access types that may be performedformat- format to use when performing formatted stores
-
glDispatchCompute
void glDispatchCompute(int numGroupsX, int numGroupsY, int numGroupsZ) Launches one or more compute work groups.
- Parameters:
numGroupsX- the number of work groups to be launched in the X dimensionnumGroupsY- the number of work groups to be launched in the Y dimensionnumGroupsZ- the number of work groups to be launched in the Z dimension
-
glMemoryBarrier
void glMemoryBarrier(int barriers) Defines a barrier ordering memory transactions.
- Parameters:
barriers- the barriers to insert. One or more of:GL_SHADER_STORAGE_BARRIER_BITGL_TEXTURE_FETCH_BARRIER_BIT
-
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. Must beGL_SYNC_GPU_COMMANDS_COMPLETE.flags- must be 0- Returns:
- the sync object handle
-
glClientWaitSync
Causes the client to block and wait for a sync object to become signaled.
- Parameters:
sync- the sync object to wait onflags- flags controlling command flushing behavior. May be 0 or GL_SYNC_FLUSH_COMMANDS_BIT.timeout- the timeout in nanoseconds for which to wait- Returns:
- one of
GL_ALREADY_SIGNALED,GL_TIMEOUT_EXPIRED,GL_CONDITION_SATISFIED, orGL_WAIT_FAILED
-
glDeleteSync
Deletes a sync object.
- Parameters:
sync- the sync object to delete
-