Class GL11C
- Direct Known Subclasses:
GL12C
Extensions promoted to core in this release:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
PixelFormatstatic final int
AlphaFunctionstatic final int
LogicOpstatic final int
LogicOpstatic final int
LogicOpstatic final int
DrawBufferModestatic final int
DrawBufferModestatic final int
DrawBufferModestatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
PixelFormatstatic final int
DataTypestatic final int
FrontFaceDirectionstatic final int
LogicOpstatic final int
PixelCopyTypestatic final int
AttribMaskstatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
LogicOpstatic final int
LogicOpstatic final int
GetTargetstatic final int
GetTargetstatic final int
FrontFaceDirectionstatic final int
StencilOpstatic final int
PixelCopyTypestatic final int
AttribMaskstatic final int
GetTargetstatic final int
PixelFormatstatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
HintModestatic final int
DataTypestatic final int
GetTargetstatic final int
GetTargetstatic final int
BlendingFactorDeststatic final int
BlendingFactorSrcstatic final int
AlphaFunctionstatic final int
LogicOpstatic final int
StringNamestatic final int
Booleanstatic final int
HintModestatic final int
PolygonModestatic final int
DataTypestatic final int
DrawBufferModestatic final int
DrawBufferModestatic final int
GetTargetstatic final int
DrawBufferModestatic final int
DrawBufferModestatic final int
AlphaFunctionstatic final int
AlphaFunctionstatic final int
PixelFormatstatic final int
StencilOpstatic final int
DataTypestatic final int
ErrorCodestatic final int
ErrorCodestatic final int
ErrorCodestatic final int
LogicOpstatic final int
StencilOpstatic final int
DrawBufferModestatic final int
AlphaFunctionstatic final int
AlphaFunctionstatic final int
PolygonModestatic final int
BeginModestatic final int
GetTargetstatic final int
GetTargetstatic final int
BeginModestatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
TextureMagFilterstatic final int
TextureMinFilterstatic final int
TextureMinFilterstatic final int
BeginModestatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
LogicOpstatic final int
TextureMagFilterstatic final int
TextureMinFilterstatic final int
TextureMinFilterstatic final int
AlphaFunctionstatic final int
HintModestatic final int
ErrorCodestatic final int
DrawBufferModestatic final int
LogicOpstatic final int
LogicOpstatic final int
AlphaFunctionstatic final int
BlendingFactorDeststatic final int
BlendingFactorDeststatic final int
BlendingFactorSrcstatic final int
BlendingFactorDeststatic final int
BlendingFactorDeststatic final int
LogicOpstatic final int
LogicOpstatic final int
LogicOpstatic final int
ErrorCodestatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
PolygonModestatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
BeginModestatic final int
GetTargetstatic final int
polygon_offsetstatic final int
polygon_offsetstatic final int
polygon_offsetstatic final int
polygon_offsetstatic final int
polygon_offsetstatic final int
GetTargetstatic final int
GetTargetstatic final int
texturestatic final int
texturestatic final int
BeginModestatic final int
texturestatic final int
GetTargetstatic final int
PixelFormatstatic final int
StringNamestatic final int
TextureWrapModestatic final int
StencilOpstatic final int
PixelFormatstatic final int
texturestatic final int
texturestatic final int
texturestatic final int
texturestatic final int
texturestatic final int
texturestatic final int
texturestatic final int
texturestatic final int
PixelFormatstatic final int
texturestatic final int
texturestatic final int
texturestatic final int
texturestatic final int
texturestatic final int
DrawBufferModestatic final int
GetTargetstatic final int
GetTargetstatic final int
LogicOpstatic final int
DataTypestatic final int
BlendingFactorDeststatic final int
BlendingFactorSrcstatic final int
BlendingFactorDeststatic final int
ErrorCodestatic final int
ErrorCodestatic final int
PixelCopyTypestatic final int
AttribMaskstatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
PixelFormatstatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
Token accepted or provided by theidentifier
parameters of ObjectLabel and GetObjectLabel.static final int
GetTargetstatic final int
GetTargetstatic final int
texturestatic final int
texture_objectstatic final int
texture_objectstatic final int
texturestatic final int
GetTextureParameterstatic final int
texturestatic final int
GetTextureParameterstatic final int
GetTextureParameterstatic final int
TextureParameterNamestatic final int
TextureParameterNamestatic final int
texturestatic final int
GetTextureParameterstatic final int
TextureParameterNamestatic final int
TextureParameterNamestatic final int
BeginModestatic final int
BeginModestatic final int
BeginModestatic final int
Booleanstatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
GetTargetstatic final int
DataTypestatic final int
DataTypestatic final int
DataTypestatic final int
StringNamestatic final int
StringNamestatic final int
vertex_arraystatic final int
GetTargetstatic final int
LogicOpstatic final int
BlendingFactorDest -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
(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, ByteBuffer indices) Constructs a sequence of geometric primitives by successively transferring elements forcount
vertices to the GL.static void
glDrawElements
(int mode, ByteBuffer indices) Constructs a sequence of geometric primitives by successively transferring elements forcount
vertices to the GL.static void
glDrawElements
(int mode, IntBuffer indices) Constructs a sequence of geometric primitives by successively transferring elements forcount
vertices to the GL.static void
glDrawElements
(int mode, 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
Returns n previously unused texture names in textures.static void
glGenTextures
(int[] textures) Array version of:GenTextures
static void
glGenTextures
(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, 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, DoubleBuffer params) Returns the current double value of the specified state variable.static int
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, 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, 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, PointerBuffer params) Returns a pointer in the current GL context.static 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, ByteBuffer pixels) Obtains texture images.static void
glGetTexImage
(int tex, int level, int format, int type, DoubleBuffer pixels) Obtains texture images.static void
glGetTexImage
(int tex, int level, int format, int type, FloatBuffer pixels) Obtains texture images.static void
glGetTexImage
(int tex, int level, int format, int type, IntBuffer pixels) Obtains texture images.static void
glGetTexImage
(int tex, int level, int format, int type, 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, 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, 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, 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, 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, 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, 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, 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, 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, ByteBuffer pixels) One-dimensional version ofTexImage2D
}.static void
glTexImage1D
(int target, int level, int internalformat, int width, int border, int format, int type, DoubleBuffer pixels) One-dimensional version ofTexImage2D
}.static void
glTexImage1D
(int target, int level, int internalformat, int width, int border, int format, int type, FloatBuffer pixels) One-dimensional version ofTexImage2D
}.static void
glTexImage1D
(int target, int level, int internalformat, int width, int border, int format, int type, IntBuffer pixels) One-dimensional version ofTexImage2D
}.static void
glTexImage1D
(int target, int level, int internalformat, int width, int border, int format, int type, 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, 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, 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, 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, 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, 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, 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, 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, ByteBuffer pixels) One-dimensional version ofTexSubImage2D
.static void
glTexSubImage1D
(int target, int level, int xoffset, int width, int format, int type, DoubleBuffer pixels) One-dimensional version ofTexSubImage2D
.static void
glTexSubImage1D
(int target, int level, int xoffset, int width, int format, int type, FloatBuffer pixels) One-dimensional version ofTexSubImage2D
.static void
glTexSubImage1D
(int target, int level, int xoffset, int width, int format, int type, IntBuffer pixels) One-dimensional version ofTexSubImage2D
.static void
glTexSubImage1D
(int target, int level, int xoffset, int width, int format, int type, 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, 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, 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, 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, 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, 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 Details
-
GL_NEVER
public static final int GL_NEVERAlphaFunction- See Also:
-
GL_LESS
public static final int GL_LESSAlphaFunction- See Also:
-
GL_EQUAL
public static final int GL_EQUALAlphaFunction- See Also:
-
GL_LEQUAL
public static final int GL_LEQUALAlphaFunction- See Also:
-
GL_GREATER
public static final int GL_GREATERAlphaFunction- See Also:
-
GL_NOTEQUAL
public static final int GL_NOTEQUALAlphaFunction- See Also:
-
GL_GEQUAL
public static final int GL_GEQUALAlphaFunction- See Also:
-
GL_ALWAYS
public static final int GL_ALWAYSAlphaFunction- See Also:
-
GL_DEPTH_BUFFER_BIT
public static final int GL_DEPTH_BUFFER_BITAttribMask- See Also:
-
GL_STENCIL_BUFFER_BIT
public static final int GL_STENCIL_BUFFER_BITAttribMask- See Also:
-
GL_COLOR_BUFFER_BIT
public static final int GL_COLOR_BUFFER_BITAttribMask- See Also:
-
GL_POINTS
public static final int GL_POINTSBeginMode- See Also:
-
GL_LINES
public static final int GL_LINESBeginMode- See Also:
-
GL_LINE_LOOP
public static final int GL_LINE_LOOPBeginMode- See Also:
-
GL_LINE_STRIP
public static final int GL_LINE_STRIPBeginMode- See Also:
-
GL_TRIANGLES
public static final int GL_TRIANGLESBeginMode- See Also:
-
GL_TRIANGLE_STRIP
public static final int GL_TRIANGLE_STRIPBeginMode- See Also:
-
GL_TRIANGLE_FAN
public static final int GL_TRIANGLE_FANBeginMode- See Also:
-
GL_QUADS
public static final int GL_QUADSBeginMode- See Also:
-
GL_ZERO
public static final int GL_ZEROBlendingFactorDest- See Also:
-
GL_ONE
public static final int GL_ONEBlendingFactorDest- See Also:
-
GL_SRC_COLOR
public static final int GL_SRC_COLORBlendingFactorDest- See Also:
-
GL_ONE_MINUS_SRC_COLOR
public static final int GL_ONE_MINUS_SRC_COLORBlendingFactorDest- See Also:
-
GL_SRC_ALPHA
public static final int GL_SRC_ALPHABlendingFactorDest- See Also:
-
GL_ONE_MINUS_SRC_ALPHA
public static final int GL_ONE_MINUS_SRC_ALPHABlendingFactorDest- See Also:
-
GL_DST_ALPHA
public static final int GL_DST_ALPHABlendingFactorDest- See Also:
-
GL_ONE_MINUS_DST_ALPHA
public static final int GL_ONE_MINUS_DST_ALPHABlendingFactorDest- See Also:
-
GL_DST_COLOR
public static final int GL_DST_COLORBlendingFactorSrc- See Also:
-
GL_ONE_MINUS_DST_COLOR
public static final int GL_ONE_MINUS_DST_COLORBlendingFactorSrc- See Also:
-
GL_SRC_ALPHA_SATURATE
public static final int GL_SRC_ALPHA_SATURATEBlendingFactorSrc- See Also:
-
GL_TRUE
public static final int GL_TRUEBoolean- See Also:
-
GL_FALSE
public static final int GL_FALSEBoolean- See Also:
-
GL_BYTE
public static final int GL_BYTEDataType- See Also:
-
GL_UNSIGNED_BYTE
public static final int GL_UNSIGNED_BYTEDataType- See Also:
-
GL_SHORT
public static final int GL_SHORTDataType- See Also:
-
GL_UNSIGNED_SHORT
public static final int GL_UNSIGNED_SHORTDataType- See Also:
-
GL_INT
public static final int GL_INTDataType- See Also:
-
GL_UNSIGNED_INT
public static final int GL_UNSIGNED_INTDataType- See Also:
-
GL_FLOAT
public static final int GL_FLOATDataType- See Also:
-
GL_DOUBLE
public static final int GL_DOUBLEDataType- See Also:
-
GL_NONE
public static final int GL_NONEDrawBufferMode- See Also:
-
GL_FRONT_LEFT
public static final int GL_FRONT_LEFTDrawBufferMode- See Also:
-
GL_FRONT_RIGHT
public static final int GL_FRONT_RIGHTDrawBufferMode- See Also:
-
GL_BACK_LEFT
public static final int GL_BACK_LEFTDrawBufferMode- See Also:
-
GL_BACK_RIGHT
public static final int GL_BACK_RIGHTDrawBufferMode- See Also:
-
GL_FRONT
public static final int GL_FRONTDrawBufferMode- See Also:
-
GL_BACK
public static final int GL_BACKDrawBufferMode- See Also:
-
GL_LEFT
public static final int GL_LEFTDrawBufferMode- See Also:
-
GL_RIGHT
public static final int GL_RIGHTDrawBufferMode- See Also:
-
GL_FRONT_AND_BACK
public static final int GL_FRONT_AND_BACKDrawBufferMode- See Also:
-
GL_NO_ERROR
public static final int GL_NO_ERRORErrorCode- See Also:
-
GL_INVALID_ENUM
public static final int GL_INVALID_ENUMErrorCode- See Also:
-
GL_INVALID_VALUE
public static final int GL_INVALID_VALUEErrorCode- See Also:
-
GL_INVALID_OPERATION
public static final int GL_INVALID_OPERATIONErrorCode- See Also:
-
GL_STACK_OVERFLOW
public static final int GL_STACK_OVERFLOWErrorCode- See Also:
-
GL_STACK_UNDERFLOW
public static final int GL_STACK_UNDERFLOWErrorCode- See Also:
-
GL_OUT_OF_MEMORY
public static final int GL_OUT_OF_MEMORYErrorCode- See Also:
-
GL_CW
public static final int GL_CWFrontFaceDirection- See Also:
-
GL_CCW
public static final int GL_CCWFrontFaceDirection- See Also:
-
GL_POINT_SIZE
public static final int GL_POINT_SIZEGetTarget- See Also:
-
GL_POINT_SIZE_RANGE
public static final int GL_POINT_SIZE_RANGEGetTarget- See Also:
-
GL_POINT_SIZE_GRANULARITY
public static final int GL_POINT_SIZE_GRANULARITYGetTarget- See Also:
-
GL_LINE_SMOOTH
public static final int GL_LINE_SMOOTHGetTarget- See Also:
-
GL_LINE_WIDTH
public static final int GL_LINE_WIDTHGetTarget- See Also:
-
GL_LINE_WIDTH_RANGE
public static final int GL_LINE_WIDTH_RANGEGetTarget- See Also:
-
GL_LINE_WIDTH_GRANULARITY
public static final int GL_LINE_WIDTH_GRANULARITYGetTarget- See Also:
-
GL_POLYGON_MODE
public static final int GL_POLYGON_MODEGetTarget- See Also:
-
GL_POLYGON_SMOOTH
public static final int GL_POLYGON_SMOOTHGetTarget- See Also:
-
GL_CULL_FACE
public static final int GL_CULL_FACEGetTarget- See Also:
-
GL_CULL_FACE_MODE
public static final int GL_CULL_FACE_MODEGetTarget- See Also:
-
GL_FRONT_FACE
public static final int GL_FRONT_FACEGetTarget- See Also:
-
GL_DEPTH_RANGE
public static final int GL_DEPTH_RANGEGetTarget- See Also:
-
GL_DEPTH_TEST
public static final int GL_DEPTH_TESTGetTarget- See Also:
-
GL_DEPTH_WRITEMASK
public static final int GL_DEPTH_WRITEMASKGetTarget- See Also:
-
GL_DEPTH_CLEAR_VALUE
public static final int GL_DEPTH_CLEAR_VALUEGetTarget- See Also:
-
GL_DEPTH_FUNC
public static final int GL_DEPTH_FUNCGetTarget- See Also:
-
GL_STENCIL_TEST
public static final int GL_STENCIL_TESTGetTarget- See Also:
-
GL_STENCIL_CLEAR_VALUE
public static final int GL_STENCIL_CLEAR_VALUEGetTarget- See Also:
-
GL_STENCIL_FUNC
public static final int GL_STENCIL_FUNCGetTarget- See Also:
-
GL_STENCIL_VALUE_MASK
public static final int GL_STENCIL_VALUE_MASKGetTarget- See Also:
-
GL_STENCIL_FAIL
public static final int GL_STENCIL_FAILGetTarget- See Also:
-
GL_STENCIL_PASS_DEPTH_FAIL
public static final int GL_STENCIL_PASS_DEPTH_FAILGetTarget- See Also:
-
GL_STENCIL_PASS_DEPTH_PASS
public static final int GL_STENCIL_PASS_DEPTH_PASSGetTarget- See Also:
-
GL_STENCIL_REF
public static final int GL_STENCIL_REFGetTarget- See Also:
-
GL_STENCIL_WRITEMASK
public static final int GL_STENCIL_WRITEMASKGetTarget- See Also:
-
GL_VIEWPORT
public static final int GL_VIEWPORTGetTarget- See Also:
-
GL_DITHER
public static final int GL_DITHERGetTarget- See Also:
-
GL_BLEND_DST
public static final int GL_BLEND_DSTGetTarget- See Also:
-
GL_BLEND_SRC
public static final int GL_BLEND_SRCGetTarget- See Also:
-
GL_BLEND
public static final int GL_BLENDGetTarget- See Also:
-
GL_LOGIC_OP_MODE
public static final int GL_LOGIC_OP_MODEGetTarget- See Also:
-
GL_COLOR_LOGIC_OP
public static final int GL_COLOR_LOGIC_OPGetTarget- See Also:
-
GL_DRAW_BUFFER
public static final int GL_DRAW_BUFFERGetTarget- See Also:
-
GL_READ_BUFFER
public static final int GL_READ_BUFFERGetTarget- See Also:
-
GL_SCISSOR_BOX
public static final int GL_SCISSOR_BOXGetTarget- See Also:
-
GL_SCISSOR_TEST
public static final int GL_SCISSOR_TESTGetTarget- See Also:
-
GL_COLOR_CLEAR_VALUE
public static final int GL_COLOR_CLEAR_VALUEGetTarget- See Also:
-
GL_COLOR_WRITEMASK
public static final int GL_COLOR_WRITEMASKGetTarget- See Also:
-
GL_DOUBLEBUFFER
public static final int GL_DOUBLEBUFFERGetTarget- See Also:
-
GL_STEREO
public static final int GL_STEREOGetTarget- See Also:
-
GL_LINE_SMOOTH_HINT
public static final int GL_LINE_SMOOTH_HINTGetTarget- See Also:
-
GL_POLYGON_SMOOTH_HINT
public static final int GL_POLYGON_SMOOTH_HINTGetTarget- See Also:
-
GL_UNPACK_SWAP_BYTES
public static final int GL_UNPACK_SWAP_BYTESGetTarget- See Also:
-
GL_UNPACK_LSB_FIRST
public static final int GL_UNPACK_LSB_FIRSTGetTarget- See Also:
-
GL_UNPACK_ROW_LENGTH
public static final int GL_UNPACK_ROW_LENGTHGetTarget- See Also:
-
GL_UNPACK_SKIP_ROWS
public static final int GL_UNPACK_SKIP_ROWSGetTarget- See Also:
-
GL_UNPACK_SKIP_PIXELS
public static final int GL_UNPACK_SKIP_PIXELSGetTarget- See Also:
-
GL_UNPACK_ALIGNMENT
public static final int GL_UNPACK_ALIGNMENTGetTarget- See Also:
-
GL_PACK_SWAP_BYTES
public static final int GL_PACK_SWAP_BYTESGetTarget- See Also:
-
GL_PACK_LSB_FIRST
public static final int GL_PACK_LSB_FIRSTGetTarget- See Also:
-
GL_PACK_ROW_LENGTH
public static final int GL_PACK_ROW_LENGTHGetTarget- See Also:
-
GL_PACK_SKIP_ROWS
public static final int GL_PACK_SKIP_ROWSGetTarget- See Also:
-
GL_PACK_SKIP_PIXELS
public static final int GL_PACK_SKIP_PIXELSGetTarget- See Also:
-
GL_PACK_ALIGNMENT
public static final int GL_PACK_ALIGNMENTGetTarget- See Also:
-
GL_MAX_TEXTURE_SIZE
public static final int GL_MAX_TEXTURE_SIZEGetTarget- See Also:
-
GL_MAX_VIEWPORT_DIMS
public static final int GL_MAX_VIEWPORT_DIMSGetTarget- See Also:
-
GL_SUBPIXEL_BITS
public static final int GL_SUBPIXEL_BITSGetTarget- See Also:
-
GL_TEXTURE_1D
public static final int GL_TEXTURE_1DGetTarget- See Also:
-
GL_TEXTURE_2D
public static final int GL_TEXTURE_2DGetTarget- See Also:
-
GL_TEXTURE_WIDTH
public static final int GL_TEXTURE_WIDTHGetTextureParameter- See Also:
-
GL_TEXTURE_HEIGHT
public static final int GL_TEXTURE_HEIGHTGetTextureParameter- See Also:
-
GL_TEXTURE_INTERNAL_FORMAT
public static final int GL_TEXTURE_INTERNAL_FORMATGetTextureParameter- See Also:
-
GL_TEXTURE_BORDER_COLOR
public static final int GL_TEXTURE_BORDER_COLORGetTextureParameter- See Also:
-
GL_DONT_CARE
public static final int GL_DONT_CAREHintMode- See Also:
-
GL_FASTEST
public static final int GL_FASTESTHintMode- See Also:
-
GL_NICEST
public static final int GL_NICESTHintMode- See Also:
-
GL_CLEAR
public static final int GL_CLEARLogicOp- See Also:
-
GL_AND
public static final int GL_ANDLogicOp- See Also:
-
GL_AND_REVERSE
public static final int GL_AND_REVERSELogicOp- See Also:
-
GL_COPY
public static final int GL_COPYLogicOp- See Also:
-
GL_AND_INVERTED
public static final int GL_AND_INVERTEDLogicOp- See Also:
-
GL_NOOP
public static final int GL_NOOPLogicOp- See Also:
-
GL_XOR
public static final int GL_XORLogicOp- See Also:
-
GL_OR
public static final int GL_ORLogicOp- See Also:
-
GL_NOR
public static final int GL_NORLogicOp- See Also:
-
GL_EQUIV
public static final int GL_EQUIVLogicOp- See Also:
-
GL_INVERT
public static final int GL_INVERTLogicOp- See Also:
-
GL_OR_REVERSE
public static final int GL_OR_REVERSELogicOp- See Also:
-
GL_COPY_INVERTED
public static final int GL_COPY_INVERTEDLogicOp- See Also:
-
GL_OR_INVERTED
public static final int GL_OR_INVERTEDLogicOp- See Also:
-
GL_NAND
public static final int GL_NANDLogicOp- See Also:
-
GL_SET
public static final int GL_SETLogicOp- See Also:
-
GL_TEXTURE
public static final int GL_TEXTUREToken accepted or provided by theidentifier
parameters of ObjectLabel and GetObjectLabel.- See Also:
-
GL_COLOR
public static final int GL_COLORPixelCopyType- See Also:
-
GL_DEPTH
public static final int GL_DEPTHPixelCopyType- See Also:
-
GL_STENCIL
public static final int GL_STENCILPixelCopyType- See Also:
-
GL_STENCIL_INDEX
public static final int GL_STENCIL_INDEXPixelFormat- See Also:
-
GL_DEPTH_COMPONENT
public static final int GL_DEPTH_COMPONENTPixelFormat- See Also:
-
GL_RED
public static final int GL_REDPixelFormat- See Also:
-
GL_GREEN
public static final int GL_GREENPixelFormat- See Also:
-
GL_BLUE
public static final int GL_BLUEPixelFormat- See Also:
-
GL_ALPHA
public static final int GL_ALPHAPixelFormat- See Also:
-
GL_RGB
public static final int GL_RGBPixelFormat- See Also:
-
GL_RGBA
public static final int GL_RGBAPixelFormat- See Also:
-
GL_POINT
public static final int GL_POINTPolygonMode- See Also:
-
GL_LINE
public static final int GL_LINEPolygonMode- See Also:
-
GL_FILL
public static final int GL_FILLPolygonMode- See Also:
-
GL_KEEP
public static final int GL_KEEPStencilOp- See Also:
-
GL_REPLACE
public static final int GL_REPLACEStencilOp- See Also:
-
GL_INCR
public static final int GL_INCRStencilOp- See Also:
-
GL_DECR
public static final int GL_DECRStencilOp- See Also:
-
GL_VENDOR
public static final int GL_VENDORStringName- See Also:
-
GL_RENDERER
public static final int GL_RENDERERStringName- See Also:
-
GL_VERSION
public static final int GL_VERSIONStringName- See Also:
-
GL_EXTENSIONS
public static final int GL_EXTENSIONSStringName- See Also:
-
GL_NEAREST
public static final int GL_NEARESTTextureMagFilter- See Also:
-
GL_LINEAR
public static final int GL_LINEARTextureMagFilter- See Also:
-
GL_NEAREST_MIPMAP_NEAREST
public static final int GL_NEAREST_MIPMAP_NEARESTTextureMinFilter- See Also:
-
GL_LINEAR_MIPMAP_NEAREST
public static final int GL_LINEAR_MIPMAP_NEARESTTextureMinFilter- See Also:
-
GL_NEAREST_MIPMAP_LINEAR
public static final int GL_NEAREST_MIPMAP_LINEARTextureMinFilter- See Also:
-
GL_LINEAR_MIPMAP_LINEAR
public static final int GL_LINEAR_MIPMAP_LINEARTextureMinFilter- See Also:
-
GL_TEXTURE_MAG_FILTER
public static final int GL_TEXTURE_MAG_FILTERTextureParameterName- See Also:
-
GL_TEXTURE_MIN_FILTER
public static final int GL_TEXTURE_MIN_FILTERTextureParameterName- See Also:
-
GL_TEXTURE_WRAP_S
public static final int GL_TEXTURE_WRAP_STextureParameterName- See Also:
-
GL_TEXTURE_WRAP_T
public static final int GL_TEXTURE_WRAP_TTextureParameterName- See Also:
-
GL_REPEAT
public static final int GL_REPEATTextureWrapMode- See Also:
-
GL_POLYGON_OFFSET_FACTOR
public static final int GL_POLYGON_OFFSET_FACTORpolygon_offset- See Also:
-
GL_POLYGON_OFFSET_UNITS
public static final int GL_POLYGON_OFFSET_UNITSpolygon_offset- See Also:
-
GL_POLYGON_OFFSET_POINT
public static final int GL_POLYGON_OFFSET_POINTpolygon_offset- See Also:
-
GL_POLYGON_OFFSET_LINE
public static final int GL_POLYGON_OFFSET_LINEpolygon_offset- See Also:
-
GL_POLYGON_OFFSET_FILL
public static final int GL_POLYGON_OFFSET_FILLpolygon_offset- See Also:
-
GL_R3_G3_B2
public static final int GL_R3_G3_B2texture- See Also:
-
GL_RGB4
public static final int GL_RGB4texture- See Also:
-
GL_RGB5
public static final int GL_RGB5texture- See Also:
-
GL_RGB8
public static final int GL_RGB8texture- See Also:
-
GL_RGB10
public static final int GL_RGB10texture- See Also:
-
GL_RGB12
public static final int GL_RGB12texture- See Also:
-
GL_RGB16
public static final int GL_RGB16texture- See Also:
-
GL_RGBA2
public static final int GL_RGBA2texture- See Also:
-
GL_RGBA4
public static final int GL_RGBA4texture- See Also:
-
GL_RGB5_A1
public static final int GL_RGB5_A1texture- See Also:
-
GL_RGBA8
public static final int GL_RGBA8texture- See Also:
-
GL_RGB10_A2
public static final int GL_RGB10_A2texture- See Also:
-
GL_RGBA12
public static final int GL_RGBA12texture- See Also:
-
GL_RGBA16
public static final int GL_RGBA16texture- See Also:
-
GL_TEXTURE_RED_SIZE
public static final int GL_TEXTURE_RED_SIZEtexture- See Also:
-
GL_TEXTURE_GREEN_SIZE
public static final int GL_TEXTURE_GREEN_SIZEtexture- See Also:
-
GL_TEXTURE_BLUE_SIZE
public static final int GL_TEXTURE_BLUE_SIZEtexture- See Also:
-
GL_TEXTURE_ALPHA_SIZE
public static final int GL_TEXTURE_ALPHA_SIZEtexture- See Also:
-
GL_PROXY_TEXTURE_1D
public static final int GL_PROXY_TEXTURE_1Dtexture- See Also:
-
GL_PROXY_TEXTURE_2D
public static final int GL_PROXY_TEXTURE_2Dtexture- See Also:
-
GL_TEXTURE_BINDING_1D
public static final int GL_TEXTURE_BINDING_1Dtexture_object- See Also:
-
GL_TEXTURE_BINDING_2D
public static final int GL_TEXTURE_BINDING_2Dtexture_object- See Also:
-
GL_VERTEX_ARRAY
public static final int GL_VERTEX_ARRAYvertex_array- See Also:
-
-
Method Details
-
glEnable
public static void glEnable(int target) Enables the specified OpenGL state.- Parameters:
target
- the OpenGL state to enable- See Also:
-
glDisable
public static void glDisable(int target) Disables the specified OpenGL state.- Parameters:
target
- the OpenGL state to disable- See Also:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
glDrawElements
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:
-
glDrawElements
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:
-
glDrawElements
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:
-
glDrawElements
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:
-
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:
-
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:
-
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
. -
nglGenTextures
public static void nglGenTextures(int n, long textures) Unsafe version of:GenTextures
- Parameters:
n
- the number of textures to create
-
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.- Parameters:
textures
- a scalar or buffer in which to place the returned texture names- See Also:
-
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:
-
nglDeleteTextures
public static void nglDeleteTextures(int n, long textures) Unsafe version of:DeleteTextures
- Parameters:
n
- the number of texture names in thetextures
parameter
-
glDeleteTextures
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:
-
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:
-
nglGetBooleanv
public static void nglGetBooleanv(int pname, long params) Unsafe version of:GetBooleanv
-
glGetBooleanv
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:
-
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:
-
nglGetFloatv
public static void nglGetFloatv(int pname, long params) Unsafe version of:GetFloatv
-
glGetFloatv
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:
-
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:
-
nglGetIntegerv
public static void nglGetIntegerv(int pname, long params) Unsafe version of:GetIntegerv
-
glGetIntegerv
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:
-
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:
-
nglGetDoublev
public static void nglGetDoublev(int pname, long params) Unsafe version of:GetDoublev
-
glGetDoublev
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:
-
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:
-
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:
-
nglGetPointerv
public static void nglGetPointerv(int pname, long params) Unsafe version of:GetPointerv
-
glGetPointerv
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:
-
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:
-
nglGetString
public static long nglGetString(int name) Unsafe version of:GetString
-
glGetString
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:
-
nglGetTexImage
public static void nglGetTexImage(int tex, int level, int format, int type, long pixels) Unsafe version of:GetTexImage
-
glGetTexImage
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:
-
glGetTexImage
public static void glGetTexImage(int tex, int level, int format, int type, long 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:
-
glGetTexImage
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:
-
glGetTexImage
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:
-
glGetTexImage
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:
-
glGetTexImage
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:
-
nglGetTexLevelParameteriv
public static void nglGetTexLevelParameteriv(int target, int level, int pname, long params) Unsafe version of:GetTexLevelParameteriv
-
glGetTexLevelParameteriv
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:
-
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:
-
nglGetTexLevelParameterfv
public static void nglGetTexLevelParameterfv(int target, int level, int pname, long params) Unsafe version of:GetTexLevelParameterfv
-
glGetTexLevelParameterfv
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:
-
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:
-
nglGetTexParameteriv
public static void nglGetTexParameteriv(int target, int pname, long params) Unsafe version of:GetTexParameteriv
-
glGetTexParameteriv
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:
-
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:
-
nglGetTexParameterfv
public static void nglGetTexParameterfv(int target, int pname, long params) Unsafe version of:GetTexParameterfv
-
glGetTexParameterfv
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:
-
glGetTexParameterf
public static float glGetTexParameterf(int target, int pname) Float version ofGetTexParameteriv
.- Parameters:
target
- the texture targetpname
- the parameter to query- See Also:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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. -
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:
-
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:
-
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, 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. 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:
-
glReadPixels
public 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. 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:
-
glReadPixels
public static void glReadPixels(int x, int y, int width, int height, int format, int type, 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. 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:
-
glReadPixels
public static void glReadPixels(int x, int y, int width, int height, int format, int type, 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. 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:
-
glReadPixels
public static void glReadPixels(int x, int y, int width, int height, int format, int type, 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:
-
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:
-
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:
-
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:
-
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 ByteBuffer 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:
-
glTexImage1D
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, long 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:
-
glTexImage1D
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable ShortBuffer 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:
-
glTexImage1D
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable IntBuffer 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:
-
glTexImage1D
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable FloatBuffer 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:
-
glTexImage1D
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable 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:
-
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 ByteBuffer 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:
-
glTexImage2D
public 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.- 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:
-
glTexImage2D
public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable ShortBuffer 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:
-
glTexImage2D
public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable IntBuffer 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:
-
glTexImage2D
public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable FloatBuffer 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:
-
glTexImage2D
public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable 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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
nglTexParameteriv
public static void nglTexParameteriv(int target, int pname, long params) Unsafe version of:TexParameteriv
-
glTexParameteriv
Pointer version ofTexParameteri
.- Parameters:
target
- the texture targetpname
- the parameter to setparams
- the parameter value- See Also:
-
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:
-
nglTexParameterfv
public static void nglTexParameterfv(int target, int pname, long params) Unsafe version of:TexParameterfv
-
glTexParameterfv
Pointer version ofTexParameterf
.- Parameters:
target
- the texture targetpname
- the parameter to setparams
- the parameter value- See Also:
-
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, ByteBuffer 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:
-
glTexSubImage1D
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, long 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:
-
glTexSubImage1D
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, ShortBuffer 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:
-
glTexSubImage1D
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, IntBuffer 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:
-
glTexSubImage1D
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, FloatBuffer 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:
-
glTexSubImage1D
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, 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:
-
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, ByteBuffer 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:
-
glTexSubImage2D
public 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. 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:
-
glTexSubImage2D
public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, ShortBuffer 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:
-
glTexSubImage2D
public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, IntBuffer 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:
-
glTexSubImage2D
public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, FloatBuffer 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:
-
glTexSubImage2D
public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, 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:
-
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:
-
glGenTextures
public static void glGenTextures(int[] textures) Array version of:GenTextures
- See Also:
-
glDeleteTextures
public static void glDeleteTextures(int[] textures) Array version of:DeleteTextures
- See Also:
-
glGetFloatv
public static void glGetFloatv(int pname, float[] params) Array version of:GetFloatv
- See Also:
-
glGetIntegerv
public static void glGetIntegerv(int pname, int[] params) Array version of:GetIntegerv
- See Also:
-
glGetDoublev
public static void glGetDoublev(int pname, double[] params) Array version of:GetDoublev
- See Also:
-
glGetTexImage
public static void glGetTexImage(int tex, int level, int format, int type, short[] pixels) Array version of:GetTexImage
- See Also:
-
glGetTexImage
public static void glGetTexImage(int tex, int level, int format, int type, int[] pixels) Array version of:GetTexImage
- See Also:
-
glGetTexImage
public static void glGetTexImage(int tex, int level, int format, int type, float[] pixels) Array version of:GetTexImage
- See Also:
-
glGetTexImage
public static void glGetTexImage(int tex, int level, int format, int type, double[] pixels) Array version of:GetTexImage
- See Also:
-
glGetTexLevelParameteriv
public static void glGetTexLevelParameteriv(int target, int level, int pname, int[] params) Array version of:GetTexLevelParameteriv
- See Also:
-
glGetTexLevelParameterfv
public static void glGetTexLevelParameterfv(int target, int level, int pname, float[] params) Array version of:GetTexLevelParameterfv
- See Also:
-
glGetTexParameteriv
public static void glGetTexParameteriv(int target, int pname, int[] params) Array version of:GetTexParameteriv
- See Also:
-
glGetTexParameterfv
public static void glGetTexParameterfv(int target, int pname, float[] params) Array version of:GetTexParameterfv
- See Also:
-
glReadPixels
public static void glReadPixels(int x, int y, int width, int height, int format, int type, short[] pixels) Array version of:ReadPixels
- See Also:
-
glReadPixels
public static void glReadPixels(int x, int y, int width, int height, int format, int type, int[] pixels) Array version of:ReadPixels
- See Also:
-
glReadPixels
public static void glReadPixels(int x, int y, int width, int height, int format, int type, float[] pixels) Array version of:ReadPixels
- See Also:
-
glTexImage1D
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable short[] pixels) Array version of:TexImage1D
- See Also:
-
glTexImage1D
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable int[] pixels) Array version of:TexImage1D
- See Also:
-
glTexImage1D
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable float[] pixels) Array version of:TexImage1D
- See Also:
-
glTexImage1D
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:
-
glTexImage2D
public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable short[] pixels) Array version of:TexImage2D
- See Also:
-
glTexImage2D
public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable int[] pixels) Array version of:TexImage2D
- See Also:
-
glTexImage2D
public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable float[] pixels) Array version of:TexImage2D
- See Also:
-
glTexImage2D
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:
-
glTexParameteriv
public static void glTexParameteriv(int target, int pname, int[] params) Array version of:TexParameteriv
- See Also:
-
glTexParameterfv
public static void glTexParameterfv(int target, int pname, float[] params) Array version of:TexParameterfv
- See Also:
-
glTexSubImage1D
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, short[] pixels) Array version of:TexSubImage1D
- See Also:
-
glTexSubImage1D
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, int[] pixels) Array version of:TexSubImage1D
- See Also:
-
glTexSubImage1D
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, float[] pixels) Array version of:TexSubImage1D
- See Also:
-
glTexSubImage1D
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, double[] pixels) Array version of:TexSubImage1D
- See Also:
-
glTexSubImage2D
public 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
- See Also:
-
glTexSubImage2D
public 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
- See Also:
-
glTexSubImage2D
public 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
- See Also:
-
glTexSubImage2D
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:
-