Package com.jme3.renderer.opengl
Interface GL3
- All Known Subinterfaces:
GL4
- All Known Implementing Classes:
LwjglGL
GL functions only available on vanilla desktop OpenGL 3.0+.
-
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
Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev: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
Accepted by thetarget
parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, GetBufferPointerv, BindBufferRange, BindBufferOffset and BindBufferBase.static final int
static final int
static final int
Accepted by thepname
parameter of GetActiveUniformBlockiv.static final int
static final int
static final int
static final int
static final int
static final int
Accepted by thetarget
parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, and GetBufferPointerv.static final int
static final int
Fields 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_ZERO
Fields 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_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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
glBindBufferBase
(int target, int index, int buffer) void
glBindFragDataLocation
(int program, int colorNumber, String name) void
glBindVertexArray
(int array) void
glDeleteVertexArrays
(IntBuffer arrays) Deletes vertex array objects.void
glGenVertexArrays
(IntBuffer arrays) glGetString
(int name, int index) int
glGetUniformBlockIndex
(int program, String uniformBlockName) void
glUniformBlockBinding
(int program, int uniformBlockIndex, int uniformBlockBinding) Binding points for active uniform blocks are assigned using glUniformBlockBinding.Methods inherited from interface com.jme3.renderer.opengl.GL
glActiveTexture, glAttachShader, glBeginQuery, glBindBuffer, glBindTexture, glBlendEquationSeparate, glBlendFunc, glBlendFuncSeparate, 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, 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, resetStats
Methods inherited from interface com.jme3.renderer.opengl.GL2
glAlphaFunc, glCompressedTexImage3D, glCompressedTexSubImage3D, glDrawBuffer, glPointSize, glPolygonMode, glReadBuffer, glTexImage3D, glTexSubImage3D
-
Field Details
-
GL_DEPTH_STENCIL_ATTACHMENT
static final int GL_DEPTH_STENCIL_ATTACHMENT- See Also:
-
GL_GEOMETRY_SHADER
static final int GL_GEOMETRY_SHADER- See Also:
-
GL_NUM_EXTENSIONS
static final int GL_NUM_EXTENSIONS- See Also:
-
GL_R8
static final int GL_R8- See Also:
-
GL_R16F
static final int GL_R16F- See Also:
-
GL_R32F
static final int GL_R32F- See Also:
-
GL_RG16F
static final int GL_RG16F- See Also:
-
GL_RG32F
static final int GL_RG32F- See Also:
-
GL_RG
static final int GL_RG- See Also:
-
GL_RG8
static final int GL_RG8- See Also:
-
GL_TEXTURE_SWIZZLE_A
static final int GL_TEXTURE_SWIZZLE_A- See Also:
-
GL_TEXTURE_SWIZZLE_B
static final int GL_TEXTURE_SWIZZLE_B- See Also:
-
GL_TEXTURE_SWIZZLE_G
static final int GL_TEXTURE_SWIZZLE_G- See Also:
-
GL_TEXTURE_SWIZZLE_R
static final int GL_TEXTURE_SWIZZLE_R- See Also:
-
GL_COMPRESSED_RED_RGTC1
static final int GL_COMPRESSED_RED_RGTC1- See Also:
-
GL_COMPRESSED_SIGNED_RED_RGTC1
static final int GL_COMPRESSED_SIGNED_RED_RGTC1- See Also:
-
GL_COMPRESSED_RG_RGTC2
static final int GL_COMPRESSED_RG_RGTC2- See Also:
-
GL_COMPRESSED_SIGNED_RG_RGTC2
static final int GL_COMPRESSED_SIGNED_RG_RGTC2- See Also:
-
GL_R8I
static final int GL_R8I- See Also:
-
GL_R8UI
static final int GL_R8UI- See Also:
-
GL_R16I
static final int GL_R16I- See Also:
-
GL_R16UI
static final int GL_R16UI- See Also:
-
GL_R32I
static final int GL_R32I- See Also:
-
GL_R32UI
static final int GL_R32UI- See Also:
-
GL_RG8I
static final int GL_RG8I- See Also:
-
GL_RG8UI
static final int GL_RG8UI- See Also:
-
GL_RG16I
static final int GL_RG16I- See Also:
-
GL_RG16UI
static final int GL_RG16UI- See Also:
-
GL_RG32I
static final int GL_RG32I- See Also:
-
GL_RG32UI
static final int GL_RG32UI- See Also:
-
GL_RGBA32UI
static final int GL_RGBA32UI- See Also:
-
GL_RGB32UI
static final int GL_RGB32UI- See Also:
-
GL_RGBA16UI
static final int GL_RGBA16UI- See Also:
-
GL_RGB16UI
static final int GL_RGB16UI- See Also:
-
GL_RGBA8UI
static final int GL_RGBA8UI- See Also:
-
GL_RGB8UI
static final int GL_RGB8UI- See Also:
-
GL_RGBA32I
static final int GL_RGBA32I- See Also:
-
GL_RGB32I
static final int GL_RGB32I- See Also:
-
GL_RGBA16I
static final int GL_RGBA16I- See Also:
-
GL_RGB16I
static final int GL_RGB16I- See Also:
-
GL_RGBA8I
static final int GL_RGBA8I- See Also:
-
GL_RGB8I
static final int GL_RGB8I- See Also:
-
GL_RED_INTEGER
static final int GL_RED_INTEGER- See Also:
-
GL_RG_INTEGER
static final int GL_RG_INTEGER- See Also:
-
GL_RGB_INTEGER
static final int GL_RGB_INTEGER- See Also:
-
GL_RGBA_INTEGER
static final int GL_RGBA_INTEGER- See Also:
-
GL_UNIFORM_OFFSET
static final int GL_UNIFORM_OFFSET- See Also:
-
GL_UNIFORM_BUFFER
static final int GL_UNIFORM_BUFFERAccepted by thetarget
parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, and GetBufferPointerv.- See Also:
-
GL_UNIFORM_BLOCK_BINDING
static final int GL_UNIFORM_BLOCK_BINDINGAccepted by thepname
parameter of GetActiveUniformBlockiv.- See Also:
-
GL_UNIFORM_BLOCK_DATA_SIZE
static final int GL_UNIFORM_BLOCK_DATA_SIZE- See Also:
-
GL_UNIFORM_BLOCK_NAME_LENGTH
static final int GL_UNIFORM_BLOCK_NAME_LENGTH- See Also:
-
GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS
static final int GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS- See Also:
-
GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES
static final int GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES- See Also:
-
GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER
static final int GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER- See Also:
-
GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER
static final int GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER- See Also:
-
GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER
static final int GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER- See Also:
-
GL_MAX_VERTEX_UNIFORM_BLOCKS
static final int GL_MAX_VERTEX_UNIFORM_BLOCKSAccepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev:- See Also:
-
GL_MAX_GEOMETRY_UNIFORM_BLOCKS
static final int GL_MAX_GEOMETRY_UNIFORM_BLOCKS- See Also:
-
GL_MAX_FRAGMENT_UNIFORM_BLOCKS
static final int GL_MAX_FRAGMENT_UNIFORM_BLOCKS- See Also:
-
GL_MAX_COMBINED_UNIFORM_BLOCKS
static final int GL_MAX_COMBINED_UNIFORM_BLOCKS- See Also:
-
GL_MAX_UNIFORM_BUFFER_BINDINGS
static final int GL_MAX_UNIFORM_BUFFER_BINDINGS- See Also:
-
GL_MAX_UNIFORM_BLOCK_SIZE
static final int GL_MAX_UNIFORM_BLOCK_SIZE- See Also:
-
GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS
static final int GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS- See Also:
-
GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS
static final int GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS- See Also:
-
GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS
static final int GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS- See Also:
-
GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT
static final int GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT- See Also:
-
GL_TRANSFORM_FEEDBACK_BUFFER
static final int GL_TRANSFORM_FEEDBACK_BUFFERAccepted by thetarget
parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, GetBufferPointerv, BindBufferRange, BindBufferOffset and BindBufferBase.- See Also:
-
GL_FRAMEBUFFER
static final int GL_FRAMEBUFFER- See Also:
-
GL_READ_FRAMEBUFFER
static final int GL_READ_FRAMEBUFFER- See Also:
-
GL_DRAW_FRAMEBUFFER
static final int GL_DRAW_FRAMEBUFFER- See Also:
-
-
Method Details
-
glBindFragDataLocation
Binds a user-defined varying out variable to a fragment shader color number.
- Parameters:
program
- the name of the program containing varying out variable whose binding to modify.colorNumber
- the color number to bind the user-defined varying out variable to.name
- the name of the user-defined varying out variable whose binding to modify.
-
glBindVertexArray
void glBindVertexArray(int array) Binds a vertex array object
- Parameters:
array
- the name of the vertex array to bind.
-
glDeleteVertexArrays
Deletes vertex array objects.- Parameters:
arrays
- an array containing the n names of the objects to be deleted.
-
glGenVertexArrays
Generates vertex array object names.- Parameters:
arrays
- a buffer in which the generated vertex array object names are stored.
-
glGetString
Queries indexed string state.- Parameters:
name
- the indexed state to query. One of:EXTENSIONS
SHADING_LANGUAGE_VERSION
index
- the index of the particular element being queried.- Returns:
- the value of the string state
-
glGetUniformBlockIndex
Retrieves the index of a named uniform block.- Parameters:
program
- the name of a program containing the uniform block.uniformBlockName
- an array of characters to containing the name of the uniform block whose index to retrieve.- Returns:
- the block index.
-
glBindBufferBase
void glBindBufferBase(int target, int index, int buffer) Binds a buffer object to an indexed buffer target.- Parameters:
target
- the target of the bind operation. One of:TRANSFORM_FEEDBACK_BUFFER
UNIFORM_BUFFER
ATOMIC_COUNTER_BUFFER
SHADER_STORAGE_BUFFER
index
- the index of the binding point within the array specified bytarget
buffer
- a buffer object to bind to the specified binding point
-
glUniformBlockBinding
void glUniformBlockBinding(int program, int uniformBlockIndex, int uniformBlockBinding) Binding points for active uniform blocks are assigned using glUniformBlockBinding. Each of a program's active uniform blocks has a corresponding uniform buffer binding point. program is the name of a program object for which the command glLinkProgram has been issued in the past.If successful, glUniformBlockBinding specifies that program will use the data store of the buffer object bound to the binding point uniformBlockBinding to extract the values of the uniforms in the uniform block identified by uniformBlockIndex.
When a program object is linked or re-linked, the uniform buffer object binding point assigned to each of its active uniform blocks is reset to zero.
- Parameters:
program
- The name of a program object containing the active uniform block whose binding to assign.uniformBlockIndex
- The index of the active uniform block within program whose binding to assign.uniformBlockBinding
- Specifies the binding point to which to bind the uniform block with index uniformBlockIndex within program.
-