Class GL11C
- java.lang.Object
-
- org.lwjgl.opengl.GL11C
-
- Direct Known Subclasses:
GL12C
public class GL11C extends java.lang.Object
The OpenGL functionality of a forward compatible context, up to version 1.1.Extensions promoted to core in this release:
-
-
Field Summary
Fields Modifier and Type Field Description static int
GL_ALPHA
PixelFormatstatic int
GL_ALWAYS
AlphaFunctionstatic int
GL_AND
GL_AND_INVERTED
GL_AND_REVERSELogicOpstatic int
GL_BACK
GL_BACK_LEFT
GL_BACK_RIGHTDrawBufferModestatic int
GL_BLEND
GL_BLEND_DST
GL_BLEND_SRCGetTargetstatic int
GL_BLUE
PixelFormatstatic int
GL_BYTE
DataTypestatic int
GL_CCW
FrontFaceDirectionstatic int
GL_CLEAR
LogicOpstatic int
GL_COLOR
PixelCopyTypestatic int
GL_COLOR_BUFFER_BIT
AttribMaskstatic int
GL_COLOR_CLEAR_VALUE
GL_COLOR_LOGIC_OP
GL_COLOR_WRITEMASKGetTargetstatic int
GL_COPY
GL_COPY_INVERTEDLogicOpstatic int
GL_CULL_FACE
GL_CULL_FACE_MODEGetTargetstatic int
GL_CW
FrontFaceDirectionstatic int
GL_DECR
StencilOpstatic int
GL_DEPTH
PixelCopyTypestatic int
GL_DEPTH_BUFFER_BIT
AttribMaskstatic int
GL_DEPTH_CLEAR_VALUE
GetTargetstatic int
GL_DEPTH_COMPONENT
PixelFormatstatic int
GL_DEPTH_FUNC
GL_DEPTH_RANGE
GL_DEPTH_TEST
GL_DEPTH_WRITEMASK
GL_DITHERGetTargetstatic int
GL_DONT_CARE
HintModestatic int
GL_DOUBLE
DataTypestatic int
GL_DOUBLEBUFFER
GL_DRAW_BUFFERGetTargetstatic int
GL_DST_ALPHA
BlendingFactorDeststatic int
GL_DST_COLOR
BlendingFactorSrcstatic int
GL_EQUAL
AlphaFunctionstatic int
GL_EQUIV
LogicOpstatic int
GL_EXTENSIONS
StringNamestatic int
GL_FALSE
Booleanstatic int
GL_FASTEST
HintModestatic int
GL_FILL
PolygonModestatic int
GL_FLOAT
DataTypestatic int
GL_FRONT
GL_FRONT_AND_BACKDrawBufferModestatic int
GL_FRONT_FACE
GetTargetstatic int
GL_FRONT_LEFT
GL_FRONT_RIGHTDrawBufferModestatic int
GL_GEQUAL
GL_GREATERAlphaFunctionstatic int
GL_GREEN
PixelFormatstatic int
GL_INCR
StencilOpstatic int
GL_INT
DataTypestatic int
GL_INVALID_ENUM
GL_INVALID_OPERATION
GL_INVALID_VALUEErrorCodestatic int
GL_INVERT
LogicOpstatic int
GL_KEEP
StencilOpstatic int
GL_LEFT
DrawBufferModestatic int
GL_LEQUAL
GL_LESSAlphaFunctionstatic int
GL_LINE
PolygonModestatic int
GL_LINE_LOOP
BeginModestatic int
GL_LINE_SMOOTH
GL_LINE_SMOOTH_HINTGetTargetstatic int
GL_LINE_STRIP
BeginModestatic int
GL_LINE_WIDTH
GL_LINE_WIDTH_GRANULARITY
GL_LINE_WIDTH_RANGEGetTargetstatic int
GL_LINEAR
TextureMagFilterstatic int
GL_LINEAR_MIPMAP_LINEAR
GL_LINEAR_MIPMAP_NEARESTTextureMinFilterstatic int
GL_LINES
BeginModestatic int
GL_LOGIC_OP_MODE
GL_MAX_TEXTURE_SIZE
GL_MAX_VIEWPORT_DIMSGetTargetstatic int
GL_NAND
LogicOpstatic int
GL_NEAREST
TextureMagFilterstatic int
GL_NEAREST_MIPMAP_LINEAR
GL_NEAREST_MIPMAP_NEARESTTextureMinFilterstatic int
GL_NEVER
AlphaFunctionstatic int
GL_NICEST
HintModestatic int
GL_NO_ERROR
ErrorCodestatic int
GL_NONE
DrawBufferModestatic int
GL_NOOP
GL_NORLogicOpstatic int
GL_NOTEQUAL
AlphaFunctionstatic int
GL_ONE
GL_ONE_MINUS_DST_ALPHABlendingFactorDeststatic int
GL_ONE_MINUS_DST_COLOR
BlendingFactorSrcstatic int
GL_ONE_MINUS_SRC_ALPHA
GL_ONE_MINUS_SRC_COLORBlendingFactorDeststatic int
GL_OR
GL_OR_INVERTED
GL_OR_REVERSELogicOpstatic int
GL_OUT_OF_MEMORY
ErrorCodestatic int
GL_PACK_ALIGNMENT
GL_PACK_LSB_FIRST
GL_PACK_ROW_LENGTH
GL_PACK_SKIP_PIXELS
GL_PACK_SKIP_ROWS
GL_PACK_SWAP_BYTESGetTargetstatic int
GL_POINT
PolygonModestatic int
GL_POINT_SIZE
GL_POINT_SIZE_GRANULARITY
GL_POINT_SIZE_RANGEGetTargetstatic int
GL_POINTS
BeginModestatic int
GL_POLYGON_MODE
GetTargetstatic int
GL_POLYGON_OFFSET_FACTOR
GL_POLYGON_OFFSET_FILL
GL_POLYGON_OFFSET_LINE
GL_POLYGON_OFFSET_POINT
GL_POLYGON_OFFSET_UNITSpolygon_offsetstatic int
GL_POLYGON_SMOOTH
GL_POLYGON_SMOOTH_HINTGetTargetstatic int
GL_PROXY_TEXTURE_1D
GL_PROXY_TEXTURE_2Dtexturestatic int
GL_QUADS
BeginModestatic int
GL_R3_G3_B2
texturestatic int
GL_READ_BUFFER
GetTargetstatic int
GL_RED
PixelFormatstatic int
GL_RENDERER
StringNamestatic int
GL_REPEAT
TextureWrapModestatic int
GL_REPLACE
StencilOpstatic int
GL_RGB
PixelFormatstatic int
GL_RGB10
GL_RGB10_A2
GL_RGB12
GL_RGB16
GL_RGB4
GL_RGB5
GL_RGB5_A1
GL_RGB8texturestatic int
GL_RGBA
PixelFormatstatic int
GL_RGBA12
GL_RGBA16
GL_RGBA2
GL_RGBA4
GL_RGBA8texturestatic int
GL_RIGHT
DrawBufferModestatic int
GL_SCISSOR_BOX
GL_SCISSOR_TESTGetTargetstatic int
GL_SET
LogicOpstatic int
GL_SHORT
DataTypestatic int
GL_SRC_ALPHA
BlendingFactorDeststatic int
GL_SRC_ALPHA_SATURATE
BlendingFactorSrcstatic int
GL_SRC_COLOR
BlendingFactorDeststatic int
GL_STACK_OVERFLOW
GL_STACK_UNDERFLOWErrorCodestatic int
GL_STENCIL
PixelCopyTypestatic int
GL_STENCIL_BUFFER_BIT
AttribMaskstatic int
GL_STENCIL_CLEAR_VALUE
GL_STENCIL_FAIL
GL_STENCIL_FUNCGetTargetstatic int
GL_STENCIL_INDEX
PixelFormatstatic int
GL_STENCIL_PASS_DEPTH_FAIL
GL_STENCIL_PASS_DEPTH_PASS
GL_STENCIL_REF
GL_STENCIL_TEST
GL_STENCIL_VALUE_MASK
GL_STENCIL_WRITEMASK
GL_STEREO
GL_SUBPIXEL_BITSGetTargetstatic int
GL_TEXTURE
Token accepted or provided by theidentifier
parameters of ObjectLabel and GetObjectLabel.static int
GL_TEXTURE_1D
GL_TEXTURE_2DGetTargetstatic int
GL_TEXTURE_ALPHA_SIZE
texturestatic int
GL_TEXTURE_BINDING_1D
GL_TEXTURE_BINDING_2Dtexture_objectstatic int
GL_TEXTURE_BLUE_SIZE
texturestatic int
GL_TEXTURE_BORDER_COLOR
GetTextureParameterstatic int
GL_TEXTURE_GREEN_SIZE
texturestatic int
GL_TEXTURE_HEIGHT
GL_TEXTURE_INTERNAL_FORMATGetTextureParameterstatic int
GL_TEXTURE_MAG_FILTER
GL_TEXTURE_MIN_FILTERTextureParameterNamestatic int
GL_TEXTURE_RED_SIZE
texturestatic int
GL_TEXTURE_WIDTH
GetTextureParameterstatic int
GL_TEXTURE_WRAP_S
GL_TEXTURE_WRAP_TTextureParameterNamestatic int
GL_TRIANGLE_FAN
GL_TRIANGLE_STRIP
GL_TRIANGLESBeginModestatic int
GL_TRUE
Booleanstatic int
GL_UNPACK_ALIGNMENT
GL_UNPACK_LSB_FIRST
GL_UNPACK_ROW_LENGTH
GL_UNPACK_SKIP_PIXELS
GL_UNPACK_SKIP_ROWS
GL_UNPACK_SWAP_BYTESGetTargetstatic int
GL_UNSIGNED_BYTE
GL_UNSIGNED_INT
GL_UNSIGNED_SHORTDataTypestatic int
GL_VENDOR
GL_VERSIONStringNamestatic int
GL_VERTEX_ARRAY
vertex_arraystatic int
GL_VIEWPORT
GetTargetstatic int
GL_XOR
LogicOpstatic int
GL_ZERO
BlendingFactorDest
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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 ofTexImage1D
, 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 ofTexImage2D
, 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 ifCULL_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 (whenDEPTH_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 forcount
vertices.static void
glDrawBuffer(int buf)
Defines the color buffer to which fragment color zero is written.static void
glDrawElements(int mode, int count, int type, long indices)
Constructs a sequence of geometric primitives by successively transferring elements forcount
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 forcount
vertices to the GL.static void
glDrawElements(int mode, java.nio.ByteBuffer indices)
Constructs a sequence of geometric primitives by successively transferring elements forcount
vertices to the GL.static void
glDrawElements(int mode, java.nio.IntBuffer indices)
Constructs a sequence of geometric primitives by successively transferring elements forcount
vertices to the GL.static void
glDrawElements(int mode, java.nio.ShortBuffer indices)
Constructs a sequence of geometric primitives by successively transferring elements forcount
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 whenFlush
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, double[] pixels)
Array version of:GetTexImage
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, int[] pixels)
Array version of:GetTexImage
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.ByteBuffer pixels)
Obtains texture images.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, java.nio.FloatBuffer pixels)
Obtains texture images.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, java.nio.ShortBuffer pixels)
Obtains texture images.static float
glGetTexLevelParameterf(int target, int level, int pname)
Float version ofGetTexLevelParameteriv
.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 ofGetTexLevelParameteriv
.static int
glGetTexLevelParameteri(int target, int level, int pname)
Places integer information about texture image parameterpname
for level-of-detaillevel
of the specifiedtarget
intoparams
.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 parameterpname
for level-of-detaillevel
of the specifiedtarget
intoparams
.static float
glGetTexParameterf(int target, int pname)
Float version ofGetTexParameteriv
.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 ofGetTexParameteriv
.static int
glGetTexParameteri(int target, int pname)
Place integer information about texture parameterpname
for the specifiedtarget
intoparams
.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 parameterpname
for the specifiedtarget
intoparams
.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 ifcap
is currently enabled (as withEnable
) or disabled.static boolean
glIsTexture(int texture)
Returns true iftexture
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 ofPixelStorei
.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, float[] pixels)
Array version of:ReadPixels
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, long pixels)
ReadPixels obtains values from the selected read buffer from each pixel with lower left hand corner at(x + i, y + j)
for0 <= i < width
and0 <= 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.ByteBuffer pixels)
ReadPixels obtains values from the selected read buffer from each pixel with lower left hand corner at(x + i, y + j)
for0 <= i < width
and0 <= 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, 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)
for0 <= i < width
and0 <= 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, 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)
for0 <= i < width
and0 <= 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, 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)
for0 <= i < width
and0 <= 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, double[] pixels)
Array version of:TexImage1D
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, int[] pixels)
Array version of:TexImage1D
static void
glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, long pixels)
One-dimensional version ofTexImage2D
}.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.ByteBuffer pixels)
One-dimensional version ofTexImage2D
}.static void
glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, java.nio.DoubleBuffer pixels)
One-dimensional version ofTexImage2D
}.static void
glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, java.nio.FloatBuffer pixels)
One-dimensional version ofTexImage2D
}.static void
glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, java.nio.IntBuffer pixels)
One-dimensional version ofTexImage2D
}.static void
glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, java.nio.ShortBuffer pixels)
One-dimensional version ofTexImage2D
}.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, 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, 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, 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.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, 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, 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, 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, java.nio.ShortBuffer pixels)
Specifies a two-dimensional texture image.static void
glTexParameterf(int target, int pname, float param)
Float version ofTexParameteri
.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 ofTexParameterf
.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 ofTexParameteri
.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, float[] pixels)
Array version of:TexSubImage1D
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, long pixels)
One-dimensional version ofTexSubImage2D
.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.ByteBuffer pixels)
One-dimensional version ofTexSubImage2D
.static void
glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, java.nio.DoubleBuffer pixels)
One-dimensional version ofTexSubImage2D
.static void
glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, java.nio.FloatBuffer pixels)
One-dimensional version ofTexSubImage2D
.static void
glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, java.nio.IntBuffer pixels)
One-dimensional version ofTexSubImage2D
.static void
glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, java.nio.ShortBuffer pixels)
One-dimensional version ofTexSubImage2D
.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, 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, 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, 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.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, 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, 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, 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, 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
-
-
-
Field Detail
-
GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL, GL_GEQUAL, GL_ALWAYS
AlphaFunction
-
GL_DEPTH_BUFFER_BIT, GL_STENCIL_BUFFER_BIT, GL_COLOR_BUFFER_BIT
AttribMask
-
GL_POINTS, GL_LINES, GL_LINE_LOOP, GL_LINE_STRIP, GL_TRIANGLES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_QUADS
BeginMode
-
GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA
BlendingFactorDest
-
GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA_SATURATE
BlendingFactorSrc
-
GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, GL_DOUBLE
DataType
-
GL_NONE, GL_FRONT_LEFT, GL_FRONT_RIGHT, GL_BACK_LEFT, GL_BACK_RIGHT, GL_FRONT, GL_BACK, GL_LEFT, GL_RIGHT, GL_FRONT_AND_BACK
DrawBufferMode
-
GL_NO_ERROR, GL_INVALID_ENUM, GL_INVALID_VALUE, GL_INVALID_OPERATION, GL_STACK_OVERFLOW, GL_STACK_UNDERFLOW, GL_OUT_OF_MEMORY
ErrorCode
-
GL_POINT_SIZE, GL_POINT_SIZE_RANGE, GL_POINT_SIZE_GRANULARITY, GL_LINE_SMOOTH, GL_LINE_WIDTH, GL_LINE_WIDTH_RANGE, GL_LINE_WIDTH_GRANULARITY, GL_POLYGON_MODE, GL_POLYGON_SMOOTH, GL_CULL_FACE, GL_CULL_FACE_MODE, GL_FRONT_FACE, GL_DEPTH_RANGE, GL_DEPTH_TEST, GL_DEPTH_WRITEMASK, GL_DEPTH_CLEAR_VALUE, GL_DEPTH_FUNC, GL_STENCIL_TEST, GL_STENCIL_CLEAR_VALUE, GL_STENCIL_FUNC, GL_STENCIL_VALUE_MASK, GL_STENCIL_FAIL, GL_STENCIL_PASS_DEPTH_FAIL, GL_STENCIL_PASS_DEPTH_PASS, GL_STENCIL_REF, GL_STENCIL_WRITEMASK, GL_VIEWPORT, GL_DITHER, GL_BLEND_DST, GL_BLEND_SRC, GL_BLEND, GL_LOGIC_OP_MODE, GL_COLOR_LOGIC_OP, GL_DRAW_BUFFER, GL_READ_BUFFER, GL_SCISSOR_BOX, GL_SCISSOR_TEST, GL_COLOR_CLEAR_VALUE, GL_COLOR_WRITEMASK, GL_DOUBLEBUFFER, GL_STEREO, GL_LINE_SMOOTH_HINT, GL_POLYGON_SMOOTH_HINT, GL_UNPACK_SWAP_BYTES, GL_UNPACK_LSB_FIRST, GL_UNPACK_ROW_LENGTH, GL_UNPACK_SKIP_ROWS, GL_UNPACK_SKIP_PIXELS, GL_UNPACK_ALIGNMENT, GL_PACK_SWAP_BYTES, GL_PACK_LSB_FIRST, GL_PACK_ROW_LENGTH, GL_PACK_SKIP_ROWS, GL_PACK_SKIP_PIXELS, GL_PACK_ALIGNMENT, GL_MAX_TEXTURE_SIZE, GL_MAX_VIEWPORT_DIMS, GL_SUBPIXEL_BITS, GL_TEXTURE_1D, GL_TEXTURE_2D
GetTarget
-
GL_TEXTURE_WIDTH, GL_TEXTURE_HEIGHT, GL_TEXTURE_INTERNAL_FORMAT, GL_TEXTURE_BORDER_COLOR
GetTextureParameter
-
GL_DONT_CARE, GL_FASTEST, GL_NICEST
HintMode
-
GL_CLEAR, GL_AND, GL_AND_REVERSE, GL_COPY, GL_AND_INVERTED, GL_NOOP, GL_XOR, GL_OR, GL_NOR, GL_EQUIV, GL_INVERT, GL_OR_REVERSE, GL_COPY_INVERTED, GL_OR_INVERTED, GL_NAND, GL_SET
LogicOp
-
GL_TEXTURE
Token accepted or provided by theidentifier
parameters of ObjectLabel and GetObjectLabel.
-
GL_COLOR, GL_DEPTH, GL_STENCIL
PixelCopyType
-
GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_RGBA
PixelFormat
-
GL_KEEP, GL_REPLACE, GL_INCR, GL_DECR
StencilOp
-
GL_VENDOR, GL_RENDERER, GL_VERSION, GL_EXTENSIONS
StringName
-
GL_NEAREST, GL_LINEAR
TextureMagFilter
-
GL_NEAREST_MIPMAP_NEAREST, GL_LINEAR_MIPMAP_NEAREST, GL_NEAREST_MIPMAP_LINEAR, GL_LINEAR_MIPMAP_LINEAR
TextureMinFilter
-
GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T
TextureParameterName
-
GL_REPEAT
TextureWrapMode
-
GL_POLYGON_OFFSET_FACTOR, GL_POLYGON_OFFSET_UNITS, GL_POLYGON_OFFSET_POINT, GL_POLYGON_OFFSET_LINE, GL_POLYGON_OFFSET_FILL
polygon_offset
-
GL_R3_G3_B2, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_TEXTURE_RED_SIZE, GL_TEXTURE_GREEN_SIZE, GL_TEXTURE_BLUE_SIZE, GL_TEXTURE_ALPHA_SIZE, GL_PROXY_TEXTURE_1D, GL_PROXY_TEXTURE_2D
texture
-
GL_TEXTURE_BINDING_1D, GL_TEXTURE_BINDING_2D
texture_object
-
GL_VERTEX_ARRAY
vertex_array
-
-
Method Detail
-
glEnable
public static void glEnable(int target)
Enables the specified OpenGL state.- Parameters:
target
- the OpenGL state to enable- See Also:
- Reference Page
-
glDisable
public static void glDisable(int target)
Disables the specified OpenGL state.- Parameters:
target
- the OpenGL state to disable- See Also:
- Reference Page
-
glBindTexture
public static void glBindTexture(int target, int texture)
Binds the a texture to a texture target.While a texture object is bound, GL operations on the target to which it is bound affect the bound object, and queries of the target to which it is bound return state from the bound object. If texture mapping of the dimensionality of the target to which a texture object is bound is enabled, the state of the bound texture object directs the texturing operation.
- Parameters:
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 bind- See Also:
- Reference Page
-
glBlendFunc
public 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.- Parameters:
sfactor
- the source weighting factor. One of:dfactor
- the destination weighting factor- See Also:
- Reference Page
-
glClear
public static void glClear(int mask)
Sets portions of every pixel in a particular buffer to the same value. The value to which each buffer is cleared depends on the setting of the clear value for that buffer.- Parameters:
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
- See Also:
- Reference Page
-
glClearColor
public 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. The specified components are stored as floating-point values.- Parameters:
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 buffer- See Also:
- Reference Page
-
glClearDepth
public static void glClearDepth(double depth)
Sets the depth value used when clearing the depth buffer. When clearing a fixedpoint depth buffer,depth
is clamped to the range [0,1] and converted to fixed-point. No conversion is applied when clearing a floating-point depth buffer.- Parameters:
depth
- the value to which to clear the depth buffer- See Also:
- Reference Page
-
glClearStencil
public static void glClearStencil(int s)
Sets the value to which to clear the stencil buffer.s
is masked to the number of bitplanes in the stencil buffer.- Parameters:
s
- the value to which to clear the stencil buffer- See Also:
- Reference Page
-
glColorMask
public 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. In the initial state, all color values are enabled for writing for all draw buffers.- Parameters:
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 not- See Also:
- Reference Page
-
glCullFace
public static void glCullFace(int mode)
Specifies which polygon faces are culled ifCULL_FACE
is enabled. Front-facing polygons are rasterized if either culling is disabled or the CullFace mode isBACK
while back-facing polygons are rasterized only if either culling is disabled or the CullFace mode isFRONT
. The initial setting of the CullFace mode isBACK
. Initially, culling is disabled.- Parameters:
mode
- the CullFace mode. One of:FRONT
BACK
FRONT_AND_BACK
- See Also:
- Reference Page
-
glDepthFunc
public static void glDepthFunc(int func)
Specifies the comparison that takes place during the depth buffer test (whenDEPTH_TEST
is enabled).
-
glDepthMask
public static void glDepthMask(boolean flag)
Masks the writing of depth values to the depth buffer. In the initial state, the depth buffer is enabled for writing.- Parameters:
flag
- whether depth values are written or not.- See Also:
- Reference Page
-
glDepthRange
public static void glDepthRange(double zNear, double zFar)
Sets the depth range for all viewports to the same values.- Parameters:
zNear
- the near depth rangezFar
- the far depth range- See Also:
- Reference Page
-
glDrawArrays
public static void glDrawArrays(int mode, int first, int count)
Constructs a sequence of geometric primitives by successively transferring elements forcount
vertices. Elementsfirst
throughfirst + 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.
- Parameters:
mode
- the kind of primitives being constructedfirst
- the first vertex to transfer to the GLcount
- the number of vertices afterfirst
to transfer to the GL- See Also:
- Reference Page
-
glDrawBuffer
public static void glDrawBuffer(int buf)
Defines the color buffer to which fragment color zero is written.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.- Parameters:
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] - See Also:
- Reference Page
-
nglDrawElements
public static void nglDrawElements(int mode, int count, int type, long indices)
Unsafe version of:DrawElements
- Parameters:
count
- the number of vertices to transfer to the GLtype
- indicates the type of index values inindices
. One of:UNSIGNED_BYTE
UNSIGNED_SHORT
UNSIGNED_INT
-
glDrawElements
public static void glDrawElements(int mode, int count, int type, long indices)
Constructs a sequence of geometric primitives by successively transferring elements forcount
vertices to the GL. The ith element transferred byDrawElements
will be taken from elementindices[i]
(if no element array buffer is bound), or from the element whose index is stored in the currently bound element array buffer at offsetindices + i
.- Parameters:
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 inindices
. One of:UNSIGNED_BYTE
UNSIGNED_SHORT
UNSIGNED_INT
indices
- the index values- See Also:
- Reference Page
-
glDrawElements
public static void glDrawElements(int mode, int type, java.nio.ByteBuffer indices)
Constructs a sequence of geometric primitives by successively transferring elements forcount
vertices to the GL. The ith element transferred byDrawElements
will be taken from elementindices[i]
(if no element array buffer is bound), or from the element whose index is stored in the currently bound element array buffer at offsetindices + i
.- Parameters:
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 inindices
. One of:UNSIGNED_BYTE
UNSIGNED_SHORT
UNSIGNED_INT
indices
- the index values- See Also:
- Reference Page
-
glDrawElements
public static void glDrawElements(int mode, java.nio.ByteBuffer indices) public static void glDrawElements(int mode, java.nio.ShortBuffer indices) public static void glDrawElements(int mode, java.nio.IntBuffer indices)
Constructs a sequence of geometric primitives by successively transferring elements forcount
vertices to the GL. The ith element transferred byDrawElements
will be taken from elementindices[i]
(if no element array buffer is bound), or from the element whose index is stored in the currently bound element array buffer at offsetindices + i
.- Parameters:
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 values- See Also:
- Reference Page
-
glFinish
public static void glFinish()
Forces all previously issued GL commands to complete.Finish
does not return until all effects from such commands on GL client and server state and the framebuffer are fully realized.- See Also:
- Reference Page
-
glFlush
public static void glFlush()
Causes all previously issued GL commands to complete in finite time (although such commands may still be executing whenFlush
returns).- See Also:
- Reference Page
-
glFrontFace
public static void glFrontFace(int dir)
The first step of polygon rasterization is to determine if the polygon is back-facing or front-facing. This determination is made based on the sign of the (clipped or unclipped) polygon's area computed in window coordinates. The interpretation of the sign of this value is controlled with this function. In the initial state, the front face direction is set toCCW
.- Parameters:
dir
- the front face direction. One of:CCW
CW
- See Also:
- Reference Page
-
nglGenTextures
public static void nglGenTextures(int n, long textures)
Unsafe version of:GenTextures
- Parameters:
n
- the number of textures to create
-
glGenTextures
public static void glGenTextures(java.nio.IntBuffer textures)
Returns n previously unused texture names in textures. These names are marked as used, for the purposes of GenTextures only, but they acquire texture state and a dimensionality only when they are first bound, just as if they were unused.- Parameters:
textures
- a scalar or buffer in which to place the returned texture names- See Also:
- Reference Page
-
glGenTextures
public static int glGenTextures()
Returns n previously unused texture names in textures. These names are marked as used, for the purposes of GenTextures only, but they acquire texture state and a dimensionality only when they are first bound, just as if they were unused.- See Also:
- Reference Page
-
nglDeleteTextures
public static void nglDeleteTextures(int n, long textures)
Unsafe version of:DeleteTextures
- Parameters:
n
- the number of texture names in thetextures
parameter
-
glDeleteTextures
public static void glDeleteTextures(java.nio.IntBuffer textures)
Deletes texture objects. After a texture object is deleted, it has no contents or dimensionality, and its name is again unused. If a texture that is currently bound to any of the target bindings ofBindTexture
is deleted, it is as thoughBindTexture
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.- Parameters:
textures
- containsn
names of texture objects to be deleted- See Also:
- Reference Page
-
glDeleteTextures
public static void glDeleteTextures(int texture)
Deletes texture objects. After a texture object is deleted, it has no contents or dimensionality, and its name is again unused. If a texture that is currently bound to any of the target bindings ofBindTexture
is deleted, it is as thoughBindTexture
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.- See Also:
- Reference Page
-
nglGetBooleanv
public static void nglGetBooleanv(int pname, long params)
Unsafe version of:GetBooleanv
-
glGetBooleanv
public static void glGetBooleanv(int pname, java.nio.ByteBuffer params)
Returns the current boolean value of the specified state variable.LWJGL note: The state that corresponds to the state variable may be a single value or an array of values. In the case of an array of values, LWJGL will not validate if
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.- Parameters:
pname
- the state variableparams
- a scalar or buffer in which to place the returned data- See Also:
- Reference Page
-
glGetBoolean
public static boolean glGetBoolean(int pname)
Returns the current boolean value of the specified state variable.LWJGL note: The state that corresponds to the state variable may be a single value or an array of values. In the case of an array of values, LWJGL will not validate if
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.- Parameters:
pname
- the state variable- See Also:
- Reference Page
-
nglGetFloatv
public static void nglGetFloatv(int pname, long params)
Unsafe version of:GetFloatv
-
glGetFloatv
public static void glGetFloatv(int pname, java.nio.FloatBuffer params)
Returns the current float value of the specified state variable.LWJGL note: The state that corresponds to the state variable may be a single value or an array of values. In the case of an array of values, LWJGL will not validate if
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.- Parameters:
pname
- the state variableparams
- a scalar or buffer in which to place the returned data- See Also:
- Reference Page
-
glGetFloat
public static float glGetFloat(int pname)
Returns the current float value of the specified state variable.LWJGL note: The state that corresponds to the state variable may be a single value or an array of values. In the case of an array of values, LWJGL will not validate if
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.- Parameters:
pname
- the state variable- See Also:
- Reference Page
-
nglGetIntegerv
public static void nglGetIntegerv(int pname, long params)
Unsafe version of:GetIntegerv
-
glGetIntegerv
public static void glGetIntegerv(int pname, java.nio.IntBuffer params)
Returns the current integer value of the specified state variable.LWJGL note: The state that corresponds to the state variable may be a single value or an array of values. In the case of an array of values, LWJGL will not validate if
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.- Parameters:
pname
- the state variableparams
- a scalar or buffer in which to place the returned data- See Also:
- Reference Page
-
glGetInteger
public static int glGetInteger(int pname)
Returns the current integer value of the specified state variable.LWJGL note: The state that corresponds to the state variable may be a single value or an array of values. In the case of an array of values, LWJGL will not validate if
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.- Parameters:
pname
- the state variable- See Also:
- Reference Page
-
nglGetDoublev
public static void nglGetDoublev(int pname, long params)
Unsafe version of:GetDoublev
-
glGetDoublev
public static void glGetDoublev(int pname, java.nio.DoubleBuffer params)
Returns the current double value of the specified state variable.LWJGL note: The state that corresponds to the state variable may be a single value or an array of values. In the case of an array of values, LWJGL will not validate if
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.- Parameters:
pname
- the state variableparams
- a scalar or buffer in which to place the returned data- See Also:
- Reference Page
-
glGetDouble
public static double glGetDouble(int pname)
Returns the current double value of the specified state variable.LWJGL note: The state that corresponds to the state variable may be a single value or an array of values. In the case of an array of values, LWJGL will not validate if
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.- Parameters:
pname
- the state variable- See Also:
- Reference Page
-
glGetError
public static int glGetError()
Returns error information.Each detectable error is assigned a numeric code. When an error is detected, a flag is set and the code is recorded. Further errors, if they occur, do not affect this recorded code. 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 toGetError
returnsNO_ERROR
, then there has been no detectable error since the last call toGetError
(or since the GL was initialized).- See Also:
- Reference Page
-
nglGetPointerv
public static void nglGetPointerv(int pname, long params)
Unsafe version of:GetPointerv
-
glGetPointerv
public static void glGetPointerv(int pname, org.lwjgl.PointerBuffer params)
Returns a pointer in the current GL context.- Parameters:
pname
- the pointer to return. One of:DEBUG_CALLBACK_FUNCTION
DEBUG_CALLBACK_USER_PARAM
params
- a buffer in which to place the returned pointer- See Also:
- Reference Page
-
glGetPointer
public static long glGetPointer(int pname)
Returns a pointer in the current GL context.- Parameters:
pname
- the pointer to return. One of:DEBUG_CALLBACK_FUNCTION
DEBUG_CALLBACK_USER_PARAM
- See Also:
- Reference Page
-
nglGetString
public static long nglGetString(int name)
Unsafe version of:GetString
-
glGetString
@Nullable public static java.lang.String glGetString(int name)
Return strings describing properties of the current GL context.- Parameters:
name
- the property to query. One of:RENDERER
VENDOR
EXTENSIONS
VERSION
SHADING_LANGUAGE_VERSION
- See Also:
- Reference Page
-
nglGetTexImage
public static void nglGetTexImage(int tex, int level, int format, int type, long pixels)
Unsafe version of:GetTexImage
-
glGetTexImage
public static void glGetTexImage(int tex, int level, int format, int type, java.nio.ByteBuffer pixels) public static void glGetTexImage(int tex, int level, int format, int type, long pixels) public static void glGetTexImage(int tex, int level, int format, int type, java.nio.ShortBuffer pixels) public static void glGetTexImage(int tex, int level, int format, int type, java.nio.IntBuffer pixels) public static void glGetTexImage(int tex, int level, int format, int type, java.nio.FloatBuffer pixels) public static void glGetTexImage(int tex, int level, int format, int type, java.nio.DoubleBuffer pixels)
Obtains texture images.- Parameters:
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 data- See Also:
- Reference Page
-
nglGetTexLevelParameteriv
public static void nglGetTexLevelParameteriv(int target, int level, int pname, long params)
Unsafe version of:GetTexLevelParameteriv
-
glGetTexLevelParameteriv
public static void glGetTexLevelParameteriv(int target, int level, int pname, java.nio.IntBuffer params)
Places integer information about texture image parameterpname
for level-of-detaillevel
of the specifiedtarget
intoparams
.- Parameters:
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 data- See Also:
- Reference Page
-
glGetTexLevelParameteri
public static int glGetTexLevelParameteri(int target, int level, int pname)
Places integer information about texture image parameterpname
for level-of-detaillevel
of the specifiedtarget
intoparams
.- Parameters:
target
- the texture image target. One of:level
- the level-of-detail numberpname
- the parameter to query. One of:- See Also:
- Reference Page
-
nglGetTexLevelParameterfv
public static void nglGetTexLevelParameterfv(int target, int level, int pname, long params)
Unsafe version of:GetTexLevelParameterfv
-
glGetTexLevelParameterfv
public static void glGetTexLevelParameterfv(int target, int level, int pname, java.nio.FloatBuffer params)
Float version ofGetTexLevelParameteriv
.- Parameters:
target
- the texture image targetlevel
- the level-of-detail numberpname
- the parameter to queryparams
- a scalar or buffer in which to place the returned data- See Also:
- Reference Page
-
glGetTexLevelParameterf
public static float glGetTexLevelParameterf(int target, int level, int pname)
Float version ofGetTexLevelParameteriv
.- Parameters:
target
- the texture image targetlevel
- the level-of-detail numberpname
- the parameter to query- See Also:
- Reference Page
-
nglGetTexParameteriv
public static void nglGetTexParameteriv(int target, int pname, long params)
Unsafe version of:GetTexParameteriv
-
glGetTexParameteriv
public static void glGetTexParameteriv(int target, int pname, java.nio.IntBuffer params)
Place integer information about texture parameterpname
for the specifiedtarget
intoparams
.- Parameters:
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 data- See Also:
- Reference Page
-
glGetTexParameteri
public static int glGetTexParameteri(int target, int pname)
Place integer information about texture parameterpname
for the specifiedtarget
intoparams
.- Parameters:
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:- See Also:
- Reference Page
-
nglGetTexParameterfv
public static void nglGetTexParameterfv(int target, int pname, long params)
Unsafe version of:GetTexParameterfv
-
glGetTexParameterfv
public static void glGetTexParameterfv(int target, int pname, java.nio.FloatBuffer params)
Float version ofGetTexParameteriv
.- Parameters:
target
- the texture targetpname
- the parameter to queryparams
- a scalar or buffer in which to place the returned data- See Also:
- Reference Page
-
glGetTexParameterf
public static float glGetTexParameterf(int target, int pname)
Float version ofGetTexParameteriv
.- Parameters:
target
- the texture targetpname
- the parameter to query- See Also:
- Reference Page
-
glHint
public static void glHint(int target, int hint)
Certain aspects of GL behavior, when there is room for variation, may be controlled with this function. The initial value for all hints isDONT_CARE
.- Parameters:
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
- See Also:
- Reference Page
-
glIsEnabled
public static boolean glIsEnabled(int cap)
Determines ifcap
is currently enabled (as withEnable
) or disabled.- Parameters:
cap
- the enable state to query- See Also:
- Reference Page
-
glIsTexture
public static boolean glIsTexture(int texture)
Returns true iftexture
is the name of a texture object.- Parameters:
texture
- the texture name to query- See Also:
- Reference Page
-
glLineWidth
public static void glLineWidth(float width)
Sets the width of rasterized line segments. The default width is 1.0.- Parameters:
width
- the line width- See Also:
- Reference Page
-
glLogicOp
public static void glLogicOp(int op)
Sets the logical framebuffer operation.- Parameters:
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
- See Also:
- Reference Page
-
glPixelStorei
public static void glPixelStorei(int pname, int param)
Sets the integer value of a pixel store parameter.- Parameters:
pname
- the pixel store parameter to set. One of:param
- the parameter value- See Also:
- Reference Page
-
glPixelStoref
public static void glPixelStoref(int pname, float param)
Float version ofPixelStorei
.- Parameters:
pname
- the pixel store parameter to setparam
- the parameter value- See Also:
- Reference Page
-
glPointSize
public static void glPointSize(float size)
Controls the rasterization of points if no vertex, tessellation control, tessellation evaluation, or geometry shader is active. The default point size is 1.0.- Parameters:
size
- the request size of a point- See Also:
- Reference Page
-
glPolygonMode
public static void glPolygonMode(int face, int mode)
Controls the interpretation of polygons for rasterization.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 theFILL
state of PolygonMode. ForPOINT
orLINE
, point antialiasing or line segment antialiasing, respectively, apply.- Parameters:
face
- the face for which to set the rasterizing method. One of:FRONT
BACK
FRONT_AND_BACK
mode
- the rasterization mode. One of:POINT
LINE
FILL
- See Also:
- Reference Page
-
glPolygonOffset
public 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. This function determines that value.factor
scales the maximum depth slope of the polygon, andunits
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.- Parameters:
factor
- the maximum depth slope factorunits
- the constant scale- See Also:
- Reference Page
-
glReadBuffer
public static void glReadBuffer(int src)
Defines the color buffer from which values are obtained.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.- Parameters:
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] - See Also:
- Reference Page
-
nglReadPixels
public static void nglReadPixels(int x, int y, int width, int height, int format, int type, long pixels)
Unsafe version of:ReadPixels
-
glReadPixels
public static void glReadPixels(int x, int y, int width, int height, int format, int type, java.nio.ByteBuffer pixels) public static void glReadPixels(int x, int y, int width, int height, int format, int type, long pixels) public static void glReadPixels(int x, int y, int width, int height, int format, int type, java.nio.ShortBuffer pixels) public static void glReadPixels(int x, int y, int width, int height, int format, int type, java.nio.IntBuffer pixels) public 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)
for0 <= i < width
and0 <= j < height
; this pixel is said to be the ith pixel in the jth row. If any of these pixels lies outside of the window allocated to the current GL context, or outside of the image attached to the currently bound read framebuffer object, then the values obtained for those pixels are undefined. WhenREAD_FRAMEBUFFER_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.- Parameters:
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 data- See Also:
- Reference Page
-
glScissor
public static void glScissor(int x, int y, int width, int height)
Defines the scissor rectangle for all viewports. The scissor test is enabled or disabled for all viewports usingEnable
orDisable
with the symbolic constantSCISSOR_TEST
. When disabled, it is as if the scissor test always passes. When enabled, ifleft ≤ xw < left + width
andbottom ≤ yw < bottom + height
for the scissor rectangle, then the scissor test passes. Otherwise, the test fails and the fragment is discarded.- Parameters:
x
- the left scissor rectangle coordinatey
- the bottom scissor rectangle coordinatewidth
- the scissor rectangle widthheight
- the scissor rectangle height- See Also:
- Reference Page
-
glStencilFunc
public static void glStencilFunc(int func, int ref, int mask)
Controls the stencil test.ref
is an integer reference value that is used in the unsigned stencil comparison. Stencil comparison operations and queries ofref
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 ofmask
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 byfunc
.
-
glStencilMask
public static void glStencilMask(int mask)
Masks the writing of particular bits into the stencil plans.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.- Parameters:
mask
- the stencil mask- See Also:
- Reference Page
-
glStencilOp
public 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.The supported actions are
KEEP
,ZERO
,REPLACE
,INCR
,DECR
,INVERT
,INCR_WRAP
andDECR_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.
- Parameters:
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 passes- See Also:
- Reference Page
-
nglTexImage1D
public static void nglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, long pixels)
Unsafe version of:TexImage1D
-
glTexImage1D
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable java.nio.ByteBuffer pixels) public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable long pixels) public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable java.nio.ShortBuffer pixels) public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable java.nio.IntBuffer pixels) public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable java.nio.FloatBuffer pixels) public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable java.nio.DoubleBuffer pixels)
One-dimensional version ofTexImage2D
}.- Parameters:
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 data- See Also:
- Reference Page
-
nglTexImage2D
public 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
-
glTexImage2D
public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable java.nio.ByteBuffer pixels) public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable long pixels) public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable java.nio.ShortBuffer pixels) public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable java.nio.IntBuffer pixels) public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable java.nio.FloatBuffer pixels) public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable java.nio.DoubleBuffer pixels)
Specifies a two-dimensional texture image.- Parameters:
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 data- See Also:
- Reference Page
-
glCopyTexImage1D
public 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 ofTexImage1D
, 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 callingCopyTexImage2D
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 ofTexImage1D
. The constraints on width and border are exactly those of the corresponding arguments ofTexImage1D
.- Parameters:
target
- the texture target. Must be:TEXTURE_1D
level
- the level-of-detail numberinternalFormat
- the texture internal format. SeeTexImage2D
for a list of supported formats.x
- the left framebuffer pixel coordinatey
- the lower framebuffer pixel coordinatewidth
- the texture widthborder
- the texture border width- See Also:
- Reference Page
-
glCopyTexImage2D
public 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 ofTexImage2D
, except that the image data are taken from the framebuffer rather than from client memory.x
,y
,width
, andheight
correspond precisely to the corresponding arguments toReadPixels
; 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 toCOLOR
,DEPTH
, orDEPTH_STENCIL
, depending oninternalformat
. 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. Parameterslevel
,internalformat
, andborder
are specified using the same values, with the same meanings, as the corresponding arguments ofTexImage2D
.The constraints on width, height, and border are exactly those for the corresponding arguments of
TexImage2D
.- Parameters:
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. SeeTexImage2D
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 width- See Also:
- Reference Page
-
glCopyTexSubImage1D
public static void glCopyTexSubImage1D(int target, int level, int xoffset, int x, int y, int width)
Respecifies a rectangular subregion of an existing texel array. No change is made to theinternalformat
,width
orborder
parameters of the specified texel array, nor is any change made to texel values outside the specified subregion. SeeCopyTexImage1D
for more details.- Parameters:
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 width- See Also:
- Reference Page
-
glCopyTexSubImage2D
public 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. No change is made to theinternalformat
,width
,height
, orborder
parameters of the specified texel array, nor is any change made to texel values outside the specified subregion. SeeCopyTexImage2D
for more details.- Parameters:
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 height- See Also:
- Reference Page
-
glTexParameteri
public 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.- Parameters:
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 value- See Also:
- Reference Page
-
nglTexParameteriv
public static void nglTexParameteriv(int target, int pname, long params)
Unsafe version of:TexParameteriv
-
glTexParameteriv
public static void glTexParameteriv(int target, int pname, java.nio.IntBuffer params)
Pointer version ofTexParameteri
.- Parameters:
target
- the texture targetpname
- the parameter to setparams
- the parameter value- See Also:
- Reference Page
-
glTexParameterf
public static void glTexParameterf(int target, int pname, float param)
Float version ofTexParameteri
.- Parameters:
target
- the texture targetpname
- the parameter to setparam
- the parameter value- See Also:
- Reference Page
-
nglTexParameterfv
public static void nglTexParameterfv(int target, int pname, long params)
Unsafe version of:TexParameterfv
-
glTexParameterfv
public static void glTexParameterfv(int target, int pname, java.nio.FloatBuffer params)
Pointer version ofTexParameterf
.- Parameters:
target
- the texture targetpname
- the parameter to setparams
- the parameter value- See Also:
- Reference Page
-
nglTexSubImage1D
public static void nglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, long pixels)
Unsafe version of:TexSubImage1D
-
glTexSubImage1D
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, java.nio.ByteBuffer pixels) public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, long pixels) public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, java.nio.ShortBuffer pixels) public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, java.nio.IntBuffer pixels) public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, java.nio.FloatBuffer pixels) public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, java.nio.DoubleBuffer pixels)
One-dimensional version ofTexSubImage2D
.- Parameters:
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 data- See Also:
- Reference Page
-
nglTexSubImage2D
public 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
-
glTexSubImage2D
public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, java.nio.ByteBuffer pixels) public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, long pixels) public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, java.nio.ShortBuffer pixels) public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, java.nio.IntBuffer pixels) public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, java.nio.FloatBuffer pixels) public 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. No change is made to the internalformat, width, height, depth, or border parameters of the specified texel array, nor is any change made to texel values outside the specified subregion.- Parameters:
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 data- See Also:
- Reference Page
-
glViewport
public static void glViewport(int x, int y, int w, int h)
Specifies the viewport transformation parameters for all viewports.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 callingGetFloatv
with the symbolic constantVIEWPORT_BOUNDS_RANGE
. Viewport width and height are clamped to implementation-dependent maximums when specified. The maximum width and height may be found by callingGetFloatv
with the symbolic constantMAX_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
andh
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, thenw
andh
are initially set to zero.- Parameters:
x
- the left viewport coordinatey
- the bottom viewport coordinatew
- the viewport widthh
- the viewport height- See Also:
- Reference Page
-
glGenTextures
public static void glGenTextures(int[] textures)
Array version of:GenTextures
- See Also:
- Reference Page
-
glDeleteTextures
public static void glDeleteTextures(int[] textures)
Array version of:DeleteTextures
- See Also:
- Reference Page
-
glGetFloatv
public static void glGetFloatv(int pname, float[] params)
Array version of:GetFloatv
- See Also:
- Reference Page
-
glGetIntegerv
public static void glGetIntegerv(int pname, int[] params)
Array version of:GetIntegerv
- See Also:
- Reference Page
-
glGetDoublev
public static void glGetDoublev(int pname, double[] params)
Array version of:GetDoublev
- See Also:
- Reference Page
-
glGetTexImage
public static void glGetTexImage(int tex, int level, int format, int type, short[] pixels) public static void glGetTexImage(int tex, int level, int format, int type, int[] pixels) public static void glGetTexImage(int tex, int level, int format, int type, float[] pixels) public static void glGetTexImage(int tex, int level, int format, int type, double[] pixels)
Array version of:GetTexImage
- See Also:
- Reference Page
-
glGetTexLevelParameteriv
public static void glGetTexLevelParameteriv(int target, int level, int pname, int[] params)
Array version of:GetTexLevelParameteriv
- See Also:
- Reference Page
-
glGetTexLevelParameterfv
public static void glGetTexLevelParameterfv(int target, int level, int pname, float[] params)
Array version of:GetTexLevelParameterfv
- See Also:
- Reference Page
-
glGetTexParameteriv
public static void glGetTexParameteriv(int target, int pname, int[] params)
Array version of:GetTexParameteriv
- See Also:
- Reference Page
-
glGetTexParameterfv
public static void glGetTexParameterfv(int target, int pname, float[] params)
Array version of:GetTexParameterfv
- See Also:
- Reference Page
-
glReadPixels
public static void glReadPixels(int x, int y, int width, int height, int format, int type, short[] pixels) public static void glReadPixels(int x, int y, int width, int height, int format, int type, int[] pixels) public static void glReadPixels(int x, int y, int width, int height, int format, int type, float[] pixels)
Array version of:ReadPixels
- See Also:
- Reference Page
-
glTexImage1D
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable short[] pixels) public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable int[] pixels) public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable float[] pixels) public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable double[] pixels)
Array version of:TexImage1D
- See Also:
- Reference Page
-
glTexImage2D
public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable short[] pixels) public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable int[] pixels) public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable float[] pixels) public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable double[] pixels)
Array version of:TexImage2D
- See Also:
- Reference Page
-
glTexParameteriv
public static void glTexParameteriv(int target, int pname, int[] params)
Array version of:TexParameteriv
- See Also:
- Reference Page
-
glTexParameterfv
public static void glTexParameterfv(int target, int pname, float[] params)
Array version of:TexParameterfv
- See Also:
- Reference Page
-
glTexSubImage1D
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, short[] pixels) public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, int[] pixels) public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, float[] pixels) public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, double[] pixels)
Array version of:TexSubImage1D
- See Also:
- Reference Page
-
glTexSubImage2D
public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, short[] pixels) public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, int[] pixels) public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, float[] pixels) public 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
- See Also:
- Reference Page
-
-