public class GL11C
extends java.lang.Object
Extensions promoted to core in this release:
| Modifier and Type | Field and Description |
|---|---|
static int |
GL_ALPHA
PixelFormat
|
static int |
GL_ALWAYS
AlphaFunction
|
static int |
GL_AND
LogicOp
|
static int |
GL_AND_INVERTED
LogicOp
|
static int |
GL_AND_REVERSE
LogicOp
|
static int |
GL_BACK
DrawBufferMode
|
static int |
GL_BACK_LEFT
DrawBufferMode
|
static int |
GL_BACK_RIGHT
DrawBufferMode
|
static int |
GL_BLEND
GetTarget
|
static int |
GL_BLEND_DST
GetTarget
|
static int |
GL_BLEND_SRC
GetTarget
|
static int |
GL_BLUE
PixelFormat
|
static int |
GL_BYTE
DataType
|
static int |
GL_CCW
FrontFaceDirection
|
static int |
GL_CLEAR
LogicOp
|
static int |
GL_COLOR
PixelCopyType
|
static int |
GL_COLOR_BUFFER_BIT
AttribMask
|
static int |
GL_COLOR_CLEAR_VALUE
GetTarget
|
static int |
GL_COLOR_LOGIC_OP
GetTarget
|
static int |
GL_COLOR_WRITEMASK
GetTarget
|
static int |
GL_COPY
LogicOp
|
static int |
GL_COPY_INVERTED
LogicOp
|
static int |
GL_CULL_FACE
GetTarget
|
static int |
GL_CULL_FACE_MODE
GetTarget
|
static int |
GL_CW
FrontFaceDirection
|
static int |
GL_DECR
StencilOp
|
static int |
GL_DEPTH
PixelCopyType
|
static int |
GL_DEPTH_BUFFER_BIT
AttribMask
|
static int |
GL_DEPTH_CLEAR_VALUE
GetTarget
|
static int |
GL_DEPTH_COMPONENT
PixelFormat
|
static int |
GL_DEPTH_FUNC
GetTarget
|
static int |
GL_DEPTH_RANGE
GetTarget
|
static int |
GL_DEPTH_TEST
GetTarget
|
static int |
GL_DEPTH_WRITEMASK
GetTarget
|
static int |
GL_DITHER
GetTarget
|
static int |
GL_DONT_CARE
HintMode
|
static int |
GL_DOUBLE
DataType
|
static int |
GL_DOUBLEBUFFER
GetTarget
|
static int |
GL_DRAW_BUFFER
GetTarget
|
static int |
GL_DST_ALPHA
BlendingFactorDest
|
static int |
GL_DST_COLOR
BlendingFactorSrc
|
static int |
GL_EQUAL
AlphaFunction
|
static int |
GL_EQUIV
LogicOp
|
static int |
GL_EXTENSIONS
StringName
|
static int |
GL_FALSE
Boolean
|
static int |
GL_FASTEST
HintMode
|
static int |
GL_FILL
PolygonMode
|
static int |
GL_FLOAT
DataType
|
static int |
GL_FRONT
DrawBufferMode
|
static int |
GL_FRONT_AND_BACK
DrawBufferMode
|
static int |
GL_FRONT_FACE
GetTarget
|
static int |
GL_FRONT_LEFT
DrawBufferMode
|
static int |
GL_FRONT_RIGHT
DrawBufferMode
|
static int |
GL_GEQUAL
AlphaFunction
|
static int |
GL_GREATER
AlphaFunction
|
static int |
GL_GREEN
PixelFormat
|
static int |
GL_INCR
StencilOp
|
static int |
GL_INT
DataType
|
static int |
GL_INVALID_ENUM
ErrorCode
|
static int |
GL_INVALID_OPERATION
ErrorCode
|
static int |
GL_INVALID_VALUE
ErrorCode
|
static int |
GL_INVERT
LogicOp
|
static int |
GL_KEEP
StencilOp
|
static int |
GL_LEFT
DrawBufferMode
|
static int |
GL_LEQUAL
AlphaFunction
|
static int |
GL_LESS
AlphaFunction
|
static int |
GL_LINE
PolygonMode
|
static int |
GL_LINE_LOOP
BeginMode
|
static int |
GL_LINE_SMOOTH
GetTarget
|
static int |
GL_LINE_SMOOTH_HINT
GetTarget
|
static int |
GL_LINE_STRIP
BeginMode
|
static int |
GL_LINE_WIDTH
GetTarget
|
static int |
GL_LINE_WIDTH_GRANULARITY
GetTarget
|
static int |
GL_LINE_WIDTH_RANGE
GetTarget
|
static int |
GL_LINEAR
TextureMagFilter
|
static int |
GL_LINEAR_MIPMAP_LINEAR
TextureMinFilter
|
static int |
GL_LINEAR_MIPMAP_NEAREST
TextureMinFilter
|
static int |
GL_LINES
BeginMode
|
static int |
GL_LOGIC_OP_MODE
GetTarget
|
static int |
GL_MAX_TEXTURE_SIZE
GetTarget
|
static int |
GL_MAX_VIEWPORT_DIMS
GetTarget
|
static int |
GL_NAND
LogicOp
|
static int |
GL_NEAREST
TextureMagFilter
|
static int |
GL_NEAREST_MIPMAP_LINEAR
TextureMinFilter
|
static int |
GL_NEAREST_MIPMAP_NEAREST
TextureMinFilter
|
static int |
GL_NEVER
AlphaFunction
|
static int |
GL_NICEST
HintMode
|
static int |
GL_NO_ERROR
ErrorCode
|
static int |
GL_NONE
DrawBufferMode
|
static int |
GL_NOOP
LogicOp
|
static int |
GL_NOR
LogicOp
|
static int |
GL_NOTEQUAL
AlphaFunction
|
static int |
GL_ONE
BlendingFactorDest
|
static int |
GL_ONE_MINUS_DST_ALPHA
BlendingFactorDest
|
static int |
GL_ONE_MINUS_DST_COLOR
BlendingFactorSrc
|
static int |
GL_ONE_MINUS_SRC_ALPHA
BlendingFactorDest
|
static int |
GL_ONE_MINUS_SRC_COLOR
BlendingFactorDest
|
static int |
GL_OR
LogicOp
|
static int |
GL_OR_INVERTED
LogicOp
|
static int |
GL_OR_REVERSE
LogicOp
|
static int |
GL_OUT_OF_MEMORY
ErrorCode
|
static int |
GL_PACK_ALIGNMENT
GetTarget
|
static int |
GL_PACK_LSB_FIRST
GetTarget
|
static int |
GL_PACK_ROW_LENGTH
GetTarget
|
static int |
GL_PACK_SKIP_PIXELS
GetTarget
|
static int |
GL_PACK_SKIP_ROWS
GetTarget
|
static int |
GL_PACK_SWAP_BYTES
GetTarget
|
static int |
GL_POINT
PolygonMode
|
static int |
GL_POINT_SIZE
GetTarget
|
static int |
GL_POINT_SIZE_GRANULARITY
GetTarget
|
static int |
GL_POINT_SIZE_RANGE
GetTarget
|
static int |
GL_POINTS
BeginMode
|
static int |
GL_POLYGON_MODE
GetTarget
|
static int |
GL_POLYGON_OFFSET_FACTOR
polygon_offset
|
static int |
GL_POLYGON_OFFSET_FILL
polygon_offset
|
static int |
GL_POLYGON_OFFSET_LINE
polygon_offset
|
static int |
GL_POLYGON_OFFSET_POINT
polygon_offset
|
static int |
GL_POLYGON_OFFSET_UNITS
polygon_offset
|
static int |
GL_POLYGON_SMOOTH
GetTarget
|
static int |
GL_POLYGON_SMOOTH_HINT
GetTarget
|
static int |
GL_PROXY_TEXTURE_1D
texture
|
static int |
GL_PROXY_TEXTURE_2D
texture
|
static int |
GL_QUADS
BeginMode
|
static int |
GL_R3_G3_B2
texture
|
static int |
GL_READ_BUFFER
GetTarget
|
static int |
GL_RED
PixelFormat
|
static int |
GL_RENDERER
StringName
|
static int |
GL_REPEAT
TextureWrapMode
|
static int |
GL_REPLACE
StencilOp
|
static int |
GL_RGB
PixelFormat
|
static int |
GL_RGB10
texture
|
static int |
GL_RGB10_A2
texture
|
static int |
GL_RGB12
texture
|
static int |
GL_RGB16
texture
|
static int |
GL_RGB4
texture
|
static int |
GL_RGB5
texture
|
static int |
GL_RGB5_A1
texture
|
static int |
GL_RGB8
texture
|
static int |
GL_RGBA
PixelFormat
|
static int |
GL_RGBA12
texture
|
static int |
GL_RGBA16
texture
|
static int |
GL_RGBA2
texture
|
static int |
GL_RGBA4
texture
|
static int |
GL_RGBA8
texture
|
static int |
GL_RIGHT
DrawBufferMode
|
static int |
GL_SCISSOR_BOX
GetTarget
|
static int |
GL_SCISSOR_TEST
GetTarget
|
static int |
GL_SET
LogicOp
|
static int |
GL_SHORT
DataType
|
static int |
GL_SRC_ALPHA
BlendingFactorDest
|
static int |
GL_SRC_ALPHA_SATURATE
BlendingFactorSrc
|
static int |
GL_SRC_COLOR
BlendingFactorDest
|
static int |
GL_STACK_OVERFLOW
ErrorCode
|
static int |
GL_STACK_UNDERFLOW
ErrorCode
|
static int |
GL_STENCIL
PixelCopyType
|
static int |
GL_STENCIL_BUFFER_BIT
AttribMask
|
static int |
GL_STENCIL_CLEAR_VALUE
GetTarget
|
static int |
GL_STENCIL_FAIL
GetTarget
|
static int |
GL_STENCIL_FUNC
GetTarget
|
static int |
GL_STENCIL_INDEX
PixelFormat
|
static int |
GL_STENCIL_PASS_DEPTH_FAIL
GetTarget
|
static int |
GL_STENCIL_PASS_DEPTH_PASS
GetTarget
|
static int |
GL_STENCIL_REF
GetTarget
|
static int |
GL_STENCIL_TEST
GetTarget
|
static int |
GL_STENCIL_VALUE_MASK
GetTarget
|
static int |
GL_STENCIL_WRITEMASK
GetTarget
|
static int |
GL_STEREO
GetTarget
|
static int |
GL_SUBPIXEL_BITS
GetTarget
|
static int |
GL_TEXTURE_1D
GetTarget
|
static int |
GL_TEXTURE_2D
GetTarget
|
static int |
GL_TEXTURE_ALPHA_SIZE
texture
|
static int |
GL_TEXTURE_BINDING_1D
texture_object
|
static int |
GL_TEXTURE_BINDING_2D
texture_object
|
static int |
GL_TEXTURE_BLUE_SIZE
texture
|
static int |
GL_TEXTURE_BORDER_COLOR
GetTextureParameter
|
static int |
GL_TEXTURE_GREEN_SIZE
texture
|
static int |
GL_TEXTURE_HEIGHT
GetTextureParameter
|
static int |
GL_TEXTURE_INTERNAL_FORMAT
GetTextureParameter
|
static int |
GL_TEXTURE_MAG_FILTER
TextureParameterName
|
static int |
GL_TEXTURE_MIN_FILTER
TextureParameterName
|
static int |
GL_TEXTURE_RED_SIZE
texture
|
static int |
GL_TEXTURE_WIDTH
GetTextureParameter
|
static int |
GL_TEXTURE_WRAP_S
TextureParameterName
|
static int |
GL_TEXTURE_WRAP_T
TextureParameterName
|
static int |
GL_TRIANGLE_FAN
BeginMode
|
static int |
GL_TRIANGLE_STRIP
BeginMode
|
static int |
GL_TRIANGLES
BeginMode
|
static int |
GL_TRUE
Boolean
|
static int |
GL_UNPACK_ALIGNMENT
GetTarget
|
static int |
GL_UNPACK_LSB_FIRST
GetTarget
|
static int |
GL_UNPACK_ROW_LENGTH
GetTarget
|
static int |
GL_UNPACK_SKIP_PIXELS
GetTarget
|
static int |
GL_UNPACK_SKIP_ROWS
GetTarget
|
static int |
GL_UNPACK_SWAP_BYTES
GetTarget
|
static int |
GL_UNSIGNED_BYTE
DataType
|
static int |
GL_UNSIGNED_INT
DataType
|
static int |
GL_UNSIGNED_SHORT
DataType
|
static int |
GL_VENDOR
StringName
|
static int |
GL_VERSION
StringName
|
static int |
GL_VERTEX_ARRAY
vertex_array
|
static int |
GL_VIEWPORT
GetTarget
|
static int |
GL_XOR
LogicOp
|
static int |
GL_ZERO
BlendingFactorDest
|
| Modifier and Type | Method and Description |
|---|---|
static void |
glBindTexture(int target,
int texture)
Binds the a texture to a texture target.
|
static void |
glBlendFunc(int sfactor,
int dfactor)
Specifies the weighting factors used by the blend equation, for both RGB and alpha functions and for all draw buffers.
|
static void |
glClear(int mask)
Sets portions of every pixel in a particular buffer to the same value.
|
static void |
glClearColor(float red,
float green,
float blue,
float alpha)
Sets the clear value for fixed-point and floating-point color buffers in RGBA mode.
|
static void |
glClearDepth(double depth)
Sets the depth value used when clearing the depth buffer.
|
static void |
glClearStencil(int s)
Sets the value to which to clear the stencil buffer.
|
static void |
glColorMask(boolean red,
boolean green,
boolean blue,
boolean alpha)
Masks the writing of R, G, B and A values to all draw buffers.
|
static void |
glCopyTexImage1D(int target,
int level,
int internalFormat,
int x,
int y,
int width,
int border)
Defines a one-dimensional texel array in exactly the manner of
TexImage1D, except that the image data are taken from the framebuffer rather
than from client memory. |
static void |
glCopyTexImage2D(int target,
int level,
int internalFormat,
int x,
int y,
int width,
int height,
int border)
Defines a two-dimensional texel array in exactly the manner of
TexImage2D, except that the image data are taken from the framebuffer rather
than from client memory. |
static void |
glCopyTexSubImage1D(int target,
int level,
int xoffset,
int x,
int y,
int width)
Respecifies a rectangular subregion of an existing texel array.
|
static void |
glCopyTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int x,
int y,
int width,
int height)
Respecifies a rectangular subregion of an existing texel array.
|
static void |
glCullFace(int mode)
Specifies which polygon faces are culled if
CULL_FACE is enabled. |
static void |
glDeleteTextures(int texture)
Deletes texture objects.
|
static void |
glDeleteTextures(int[] textures)
Array version of:
DeleteTextures |
static void |
glDeleteTextures(java.nio.IntBuffer textures)
Deletes texture objects.
|
static void |
glDepthFunc(int func)
Specifies the comparison that takes place during the depth buffer test (when
DEPTH_TEST is enabled). |
static void |
glDepthMask(boolean flag)
Masks the writing of depth values to the depth buffer.
|
static void |
glDepthRange(double zNear,
double zFar)
Sets the depth range for all viewports to the same values.
|
static void |
glDisable(int target)
Disables the specified OpenGL state.
|
static void |
glDrawArrays(int mode,
int first,
int count)
Constructs a sequence of geometric primitives by successively transferring elements for
count vertices. |
static void |
glDrawBuffer(int buf)
Defines the color buffer to which fragment color zero is written.
|
static void |
glDrawElements(int mode,
java.nio.ByteBuffer indices)
Constructs a sequence of geometric primitives by successively transferring elements for
count vertices to the GL. |
static void |
glDrawElements(int mode,
java.nio.IntBuffer indices)
Constructs a sequence of geometric primitives by successively transferring elements for
count vertices to the GL. |
static void |
glDrawElements(int mode,
int type,
java.nio.ByteBuffer indices)
Constructs a sequence of geometric primitives by successively transferring elements for
count vertices to the GL. |
static void |
glDrawElements(int mode,
int count,
int type,
long indices)
Constructs a sequence of geometric primitives by successively transferring elements for
count vertices to the GL. |
static void |
glDrawElements(int mode,
java.nio.ShortBuffer indices)
Constructs a sequence of geometric primitives by successively transferring elements for
count vertices to the GL. |
static void |
glEnable(int target)
Enables the specified OpenGL state.
|
static void |
glFinish()
Forces all previously issued GL commands to complete.
|
static void |
glFlush()
Causes all previously issued GL commands to complete in finite time (although such commands may still be executing when
Flush returns). |
static void |
glFrontFace(int dir)
The first step of polygon rasterization is to determine if the polygon is back-facing or front-facing.
|
static int |
glGenTextures()
Returns n previously unused texture names in textures.
|
static void |
glGenTextures(int[] textures)
Array version of:
GenTextures |
static void |
glGenTextures(java.nio.IntBuffer textures)
Returns n previously unused texture names in textures.
|
static boolean |
glGetBoolean(int pname)
Returns the current boolean value of the specified state variable.
|
static void |
glGetBooleanv(int pname,
java.nio.ByteBuffer params)
Returns the current boolean value of the specified state variable.
|
static double |
glGetDouble(int pname)
Returns the current double value of the specified state variable.
|
static void |
glGetDoublev(int pname,
double[] params)
Array version of:
GetDoublev |
static void |
glGetDoublev(int pname,
java.nio.DoubleBuffer params)
Returns the current double value of the specified state variable.
|
static int |
glGetError()
Returns error information.
|
static float |
glGetFloat(int pname)
Returns the current float value of the specified state variable.
|
static void |
glGetFloatv(int pname,
float[] params)
Array version of:
GetFloatv |
static void |
glGetFloatv(int pname,
java.nio.FloatBuffer params)
Returns the current float value of the specified state variable.
|
static int |
glGetInteger(int pname)
Returns the current integer value of the specified state variable.
|
static void |
glGetIntegerv(int pname,
int[] params)
Array version of:
GetIntegerv |
static void |
glGetIntegerv(int pname,
java.nio.IntBuffer params)
Returns the current integer value of the specified state variable.
|
static long |
glGetPointer(int pname)
Returns a pointer in the current GL context.
|
static void |
glGetPointerv(int pname,
org.lwjgl.PointerBuffer params)
Returns a pointer in the current GL context.
|
static java.lang.String |
glGetString(int name)
Return strings describing properties of the current GL context.
|
static void |
glGetTexImage(int tex,
int level,
int format,
int type,
java.nio.ByteBuffer pixels)
Obtains texture images.
|
static void |
glGetTexImage(int tex,
int level,
int format,
int type,
double[] pixels)
Array version of:
GetTexImage |
static void |
glGetTexImage(int tex,
int level,
int format,
int type,
java.nio.DoubleBuffer pixels)
Obtains texture images.
|
static void |
glGetTexImage(int tex,
int level,
int format,
int type,
float[] pixels)
Array version of:
GetTexImage |
static void |
glGetTexImage(int tex,
int level,
int format,
int type,
java.nio.FloatBuffer pixels)
Obtains texture images.
|
static void |
glGetTexImage(int tex,
int level,
int format,
int type,
int[] pixels)
Array version of:
GetTexImage |
static void |
glGetTexImage(int tex,
int level,
int format,
int type,
java.nio.IntBuffer pixels)
Obtains texture images.
|
static void |
glGetTexImage(int tex,
int level,
int format,
int type,
long pixels)
Obtains texture images.
|
static void |
glGetTexImage(int tex,
int level,
int format,
int type,
short[] pixels)
Array version of:
GetTexImage |
static void |
glGetTexImage(int tex,
int level,
int format,
int type,
java.nio.ShortBuffer pixels)
Obtains texture images.
|
static float |
glGetTexLevelParameterf(int target,
int level,
int pname)
Float version of
GetTexLevelParameteriv. |
static void |
glGetTexLevelParameterfv(int target,
int level,
int pname,
float[] params)
Array version of:
GetTexLevelParameterfv |
static void |
glGetTexLevelParameterfv(int target,
int level,
int pname,
java.nio.FloatBuffer params)
Float version of
GetTexLevelParameteriv. |
static int |
glGetTexLevelParameteri(int target,
int level,
int pname)
Places integer information about texture image parameter
pname for level-of-detail level of the specified target into params. |
static void |
glGetTexLevelParameteriv(int target,
int level,
int pname,
int[] params)
Array version of:
GetTexLevelParameteriv |
static void |
glGetTexLevelParameteriv(int target,
int level,
int pname,
java.nio.IntBuffer params)
Places integer information about texture image parameter
pname for level-of-detail level of the specified target into params. |
static float |
glGetTexParameterf(int target,
int pname)
Float version of
GetTexParameteriv. |
static void |
glGetTexParameterfv(int target,
int pname,
float[] params)
Array version of:
GetTexParameterfv |
static void |
glGetTexParameterfv(int target,
int pname,
java.nio.FloatBuffer params)
Float version of
GetTexParameteriv. |
static int |
glGetTexParameteri(int target,
int pname)
Place integer information about texture parameter
pname for the specified target into params. |
static void |
glGetTexParameteriv(int target,
int pname,
int[] params)
Array version of:
GetTexParameteriv |
static void |
glGetTexParameteriv(int target,
int pname,
java.nio.IntBuffer params)
Place integer information about texture parameter
pname for the specified target into params. |
static void |
glHint(int target,
int hint)
Certain aspects of GL behavior, when there is room for variation, may be controlled with this function.
|
static boolean |
glIsEnabled(int cap)
Determines if
cap is currently enabled (as with Enable) or disabled. |
static boolean |
glIsTexture(int texture)
Returns true if
texture is the name of a texture object. |
static void |
glLineWidth(float width)
Sets the width of rasterized line segments.
|
static void |
glLogicOp(int op)
Sets the logical framebuffer operation.
|
static void |
glPixelStoref(int pname,
float param)
Float version of
PixelStorei. |
static void |
glPixelStorei(int pname,
int param)
Sets the integer value of a pixel store parameter.
|
static void |
glPointSize(float size)
Controls the rasterization of points if no vertex, tessellation control, tessellation evaluation, or geometry shader is active.
|
static void |
glPolygonMode(int face,
int mode)
Controls the interpretation of polygons for rasterization.
|
static void |
glPolygonOffset(float factor,
float units)
The 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.
|
static void |
glReadBuffer(int src)
Defines the color buffer from which values are obtained.
|
static void |
glReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
java.nio.ByteBuffer pixels)
ReadPixels obtains values from the selected read buffer from each pixel with lower left hand corner at
(x + i, y + j) for 0 <= i < width
and 0 <= j < height; this pixel is said to be the ith pixel in the jth row. |
static void |
glReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
float[] pixels)
Array version of:
ReadPixels |
static void |
glReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
java.nio.FloatBuffer pixels)
ReadPixels obtains values from the selected read buffer from each pixel with lower left hand corner at
(x + i, y + j) for 0 <= i < width
and 0 <= j < height; this pixel is said to be the ith pixel in the jth row. |
static void |
glReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
int[] pixels)
Array version of:
ReadPixels |
static void |
glReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
java.nio.IntBuffer pixels)
ReadPixels obtains values from the selected read buffer from each pixel with lower left hand corner at
(x + i, y + j) for 0 <= i < width
and 0 <= j < height; this pixel is said to be the ith pixel in the jth row. |
static void |
glReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
long pixels)
ReadPixels obtains values from the selected read buffer from each pixel with lower left hand corner at
(x + i, y + j) for 0 <= i < width
and 0 <= j < height; this pixel is said to be the ith pixel in the jth row. |
static void |
glReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
short[] pixels)
Array version of:
ReadPixels |
static void |
glReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
java.nio.ShortBuffer pixels)
ReadPixels obtains values from the selected read buffer from each pixel with lower left hand corner at
(x + i, y + j) for 0 <= i < width
and 0 <= j < height; this pixel is said to be the ith pixel in the jth row. |
static void |
glScissor(int x,
int y,
int width,
int height)
Defines the scissor rectangle for all viewports.
|
static void |
glStencilFunc(int func,
int ref,
int mask)
Controls the stencil test.
|
static void |
glStencilMask(int mask)
Masks the writing of particular bits into the stencil plans.
|
static void |
glStencilOp(int sfail,
int dpfail,
int dppass)
Indicates what happens to the stored stencil value if this or certain subsequent tests fail or pass.
|
static void |
glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
java.nio.ByteBuffer pixels)
One-dimensional version of
TexImage2D}. |
static void |
glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
double[] pixels)
Array version of:
TexImage1D |
static void |
glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
java.nio.DoubleBuffer pixels)
One-dimensional version of
TexImage2D}. |
static void |
glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
float[] pixels)
Array version of:
TexImage1D |
static void |
glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
java.nio.FloatBuffer pixels)
One-dimensional version of
TexImage2D}. |
static void |
glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
int[] pixels)
Array version of:
TexImage1D |
static void |
glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
java.nio.IntBuffer pixels)
One-dimensional version of
TexImage2D}. |
static void |
glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
long pixels)
One-dimensional version of
TexImage2D}. |
static void |
glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
short[] pixels)
Array version of:
TexImage1D |
static void |
glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
java.nio.ShortBuffer pixels)
One-dimensional version of
TexImage2D}. |
static void |
glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
java.nio.ByteBuffer pixels)
Specifies a two-dimensional texture image.
|
static void |
glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
double[] pixels)
Array version of:
TexImage2D |
static void |
glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
java.nio.DoubleBuffer pixels)
Specifies a two-dimensional texture image.
|
static void |
glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
float[] pixels)
Array version of:
TexImage2D |
static void |
glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
java.nio.FloatBuffer pixels)
Specifies a two-dimensional texture image.
|
static void |
glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
int[] pixels)
Array version of:
TexImage2D |
static void |
glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
java.nio.IntBuffer pixels)
Specifies a two-dimensional texture image.
|
static void |
glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
long pixels)
Specifies a two-dimensional texture image.
|
static void |
glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
short[] pixels)
Array version of:
TexImage2D |
static void |
glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
java.nio.ShortBuffer pixels)
Specifies a two-dimensional texture image.
|
static void |
glTexParameterf(int target,
int pname,
float param)
Float version of
TexParameteri. |
static void |
glTexParameterfv(int target,
int pname,
float[] params)
Array version of:
TexParameterfv |
static void |
glTexParameterfv(int target,
int pname,
java.nio.FloatBuffer params)
Pointer version of
TexParameterf. |
static void |
glTexParameteri(int target,
int pname,
int param)
Sets 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.
|
static void |
glTexParameteriv(int target,
int pname,
int[] params)
Array version of:
TexParameteriv |
static void |
glTexParameteriv(int target,
int pname,
java.nio.IntBuffer params)
Pointer version of
TexParameteri. |
static void |
glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
java.nio.ByteBuffer pixels)
One-dimensional version of
TexSubImage2D. |
static void |
glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
double[] pixels)
Array version of:
TexSubImage1D |
static void |
glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
java.nio.DoubleBuffer pixels)
One-dimensional version of
TexSubImage2D. |
static void |
glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
float[] pixels)
Array version of:
TexSubImage1D |
static void |
glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
java.nio.FloatBuffer pixels)
One-dimensional version of
TexSubImage2D. |
static void |
glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
int[] pixels)
Array version of:
TexSubImage1D |
static void |
glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
java.nio.IntBuffer pixels)
One-dimensional version of
TexSubImage2D. |
static void |
glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
long pixels)
One-dimensional version of
TexSubImage2D. |
static void |
glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
short[] pixels)
Array version of:
TexSubImage1D |
static void |
glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
java.nio.ShortBuffer pixels)
One-dimensional version of
TexSubImage2D. |
static void |
glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
java.nio.ByteBuffer pixels)
Respecifies a rectangular subregion of an existing texel array.
|
static void |
glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
double[] pixels)
Array version of:
TexSubImage2D |
static void |
glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
java.nio.DoubleBuffer pixels)
Respecifies a rectangular subregion of an existing texel array.
|
static void |
glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
float[] pixels)
Array version of:
TexSubImage2D |
static void |
glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
java.nio.FloatBuffer pixels)
Respecifies a rectangular subregion of an existing texel array.
|
static void |
glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
int[] pixels)
Array version of:
TexSubImage2D |
static void |
glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
java.nio.IntBuffer pixels)
Respecifies a rectangular subregion of an existing texel array.
|
static void |
glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
long pixels)
Respecifies a rectangular subregion of an existing texel array.
|
static void |
glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
short[] pixels)
Array version of:
TexSubImage2D |
static void |
glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
java.nio.ShortBuffer pixels)
Respecifies a rectangular subregion of an existing texel array.
|
static void |
glViewport(int x,
int y,
int w,
int h)
Specifies the viewport transformation parameters for all viewports.
|
static void |
nglDeleteTextures(int n,
long textures)
Unsafe version of:
DeleteTextures |
static void |
nglDrawElements(int mode,
int count,
int type,
long indices)
Unsafe version of:
DrawElements |
static void |
nglGenTextures(int n,
long textures)
Unsafe version of:
GenTextures |
static void |
nglGetBooleanv(int pname,
long params)
Unsafe version of:
GetBooleanv |
static void |
nglGetDoublev(int pname,
long params)
Unsafe version of:
GetDoublev |
static void |
nglGetFloatv(int pname,
long params)
Unsafe version of:
GetFloatv |
static void |
nglGetIntegerv(int pname,
long params)
Unsafe version of:
GetIntegerv |
static void |
nglGetPointerv(int pname,
long params)
Unsafe version of:
GetPointerv |
static long |
nglGetString(int name)
Unsafe version of:
GetString |
static void |
nglGetTexImage(int tex,
int level,
int format,
int type,
long pixels)
Unsafe version of:
GetTexImage |
static void |
nglGetTexLevelParameterfv(int target,
int level,
int pname,
long params)
Unsafe version of:
GetTexLevelParameterfv |
static void |
nglGetTexLevelParameteriv(int target,
int level,
int pname,
long params)
Unsafe version of:
GetTexLevelParameteriv |
static void |
nglGetTexParameterfv(int target,
int pname,
long params)
Unsafe version of:
GetTexParameterfv |
static void |
nglGetTexParameteriv(int target,
int pname,
long params)
Unsafe version of:
GetTexParameteriv |
static void |
nglReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
long pixels)
Unsafe version of:
ReadPixels |
static void |
nglTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
long pixels)
Unsafe version of:
TexImage1D |
static void |
nglTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
long pixels)
Unsafe version of:
TexImage2D |
static void |
nglTexParameterfv(int target,
int pname,
long params)
Unsafe version of:
TexParameterfv |
static void |
nglTexParameteriv(int target,
int pname,
long params)
Unsafe version of:
TexParameteriv |
static void |
nglTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
long pixels)
Unsafe version of:
TexSubImage1D |
static void |
nglTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
long pixels)
Unsafe version of:
TexSubImage2D |
public static final int GL_NEVER
public static final int GL_LESS
public static final int GL_EQUAL
public static final int GL_LEQUAL
public static final int GL_GREATER
public static final int GL_NOTEQUAL
public static final int GL_GEQUAL
public static final int GL_ALWAYS
public static final int GL_DEPTH_BUFFER_BIT
public static final int GL_STENCIL_BUFFER_BIT
public static final int GL_COLOR_BUFFER_BIT
public static final int GL_POINTS
public static final int GL_LINES
public static final int GL_LINE_LOOP
public static final int GL_LINE_STRIP
public static final int GL_TRIANGLES
public static final int GL_TRIANGLE_STRIP
public static final int GL_TRIANGLE_FAN
public static final int GL_QUADS
public static final int GL_ZERO
public static final int GL_ONE
public static final int GL_SRC_COLOR
public static final int GL_ONE_MINUS_SRC_COLOR
public static final int GL_SRC_ALPHA
public static final int GL_ONE_MINUS_SRC_ALPHA
public static final int GL_DST_ALPHA
public static final int GL_ONE_MINUS_DST_ALPHA
public static final int GL_DST_COLOR
public static final int GL_ONE_MINUS_DST_COLOR
public static final int GL_SRC_ALPHA_SATURATE
public static final int GL_TRUE
public static final int GL_FALSE
public static final int GL_BYTE
public static final int GL_UNSIGNED_BYTE
public static final int GL_SHORT
public static final int GL_UNSIGNED_SHORT
public static final int GL_INT
public static final int GL_UNSIGNED_INT
public static final int GL_FLOAT
public static final int GL_DOUBLE
public static final int GL_NONE
public static final int GL_FRONT_LEFT
public static final int GL_FRONT_RIGHT
public static final int GL_BACK_LEFT
public static final int GL_BACK_RIGHT
public static final int GL_FRONT
public static final int GL_BACK
public static final int GL_LEFT
public static final int GL_RIGHT
public static final int GL_FRONT_AND_BACK
public static final int GL_NO_ERROR
public static final int GL_INVALID_ENUM
public static final int GL_INVALID_VALUE
public static final int GL_INVALID_OPERATION
public static final int GL_STACK_OVERFLOW
public static final int GL_STACK_UNDERFLOW
public static final int GL_OUT_OF_MEMORY
public static final int GL_CW
public static final int GL_CCW
public static final int GL_POINT_SIZE
public static final int GL_POINT_SIZE_RANGE
public static final int GL_POINT_SIZE_GRANULARITY
public static final int GL_LINE_SMOOTH
public static final int GL_LINE_WIDTH
public static final int GL_LINE_WIDTH_RANGE
public static final int GL_LINE_WIDTH_GRANULARITY
public static final int GL_POLYGON_MODE
public static final int GL_POLYGON_SMOOTH
public static final int GL_CULL_FACE
public static final int GL_CULL_FACE_MODE
public static final int GL_FRONT_FACE
public static final int GL_DEPTH_RANGE
public static final int GL_DEPTH_TEST
public static final int GL_DEPTH_WRITEMASK
public static final int GL_DEPTH_CLEAR_VALUE
public static final int GL_DEPTH_FUNC
public static final int GL_STENCIL_TEST
public static final int GL_STENCIL_CLEAR_VALUE
public static final int GL_STENCIL_FUNC
public static final int GL_STENCIL_VALUE_MASK
public static final int GL_STENCIL_FAIL
public static final int GL_STENCIL_PASS_DEPTH_FAIL
public static final int GL_STENCIL_PASS_DEPTH_PASS
public static final int GL_STENCIL_REF
public static final int GL_STENCIL_WRITEMASK
public static final int GL_VIEWPORT
public static final int GL_DITHER
public static final int GL_BLEND_DST
public static final int GL_BLEND_SRC
public static final int GL_BLEND
public static final int GL_LOGIC_OP_MODE
public static final int GL_COLOR_LOGIC_OP
public static final int GL_DRAW_BUFFER
public static final int GL_READ_BUFFER
public static final int GL_SCISSOR_BOX
public static final int GL_SCISSOR_TEST
public static final int GL_COLOR_CLEAR_VALUE
public static final int GL_COLOR_WRITEMASK
public static final int GL_DOUBLEBUFFER
public static final int GL_STEREO
public static final int GL_LINE_SMOOTH_HINT
public static final int GL_POLYGON_SMOOTH_HINT
public static final int GL_UNPACK_SWAP_BYTES
public static final int GL_UNPACK_LSB_FIRST
public static final int GL_UNPACK_ROW_LENGTH
public static final int GL_UNPACK_SKIP_ROWS
public static final int GL_UNPACK_SKIP_PIXELS
public static final int GL_UNPACK_ALIGNMENT
public static final int GL_PACK_SWAP_BYTES
public static final int GL_PACK_LSB_FIRST
public static final int GL_PACK_ROW_LENGTH
public static final int GL_PACK_SKIP_ROWS
public static final int GL_PACK_SKIP_PIXELS
public static final int GL_PACK_ALIGNMENT
public static final int GL_MAX_TEXTURE_SIZE
public static final int GL_MAX_VIEWPORT_DIMS
public static final int GL_SUBPIXEL_BITS
public static final int GL_TEXTURE_1D
public static final int GL_TEXTURE_2D
public static final int GL_TEXTURE_WIDTH
public static final int GL_TEXTURE_HEIGHT
public static final int GL_TEXTURE_INTERNAL_FORMAT
public static final int GL_TEXTURE_BORDER_COLOR
public static final int GL_DONT_CARE
public static final int GL_FASTEST
public static final int GL_NICEST
public static final int GL_CLEAR
public static final int GL_AND
public static final int GL_AND_REVERSE
public static final int GL_COPY
public static final int GL_AND_INVERTED
public static final int GL_NOOP
public static final int GL_XOR
public static final int GL_OR
public static final int GL_NOR
public static final int GL_EQUIV
public static final int GL_INVERT
public static final int GL_OR_REVERSE
public static final int GL_COPY_INVERTED
public static final int GL_OR_INVERTED
public static final int GL_NAND
public static final int GL_SET
public static final int GL_COLOR
public static final int GL_DEPTH
public static final int GL_STENCIL
public static final int GL_STENCIL_INDEX
public static final int GL_DEPTH_COMPONENT
public static final int GL_RED
public static final int GL_GREEN
public static final int GL_BLUE
public static final int GL_ALPHA
public static final int GL_RGB
public static final int GL_RGBA
public static final int GL_POINT
public static final int GL_LINE
public static final int GL_FILL
public static final int GL_KEEP
public static final int GL_REPLACE
public static final int GL_INCR
public static final int GL_DECR
public static final int GL_VENDOR
public static final int GL_RENDERER
public static final int GL_VERSION
public static final int GL_EXTENSIONS
public static final int GL_NEAREST
public static final int GL_LINEAR
public static final int GL_NEAREST_MIPMAP_NEAREST
public static final int GL_LINEAR_MIPMAP_NEAREST
public static final int GL_NEAREST_MIPMAP_LINEAR
public static final int GL_LINEAR_MIPMAP_LINEAR
public static final int GL_TEXTURE_MAG_FILTER
public static final int GL_TEXTURE_MIN_FILTER
public static final int GL_TEXTURE_WRAP_S
public static final int GL_TEXTURE_WRAP_T
public static final int GL_REPEAT
public static final int GL_POLYGON_OFFSET_FACTOR
public static final int GL_POLYGON_OFFSET_UNITS
public static final int GL_POLYGON_OFFSET_POINT
public static final int GL_POLYGON_OFFSET_LINE
public static final int GL_POLYGON_OFFSET_FILL
public static final int GL_R3_G3_B2
public static final int GL_RGB4
public static final int GL_RGB5
public static final int GL_RGB8
public static final int GL_RGB10
public static final int GL_RGB12
public static final int GL_RGB16
public static final int GL_RGBA2
public static final int GL_RGBA4
public static final int GL_RGB5_A1
public static final int GL_RGBA8
public static final int GL_RGB10_A2
public static final int GL_RGBA12
public static final int GL_RGBA16
public static final int GL_TEXTURE_RED_SIZE
public static final int GL_TEXTURE_GREEN_SIZE
public static final int GL_TEXTURE_BLUE_SIZE
public static final int GL_TEXTURE_ALPHA_SIZE
public static final int GL_PROXY_TEXTURE_1D
public static final int GL_PROXY_TEXTURE_2D
public static final int GL_TEXTURE_BINDING_1D
public static final int GL_TEXTURE_BINDING_2D
public static final int GL_VERTEX_ARRAY
public static void glEnable(int target)
target - the OpenGL state to enablepublic static void glDisable(int target)
target - the OpenGL state to disablepublic static void glBindTexture(int target,
int texture)
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.
target - the texture target. One of:TEXTURE_1D | TEXTURE_2D | TEXTURE_1D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP |
TEXTURE_3D | TEXTURE_2D_ARRAY | TEXTURE_CUBE_MAP_ARRAY | TEXTURE_BUFFER | TEXTURE_2D_MULTISAMPLE |
TEXTURE_2D_MULTISAMPLE_ARRAY |
texture - the texture object to bindpublic static void glBlendFunc(int sfactor,
int dfactor)
sfactor - the source weighting factor. One of:dfactor - the destination weighting factorpublic static void glClear(int mask)
mask - Zero or the bitwise OR of one or more values indicating which buffers are to be cleared. One or more of:COLOR_BUFFER_BIT | DEPTH_BUFFER_BIT | STENCIL_BUFFER_BIT |
public static void glClearColor(float red,
float green,
float blue,
float alpha)
red - the value to which to clear the R channel of the color buffergreen - the value to which to clear the G channel of the color bufferblue - the value to which to clear the B channel of the color bufferalpha - the value to which to clear the A channel of the color bufferpublic static void glClearDepth(double depth)
depth is clamped to the range [0,1] and
converted to fixed-point. No conversion is applied when clearing a floating-point depth buffer.depth - the value to which to clear the depth bufferpublic static void glClearStencil(int s)
s is masked to the number of bitplanes in the stencil buffer.s - the value to which to clear the stencil bufferpublic static void glColorMask(boolean red,
boolean green,
boolean blue,
boolean alpha)
red - whether R values are written or notgreen - whether G values are written or notblue - whether B values are written or notalpha - whether A values are written or notpublic static void glCullFace(int mode)
CULL_FACE is enabled. Front-facing polygons are rasterized if either culling is disabled or the
CullFace mode is BACK while back-facing polygons are rasterized only if either culling is disabled or the CullFace mode is
FRONT. The initial setting of the CullFace mode is BACK. Initially, culling is disabled.mode - the CullFace mode. One of:FRONT | BACK | FRONT_AND_BACK |
public static void glDepthFunc(int func)
DEPTH_TEST is enabled).public static void glDepthMask(boolean flag)
flag - whether depth values are written or not.public static void glDepthRange(double zNear,
double zFar)
zNear - the near depth rangezFar - the far depth rangepublic static void glDrawArrays(int mode,
int first,
int count)
count vertices. Elements first through
first + count – 1 of 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.
mode - the kind of primitives being constructedfirst - the first vertex to transfer to the GLcount - the number of vertices after first to transfer to the GLpublic static void glDrawBuffer(int buf)
Acceptable values for buf depend on whether the GL is using the default framebuffer (i.e., DRAW_FRAMEBUFFER_BINDING is zero), or
a framebuffer object (i.e., DRAW_FRAMEBUFFER_BINDING is non-zero). In the initial state, the GL is bound to the default framebuffer.
buf - the color buffer to draw to. One of:NONE | FRONT_LEFT | FRONT_RIGHT | BACK_LEFT | BACK_RIGHT | FRONT | BACK | LEFT |
RIGHT | FRONT_AND_BACK | COLOR_ATTACHMENT0 | GL30.GL_COLOR_ATTACHMENT[1-15] |
public static void nglDrawElements(int mode,
int count,
int type,
long indices)
DrawElementscount - the number of vertices to transfer to the GLtype - indicates the type of index values in indices. One of:UNSIGNED_BYTE | UNSIGNED_SHORT | UNSIGNED_INT |
public static void glDrawElements(int mode,
int count,
int type,
long indices)
count vertices to the GL.
The ith element transferred by DrawElements will be taken from element indices[i] (if no element array buffer is bound), or
from the element whose index is stored in the currently bound element array buffer at offset indices + i.mode - the kind of primitives being constructed. One of:POINTS | LINE_STRIP | LINE_LOOP | LINES | TRIANGLE_STRIP | TRIANGLE_FAN |
TRIANGLES | LINES_ADJACENCY | LINE_STRIP_ADJACENCY | TRIANGLES_ADJACENCY | TRIANGLE_STRIP_ADJACENCY | PATCHES |
count - the number of vertices to transfer to the GLtype - indicates the type of index values in indices. One of:UNSIGNED_BYTE | UNSIGNED_SHORT | UNSIGNED_INT |
indices - the index valuespublic static void glDrawElements(int mode,
int type,
java.nio.ByteBuffer indices)
count vertices to the GL.
The ith element transferred by DrawElements will be taken from element indices[i] (if no element array buffer is bound), or
from the element whose index is stored in the currently bound element array buffer at offset indices + i.mode - the kind of primitives being constructed. One of:POINTS | LINE_STRIP | LINE_LOOP | LINES | TRIANGLE_STRIP | TRIANGLE_FAN |
TRIANGLES | LINES_ADJACENCY | LINE_STRIP_ADJACENCY | TRIANGLES_ADJACENCY | TRIANGLE_STRIP_ADJACENCY | PATCHES |
type - indicates the type of index values in indices. One of:UNSIGNED_BYTE | UNSIGNED_SHORT | UNSIGNED_INT |
indices - the index valuespublic static void glDrawElements(int mode,
java.nio.ByteBuffer indices)
count vertices to the GL.
The ith element transferred by DrawElements will be taken from element indices[i] (if no element array buffer is bound), or
from the element whose index is stored in the currently bound element array buffer at offset indices + i.mode - the kind of primitives being constructed. One of:POINTS | LINE_STRIP | LINE_LOOP | LINES | TRIANGLE_STRIP | TRIANGLE_FAN |
TRIANGLES | LINES_ADJACENCY | LINE_STRIP_ADJACENCY | TRIANGLES_ADJACENCY | TRIANGLE_STRIP_ADJACENCY | PATCHES |
indices - the index valuespublic static void glDrawElements(int mode,
java.nio.ShortBuffer indices)
count vertices to the GL.
The ith element transferred by DrawElements will be taken from element indices[i] (if no element array buffer is bound), or
from the element whose index is stored in the currently bound element array buffer at offset indices + i.mode - the kind of primitives being constructed. One of:POINTS | LINE_STRIP | LINE_LOOP | LINES | TRIANGLE_STRIP | TRIANGLE_FAN |
TRIANGLES | LINES_ADJACENCY | LINE_STRIP_ADJACENCY | TRIANGLES_ADJACENCY | TRIANGLE_STRIP_ADJACENCY | PATCHES |
indices - the index valuespublic static void glDrawElements(int mode,
java.nio.IntBuffer indices)
count vertices to the GL.
The ith element transferred by DrawElements will be taken from element indices[i] (if no element array buffer is bound), or
from the element whose index is stored in the currently bound element array buffer at offset indices + i.mode - the kind of primitives being constructed. One of:POINTS | LINE_STRIP | LINE_LOOP | LINES | TRIANGLE_STRIP | TRIANGLE_FAN |
TRIANGLES | LINES_ADJACENCY | LINE_STRIP_ADJACENCY | TRIANGLES_ADJACENCY | TRIANGLE_STRIP_ADJACENCY | PATCHES |
indices - the index valuespublic static void glFinish()
Finish does not return until all effects from such commands on GL client and server
state and the framebuffer are fully realized.public static void glFlush()
Flush returns).public static void glFrontFace(int dir)
CCW.dir - the front face direction. One of:CCW | CW |
public static void nglGenTextures(int n,
long textures)
GenTexturesn - the number of textures to createpublic static void glGenTextures(java.nio.IntBuffer textures)
textures - a scalar or buffer in which to place the returned texture namespublic static int glGenTextures()
public static void nglDeleteTextures(int n,
long textures)
DeleteTexturesn - the number of texture names in the textures parameterpublic static void glDeleteTextures(java.nio.IntBuffer textures)
BindTexture is deleted, it is as though BindTexture had 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 GenTextures are marked as unused again. Unused names in textures are
silently ignored, as is the name zero.
textures - contains n names of texture objects to be deletedpublic static void glDeleteTextures(int texture)
BindTexture is deleted, it is as though BindTexture had 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 GenTextures are marked as unused again. Unused names in textures are
silently ignored, as is the name zero.
public static void nglGetBooleanv(int pname,
long params)
GetBooleanvpublic static void glGetBooleanv(int pname,
java.nio.ByteBuffer params)
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 params has 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.
pname - the state variableparams - a scalar or buffer in which to place the returned datapublic static boolean glGetBoolean(int pname)
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 params has 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.
pname - the state variablepublic static void nglGetFloatv(int pname,
long params)
GetFloatvpublic static void glGetFloatv(int pname,
java.nio.FloatBuffer params)
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 params has 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.
pname - the state variableparams - a scalar or buffer in which to place the returned datapublic static float glGetFloat(int pname)
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 params has 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.
pname - the state variablepublic static void nglGetIntegerv(int pname,
long params)
GetIntegervpublic static void glGetIntegerv(int pname,
java.nio.IntBuffer params)
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 params has 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.
pname - the state variableparams - a scalar or buffer in which to place the returned datapublic static int glGetInteger(int pname)
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 params has 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.
pname - the state variablepublic static void nglGetDoublev(int pname,
long params)
GetDoublevpublic static void glGetDoublev(int pname,
java.nio.DoubleBuffer params)
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 params has 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.
pname - the state variableparams - a scalar or buffer in which to place the returned datapublic static double glGetDouble(int pname)
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 params has 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.
pname - the state variablepublic static int glGetError()
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. When GetError is called, the code is returned and the flag is cleared, so that a further error will again record
its code. If a call to GetError returns NO_ERROR, then there has been no detectable error since the last call to GetError (or since
the GL was initialized).
public static void nglGetPointerv(int pname,
long params)
GetPointervpublic static void glGetPointerv(int pname,
org.lwjgl.PointerBuffer params)
pname - the pointer to return. One of:DEBUG_CALLBACK_FUNCTION | DEBUG_CALLBACK_USER_PARAM |
params - a buffer in which to place the returned pointerpublic static long glGetPointer(int pname)
pname - the pointer to return. One of:DEBUG_CALLBACK_FUNCTION | DEBUG_CALLBACK_USER_PARAM |
public static long nglGetString(int name)
GetString@Nullable public static java.lang.String glGetString(int name)
name - the property to query. One of:RENDERER | VENDOR | EXTENSIONS | VERSION | SHADING_LANGUAGE_VERSION |
public static void nglGetTexImage(int tex,
int level,
int format,
int type,
long pixels)
GetTexImagepublic static void glGetTexImage(int tex,
int level,
int format,
int type,
java.nio.ByteBuffer pixels)
tex - the texture (or texture face) to be obtained. One of:level - the level-of-detail numberformat - the pixel format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel type. One of:pixels - the buffer in which to place the returned datapublic static void glGetTexImage(int tex,
int level,
int format,
int type,
long pixels)
tex - the texture (or texture face) to be obtained. One of:level - the level-of-detail numberformat - the pixel format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel type. One of:pixels - the buffer in which to place the returned datapublic static void glGetTexImage(int tex,
int level,
int format,
int type,
java.nio.ShortBuffer pixels)
tex - the texture (or texture face) to be obtained. One of:level - the level-of-detail numberformat - the pixel format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel type. One of:pixels - the buffer in which to place the returned datapublic static void glGetTexImage(int tex,
int level,
int format,
int type,
java.nio.IntBuffer pixels)
tex - the texture (or texture face) to be obtained. One of:level - the level-of-detail numberformat - the pixel format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel type. One of:pixels - the buffer in which to place the returned datapublic static void glGetTexImage(int tex,
int level,
int format,
int type,
java.nio.FloatBuffer pixels)
tex - the texture (or texture face) to be obtained. One of:level - the level-of-detail numberformat - the pixel format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel type. One of:pixels - the buffer in which to place the returned datapublic static void glGetTexImage(int tex,
int level,
int format,
int type,
java.nio.DoubleBuffer pixels)
tex - the texture (or texture face) to be obtained. One of:level - the level-of-detail numberformat - the pixel format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel type. One of:pixels - the buffer in which to place the returned datapublic static void nglGetTexLevelParameteriv(int target,
int level,
int pname,
long params)
GetTexLevelParameterivpublic static void glGetTexLevelParameteriv(int target,
int level,
int pname,
java.nio.IntBuffer params)
pname for level-of-detail level of the specified target into params.target - the texture image target. One of:level - the level-of-detail numberpname - the parameter to query. One of:params - a scalar or buffer in which to place the returned datapublic static int glGetTexLevelParameteri(int target,
int level,
int pname)
pname for level-of-detail level of the specified target into params.target - the texture image target. One of:level - the level-of-detail numberpname - the parameter to query. One of:public static void nglGetTexLevelParameterfv(int target,
int level,
int pname,
long params)
GetTexLevelParameterfvpublic static void glGetTexLevelParameterfv(int target,
int level,
int pname,
java.nio.FloatBuffer params)
GetTexLevelParameteriv.target - the texture image targetlevel - the level-of-detail numberpname - the parameter to queryparams - a scalar or buffer in which to place the returned datapublic static float glGetTexLevelParameterf(int target,
int level,
int pname)
GetTexLevelParameteriv.target - the texture image targetlevel - the level-of-detail numberpname - the parameter to querypublic static void nglGetTexParameteriv(int target,
int pname,
long params)
GetTexParameterivpublic static void glGetTexParameteriv(int target,
int pname,
java.nio.IntBuffer params)
pname for the specified target into params.target - the texture target. One of:TEXTURE_1D | TEXTURE_2D | TEXTURE_3D | TEXTURE_1D_ARRAY |
TEXTURE_2D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP | TEXTURE_CUBE_MAP_ARRAY |
TEXTURE_2D_MULTISAMPLE | TEXTURE_2D_MULTISAMPLE_ARRAY |
pname - the parameter to query. One of:params - a scalar or buffer in which to place the returned datapublic static int glGetTexParameteri(int target,
int pname)
pname for the specified target into params.target - the texture target. One of:TEXTURE_1D | TEXTURE_2D | TEXTURE_3D | TEXTURE_1D_ARRAY |
TEXTURE_2D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP | TEXTURE_CUBE_MAP_ARRAY |
TEXTURE_2D_MULTISAMPLE | TEXTURE_2D_MULTISAMPLE_ARRAY |
pname - the parameter to query. One of:public static void nglGetTexParameterfv(int target,
int pname,
long params)
GetTexParameterfvpublic static void glGetTexParameterfv(int target,
int pname,
java.nio.FloatBuffer params)
GetTexParameteriv.target - the texture targetpname - the parameter to queryparams - a scalar or buffer in which to place the returned datapublic static float glGetTexParameterf(int target,
int pname)
GetTexParameteriv.target - the texture targetpname - the parameter to querypublic static void glHint(int target,
int hint)
DONT_CARE.target - the behavior to control. One of:LINE_SMOOTH_HINT | POLYGON_SMOOTH_HINT | TEXTURE_COMPRESSION_HINT |
FRAGMENT_SHADER_DERIVATIVE_HINT |
hint - the behavior hint. One of:FASTEST | NICEST | DONT_CARE |
public static boolean glIsEnabled(int cap)
cap is currently enabled (as with Enable) or disabled.cap - the enable state to querypublic static boolean glIsTexture(int texture)
texture is the name of a texture object.texture - the texture name to querypublic static void glLineWidth(float width)
width - the line widthpublic static void glLogicOp(int op)
op - the operation to set. One of:CLEAR | AND | AND_REVERSE | COPY | AND_INVERTED | NOOP | XOR | OR | NOR | EQUIV | INVERT | OR_REVERSE | COPY_INVERTED |
OR_INVERTED | NAND | SET |
public static void glPixelStorei(int pname,
int param)
pname - the pixel store parameter to set. One of:param - the parameter valuepublic static void glPixelStoref(int pname,
float param)
PixelStorei.pname - the pixel store parameter to setparam - the parameter valuepublic static void glPointSize(float size)
size - the request size of a pointpublic static void glPolygonMode(int face,
int mode)
FILL is 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 the
FILL state of PolygonMode. For POINT or LINE, point antialiasing or line segment antialiasing, respectively, apply.
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 |
public static void glPolygonOffset(float factor,
float units)
factor scales the maximum depth slope of the polygon, and units scales 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.
factor - the maximum depth slope factorunits - the constant scalepublic static void glReadBuffer(int src)
Acceptable values for src depend on whether the GL is using the default framebuffer (i.e., DRAW_FRAMEBUFFER_BINDING is zero), or
a framebuffer object (i.e., DRAW_FRAMEBUFFER_BINDING is non-zero). In the initial state, the GL is bound to the default framebuffer.
src - the color buffer to read from. One of:NONE | FRONT_LEFT | FRONT_RIGHT | BACK_LEFT | BACK_RIGHT | FRONT | BACK | LEFT |
RIGHT | FRONT_AND_BACK | COLOR_ATTACHMENT0 | GL30.GL_COLOR_ATTACHMENT[1-15] |
public static void nglReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
long pixels)
ReadPixelspublic static void glReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
java.nio.ByteBuffer pixels)
(x + i, y + j) for 0 <= i < width
and 0 <= 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. When READ_FRAMEBUFFER_BINDING is zero, values are also undefined for individual pixels that are not owned by
the current context. Otherwise, ReadPixels obtains values from the selected buffer, regardless of how those values were placed there.x - the left pixel coordinatey - the lower pixel coordinatewidth - the number of pixels to read in the x-dimensionheight - the number of pixels to read in the y-dimensionformat - the pixel format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel type. One of:pixels - a buffer in which to place the returned pixel datapublic static void glReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
long pixels)
(x + i, y + j) for 0 <= i < width
and 0 <= 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. When READ_FRAMEBUFFER_BINDING is zero, values are also undefined for individual pixels that are not owned by
the current context. Otherwise, ReadPixels obtains values from the selected buffer, regardless of how those values were placed there.x - the left pixel coordinatey - the lower pixel coordinatewidth - the number of pixels to read in the x-dimensionheight - the number of pixels to read in the y-dimensionformat - the pixel format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel type. One of:pixels - a buffer in which to place the returned pixel datapublic static void glReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
java.nio.ShortBuffer pixels)
(x + i, y + j) for 0 <= i < width
and 0 <= 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. When READ_FRAMEBUFFER_BINDING is zero, values are also undefined for individual pixels that are not owned by
the current context. Otherwise, ReadPixels obtains values from the selected buffer, regardless of how those values were placed there.x - the left pixel coordinatey - the lower pixel coordinatewidth - the number of pixels to read in the x-dimensionheight - the number of pixels to read in the y-dimensionformat - the pixel format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel type. One of:pixels - a buffer in which to place the returned pixel datapublic static void glReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
java.nio.IntBuffer pixels)
(x + i, y + j) for 0 <= i < width
and 0 <= 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. When READ_FRAMEBUFFER_BINDING is zero, values are also undefined for individual pixels that are not owned by
the current context. Otherwise, ReadPixels obtains values from the selected buffer, regardless of how those values were placed there.x - the left pixel coordinatey - the lower pixel coordinatewidth - the number of pixels to read in the x-dimensionheight - the number of pixels to read in the y-dimensionformat - the pixel format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel type. One of:pixels - a buffer in which to place the returned pixel datapublic static void glReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
java.nio.FloatBuffer pixels)
(x + i, y + j) for 0 <= i < width
and 0 <= 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. When READ_FRAMEBUFFER_BINDING is zero, values are also undefined for individual pixels that are not owned by
the current context. Otherwise, ReadPixels obtains values from the selected buffer, regardless of how those values were placed there.x - the left pixel coordinatey - the lower pixel coordinatewidth - the number of pixels to read in the x-dimensionheight - the number of pixels to read in the y-dimensionformat - the pixel format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel type. One of:pixels - a buffer in which to place the returned pixel datapublic static void glScissor(int x,
int y,
int width,
int height)
Enable or Disable
with the symbolic constant SCISSOR_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.x - the left scissor rectangle coordinatey - the bottom scissor rectangle coordinatewidth - the scissor rectangle widthheight - the scissor rectangle heightpublic static void glStencilFunc(int func,
int ref,
int mask)
ref is an integer reference value that is used in the unsigned stencil comparison. Stencil comparison operations and queries of ref
clamp its value to the range [0, 2s – 1], where s is the number of bits in the stencil buffer attached to the draw framebuffer. The s
least significant bits of mask are bitwise ANDed with both the reference and the stored stencil value, and the resulting masked values are those that
participate in the comparison controlled by func.
public static void glStencilMask(int mask)
The least significant s bits of mask, where s is the number of bits in the stencil buffer, specify an integer mask. Where a 1 appears in this
mask, the corresponding bit in the stencil buffer is written; where a 0 appears, the bit is not written.
mask - the stencil maskpublic static void glStencilOp(int sfail,
int dpfail,
int dppass)
The supported actions are KEEP, ZERO, REPLACE, INCR, DECR, INVERT,
INCR_WRAP and DECR_WRAP. These correspond to keeping the current value, setting to zero, replacing with the reference value,
incrementing with saturation, decrementing with saturation, bitwise inverting it, incrementing without saturation, and decrementing without saturation.
For purposes of increment and decrement, the stencil bits are considered as an unsigned integer. Incrementing or decrementing with saturation clamps the stencil value at 0 and the maximum representable value. Incrementing or decrementing without saturation will wrap such that incrementing the maximum representable value results in 0, and decrementing 0 results in the maximum representable value.
sfail - the action to take if the stencil test failsdpfail - the action to take if the depth buffer test failsdppass - the action to take if the depth buffer test passespublic static void nglTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
long pixels)
TexImage1Dpublic static void glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
@Nullable
java.nio.ByteBuffer pixels)
TexImage2D}.target - the texture target. One of:TEXTURE_1D | PROXY_TEXTURE_1D |
level - the level-of-detail numberinternalformat - the texture internal formatwidth - the texture widthborder - the texture border widthformat - the texel data formattype - the texel data typepixels - the texel datapublic static void glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
@Nullable
long pixels)
TexImage2D}.target - the texture target. One of:TEXTURE_1D | PROXY_TEXTURE_1D |
level - the level-of-detail numberinternalformat - the texture internal formatwidth - the texture widthborder - the texture border widthformat - the texel data formattype - the texel data typepixels - the texel datapublic static void glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
@Nullable
java.nio.ShortBuffer pixels)
TexImage2D}.target - the texture target. One of:TEXTURE_1D | PROXY_TEXTURE_1D |
level - the level-of-detail numberinternalformat - the texture internal formatwidth - the texture widthborder - the texture border widthformat - the texel data formattype - the texel data typepixels - the texel datapublic static void glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
@Nullable
java.nio.IntBuffer pixels)
TexImage2D}.target - the texture target. One of:TEXTURE_1D | PROXY_TEXTURE_1D |
level - the level-of-detail numberinternalformat - the texture internal formatwidth - the texture widthborder - the texture border widthformat - the texel data formattype - the texel data typepixels - the texel datapublic static void glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
@Nullable
java.nio.FloatBuffer pixels)
TexImage2D}.target - the texture target. One of:TEXTURE_1D | PROXY_TEXTURE_1D |
level - the level-of-detail numberinternalformat - the texture internal formatwidth - the texture widthborder - the texture border widthformat - the texel data formattype - the texel data typepixels - the texel datapublic static void glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
@Nullable
java.nio.DoubleBuffer pixels)
TexImage2D}.target - the texture target. One of:TEXTURE_1D | PROXY_TEXTURE_1D |
level - the level-of-detail numberinternalformat - the texture internal formatwidth - the texture widthborder - the texture border widthformat - the texel data formattype - the texel data typepixels - the texel datapublic static void nglTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
long pixels)
TexImage2Dpublic static void glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
@Nullable
java.nio.ByteBuffer pixels)
target - the texture target. One of:TEXTURE_2D | TEXTURE_1D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP |
PROXY_TEXTURE_2D | PROXY_TEXTURE_1D_ARRAY | PROXY_TEXTURE_RECTANGLE | PROXY_TEXTURE_CUBE_MAP |
level - the level-of-detail numberinternalformat - the texture internal format. One of:width - the texture widthheight - the texture heightborder - the texture border widthformat - the texel data format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the texel data type. One of:pixels - the texel datapublic static void glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
@Nullable
long pixels)
target - the texture target. One of:TEXTURE_2D | TEXTURE_1D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP |
PROXY_TEXTURE_2D | PROXY_TEXTURE_1D_ARRAY | PROXY_TEXTURE_RECTANGLE | PROXY_TEXTURE_CUBE_MAP |
level - the level-of-detail numberinternalformat - the texture internal format. One of:width - the texture widthheight - the texture heightborder - the texture border widthformat - the texel data format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the texel data type. One of:pixels - the texel datapublic static void glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
@Nullable
java.nio.ShortBuffer pixels)
target - the texture target. One of:TEXTURE_2D | TEXTURE_1D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP |
PROXY_TEXTURE_2D | PROXY_TEXTURE_1D_ARRAY | PROXY_TEXTURE_RECTANGLE | PROXY_TEXTURE_CUBE_MAP |
level - the level-of-detail numberinternalformat - the texture internal format. One of:width - the texture widthheight - the texture heightborder - the texture border widthformat - the texel data format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the texel data type. One of:pixels - the texel datapublic static void glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
@Nullable
java.nio.IntBuffer pixels)
target - the texture target. One of:TEXTURE_2D | TEXTURE_1D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP |
PROXY_TEXTURE_2D | PROXY_TEXTURE_1D_ARRAY | PROXY_TEXTURE_RECTANGLE | PROXY_TEXTURE_CUBE_MAP |
level - the level-of-detail numberinternalformat - the texture internal format. One of:width - the texture widthheight - the texture heightborder - the texture border widthformat - the texel data format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the texel data type. One of:pixels - the texel datapublic static void glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
@Nullable
java.nio.FloatBuffer pixels)
target - the texture target. One of:TEXTURE_2D | TEXTURE_1D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP |
PROXY_TEXTURE_2D | PROXY_TEXTURE_1D_ARRAY | PROXY_TEXTURE_RECTANGLE | PROXY_TEXTURE_CUBE_MAP |
level - the level-of-detail numberinternalformat - the texture internal format. One of:width - the texture widthheight - the texture heightborder - the texture border widthformat - the texel data format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the texel data type. One of:pixels - the texel datapublic static void glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
@Nullable
java.nio.DoubleBuffer pixels)
target - the texture target. One of:TEXTURE_2D | TEXTURE_1D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP |
PROXY_TEXTURE_2D | PROXY_TEXTURE_1D_ARRAY | PROXY_TEXTURE_RECTANGLE | PROXY_TEXTURE_CUBE_MAP |
level - the level-of-detail numberinternalformat - the texture internal format. One of:width - the texture widthheight - the texture heightborder - the texture border widthformat - the texel data format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the texel data type. One of:pixels - the texel datapublic static void glCopyTexImage1D(int target,
int level,
int internalFormat,
int x,
int y,
int width,
int border)
TexImage1D, except that the image data are taken from the framebuffer rather
than from client memory. For the purposes of decoding the texture image, CopyTexImage1D is equivalent to calling CopyTexImage2D
with corresponding arguments and height of 1, except that the height of the image is always 1, regardless of the value of border. level, internalformat,
and border are specified using the same values, with the same meanings, as the corresponding arguments of TexImage1D. The constraints on
width and border are exactly those of the corresponding arguments of TexImage1D.target - the texture target. Must be:TEXTURE_1D |
level - the level-of-detail numberinternalFormat - the texture internal format. See TexImage2D for a list of supported formats.x - the left framebuffer pixel coordinatey - the lower framebuffer pixel coordinatewidth - the texture widthborder - the texture border widthpublic static void glCopyTexImage2D(int target,
int level,
int internalFormat,
int x,
int y,
int width,
int height,
int border)
TexImage2D, except that the image data are taken from the framebuffer rather
than from client memory.
x, y, width, and height correspond precisely to the corresponding arguments to ReadPixels; they specify the
image's width and height, and the lower left (x, y) coordinates of the framebuffer region to be copied.
The image is taken from the framebuffer exactly as if these arguments were passed to CopyPixels with argument type set to COLOR,
DEPTH, or DEPTH_STENCIL, depending on internalformat. RGBA data is taken from the current color buffer, while depth
component and stencil index data are taken from the depth and stencil buffers, respectively.
Subsequent processing is identical to that described for TexImage2D, beginning with clamping of the R, G, B, A, or depth values, and masking
of the stencil index values from the resulting pixel groups. Parameters level, internalformat, and border are specified using
the same values, with the same meanings, as the corresponding arguments of TexImage2D.
The constraints on width, height, and border are exactly those for the corresponding arguments of TexImage2D.
target - the texture target. One of:TEXTURE_2D | TEXTURE_1D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP |
level - the level-of-detail numberinternalFormat - the texture internal format. See TexImage2D for a list of supported formats.x - the left framebuffer pixel coordinatey - the lower framebuffer pixel coordinatewidth - the texture widthheight - the texture heightborder - the texture border widthpublic static void glCopyTexSubImage1D(int target,
int level,
int xoffset,
int x,
int y,
int width)
internalformat, width or border
parameters of the specified texel array, nor is any change made to texel values outside the specified subregion. See CopyTexImage1D for more
details.target - the texture target. Must be:TEXTURE_1D |
level - the level-of-detail numberxoffset - the left texel coordinate of the texture subregion to updatex - the left framebuffer pixel coordinatey - the lower framebuffer pixel coordinatewidth - the texture subregion widthpublic static void glCopyTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int x,
int y,
int width,
int height)
internalformat, width, height,
or border parameters of the specified texel array, nor is any change made to texel values outside the specified subregion. See
CopyTexImage2D for more details.target - the texture target. One of:TEXTURE_2D | TEXTURE_1D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP |
level - the level-of-detail numberxoffset - the left texel coordinate of the texture subregion to updateyoffset - the lower texel coordinate of the texture subregion to updatex - the left framebuffer pixel coordinatey - the lower framebuffer pixel coordinatewidth - the texture subregion widthheight - the texture subregion heightpublic static void glTexParameteri(int target,
int pname,
int param)
target - the texture target. One of:TEXTURE_1D | TEXTURE_2D | TEXTURE_3D | TEXTURE_1D_ARRAY |
TEXTURE_2D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP | TEXTURE_CUBE_MAP_ARRAY |
TEXTURE_2D_MULTISAMPLE | TEXTURE_2D_MULTISAMPLE_ARRAY |
pname - the parameter to set. One of:param - the parameter valuepublic static void nglTexParameteriv(int target,
int pname,
long params)
TexParameterivpublic static void glTexParameteriv(int target,
int pname,
java.nio.IntBuffer params)
TexParameteri.target - the texture targetpname - the parameter to setparams - the parameter valuepublic static void glTexParameterf(int target,
int pname,
float param)
TexParameteri.target - the texture targetpname - the parameter to setparam - the parameter valuepublic static void nglTexParameterfv(int target,
int pname,
long params)
TexParameterfvpublic static void glTexParameterfv(int target,
int pname,
java.nio.FloatBuffer params)
TexParameterf.target - the texture targetpname - the parameter to setparams - the parameter valuepublic static void nglTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
long pixels)
TexSubImage1Dpublic static void glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
java.nio.ByteBuffer pixels)
TexSubImage2D.target - the texture target. Must be:TEXTURE_1D |
level - the level-of-detail-numberxoffset - the left coordinate of the texel subregionwidth - the subregion widthformat - the pixel data format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel data type. One of:pixels - the pixel datapublic static void glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
long pixels)
TexSubImage2D.target - the texture target. Must be:TEXTURE_1D |
level - the level-of-detail-numberxoffset - the left coordinate of the texel subregionwidth - the subregion widthformat - the pixel data format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel data type. One of:pixels - the pixel datapublic static void glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
java.nio.ShortBuffer pixels)
TexSubImage2D.target - the texture target. Must be:TEXTURE_1D |
level - the level-of-detail-numberxoffset - the left coordinate of the texel subregionwidth - the subregion widthformat - the pixel data format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel data type. One of:pixels - the pixel datapublic static void glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
java.nio.IntBuffer pixels)
TexSubImage2D.target - the texture target. Must be:TEXTURE_1D |
level - the level-of-detail-numberxoffset - the left coordinate of the texel subregionwidth - the subregion widthformat - the pixel data format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel data type. One of:pixels - the pixel datapublic static void glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
java.nio.FloatBuffer pixels)
TexSubImage2D.target - the texture target. Must be:TEXTURE_1D |
level - the level-of-detail-numberxoffset - the left coordinate of the texel subregionwidth - the subregion widthformat - the pixel data format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel data type. One of:pixels - the pixel datapublic static void glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
java.nio.DoubleBuffer pixels)
TexSubImage2D.target - the texture target. Must be:TEXTURE_1D |
level - the level-of-detail-numberxoffset - the left coordinate of the texel subregionwidth - the subregion widthformat - the pixel data format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel data type. One of:pixels - the pixel datapublic static void nglTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
long pixels)
TexSubImage2Dpublic static void glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
java.nio.ByteBuffer pixels)
target - the texture target. One of:TEXTURE_2D | TEXTURE_1D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP |
level - the level-of-detail-numberxoffset - the left coordinate of the texel subregionyoffset - the bottom coordinate of the texel subregionwidth - the subregion widthheight - the subregion heightformat - the pixel data format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel data type. One of:pixels - the pixel datapublic static void glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
long pixels)
target - the texture target. One of:TEXTURE_2D | TEXTURE_1D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP |
level - the level-of-detail-numberxoffset - the left coordinate of the texel subregionyoffset - the bottom coordinate of the texel subregionwidth - the subregion widthheight - the subregion heightformat - the pixel data format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel data type. One of:pixels - the pixel datapublic static void glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
java.nio.ShortBuffer pixels)
target - the texture target. One of:TEXTURE_2D | TEXTURE_1D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP |
level - the level-of-detail-numberxoffset - the left coordinate of the texel subregionyoffset - the bottom coordinate of the texel subregionwidth - the subregion widthheight - the subregion heightformat - the pixel data format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel data type. One of:pixels - the pixel datapublic static void glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
java.nio.IntBuffer pixels)
target - the texture target. One of:TEXTURE_2D | TEXTURE_1D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP |
level - the level-of-detail-numberxoffset - the left coordinate of the texel subregionyoffset - the bottom coordinate of the texel subregionwidth - the subregion widthheight - the subregion heightformat - the pixel data format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel data type. One of:pixels - the pixel datapublic static void glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
java.nio.FloatBuffer pixels)
target - the texture target. One of:TEXTURE_2D | TEXTURE_1D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP |
level - the level-of-detail-numberxoffset - the left coordinate of the texel subregionyoffset - the bottom coordinate of the texel subregionwidth - the subregion widthheight - the subregion heightformat - the pixel data format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel data type. One of:pixels - the pixel datapublic static void glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
java.nio.DoubleBuffer pixels)
target - the texture target. One of:TEXTURE_2D | TEXTURE_1D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP |
level - the level-of-detail-numberxoffset - the left coordinate of the texel subregionyoffset - the bottom coordinate of the texel subregionwidth - the subregion widthheight - the subregion heightformat - the pixel data format. One of:RED | GREEN | BLUE | ALPHA | RG | RGB | RGBA | BGR |
BGRA | RED_INTEGER | GREEN_INTEGER | BLUE_INTEGER | ALPHA_INTEGER | RG_INTEGER | RGB_INTEGER | RGBA_INTEGER |
BGR_INTEGER | BGRA_INTEGER | STENCIL_INDEX | DEPTH_COMPONENT | DEPTH_STENCIL |
type - the pixel data type. One of:pixels - the pixel datapublic static void glViewport(int x,
int y,
int w,
int h)
The location of the viewport's bottom-left corner, given by (x, y), are clamped to be within the implementation-dependent viewport bounds range.
The viewport bounds range [min, max] tuple may be determined by calling GetFloatv with the symbolic
constant VIEWPORT_BOUNDS_RANGE. Viewport width and height are clamped to implementation-dependent maximums when specified. The maximum
width and height may be found by calling GetFloatv with the symbolic constant MAX_VIEWPORT_DIMS. The
maximum viewport dimensions must be greater than or equal to the larger of the visible dimensions of the display being rendered to (if a display
exists), and the largest renderbuffer image which can be successfully created and attached to a framebuffer object.
In the initial state, w and h for 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, then w and h are
initially set to zero.
x - the left viewport coordinatey - the bottom viewport coordinatew - the viewport widthh - the viewport heightpublic static void glGenTextures(int[] textures)
GenTexturespublic static void glDeleteTextures(int[] textures)
DeleteTexturespublic static void glGetFloatv(int pname,
float[] params)
GetFloatvpublic static void glGetIntegerv(int pname,
int[] params)
GetIntegervpublic static void glGetDoublev(int pname,
double[] params)
GetDoublevpublic static void glGetTexImage(int tex,
int level,
int format,
int type,
short[] pixels)
GetTexImagepublic static void glGetTexImage(int tex,
int level,
int format,
int type,
int[] pixels)
GetTexImagepublic static void glGetTexImage(int tex,
int level,
int format,
int type,
float[] pixels)
GetTexImagepublic static void glGetTexImage(int tex,
int level,
int format,
int type,
double[] pixels)
GetTexImagepublic static void glGetTexLevelParameteriv(int target,
int level,
int pname,
int[] params)
GetTexLevelParameterivpublic static void glGetTexLevelParameterfv(int target,
int level,
int pname,
float[] params)
GetTexLevelParameterfvpublic static void glGetTexParameteriv(int target,
int pname,
int[] params)
GetTexParameterivpublic static void glGetTexParameterfv(int target,
int pname,
float[] params)
GetTexParameterfvpublic static void glReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
short[] pixels)
ReadPixelspublic static void glReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
int[] pixels)
ReadPixelspublic static void glReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
float[] pixels)
ReadPixelspublic static void glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
@Nullable
short[] pixels)
TexImage1Dpublic static void glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
@Nullable
int[] pixels)
TexImage1Dpublic static void glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
@Nullable
float[] pixels)
TexImage1Dpublic static void glTexImage1D(int target,
int level,
int internalformat,
int width,
int border,
int format,
int type,
@Nullable
double[] pixels)
TexImage1Dpublic static void glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
@Nullable
short[] pixels)
TexImage2Dpublic static void glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
@Nullable
int[] pixels)
TexImage2Dpublic static void glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
@Nullable
float[] pixels)
TexImage2Dpublic static void glTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
@Nullable
double[] pixels)
TexImage2Dpublic static void glTexParameteriv(int target,
int pname,
int[] params)
TexParameterivpublic static void glTexParameterfv(int target,
int pname,
float[] params)
TexParameterfvpublic static void glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
short[] pixels)
TexSubImage1Dpublic static void glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
int[] pixels)
TexSubImage1Dpublic static void glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
float[] pixels)
TexSubImage1Dpublic static void glTexSubImage1D(int target,
int level,
int xoffset,
int width,
int format,
int type,
double[] pixels)
TexSubImage1Dpublic static void glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
short[] pixels)
TexSubImage2Dpublic static void glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
int[] pixels)
TexSubImage2Dpublic static void glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
float[] pixels)
TexSubImage2Dpublic static void glTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
double[] pixels)
TexSubImage2DCopyright LWJGL. All Rights Reserved. License terms.