Class GL11C
- Direct Known Subclasses:
GL12C
Extensions promoted to core in this release:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intPixelFormatstatic final intAlphaFunctionstatic final intLogicOpstatic final intLogicOpstatic final intLogicOpstatic final intDrawBufferModestatic final intDrawBufferModestatic final intDrawBufferModestatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intPixelFormatstatic final intDataTypestatic final intFrontFaceDirectionstatic final intLogicOpstatic final intPixelCopyTypestatic final intAttribMaskstatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intLogicOpstatic final intLogicOpstatic final intGetTargetstatic final intGetTargetstatic final intFrontFaceDirectionstatic final intStencilOpstatic final intPixelCopyTypestatic final intAttribMaskstatic final intGetTargetstatic final intPixelFormatstatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intHintModestatic final intDataTypestatic final intGetTargetstatic final intGetTargetstatic final intBlendingFactorDeststatic final intBlendingFactorSrcstatic final intAlphaFunctionstatic final intLogicOpstatic final intStringNamestatic final intBooleanstatic final intHintModestatic final intPolygonModestatic final intDataTypestatic final intDrawBufferModestatic final intDrawBufferModestatic final intGetTargetstatic final intDrawBufferModestatic final intDrawBufferModestatic final intAlphaFunctionstatic final intAlphaFunctionstatic final intPixelFormatstatic final intStencilOpstatic final intDataTypestatic final intErrorCodestatic final intErrorCodestatic final intErrorCodestatic final intLogicOpstatic final intStencilOpstatic final intDrawBufferModestatic final intAlphaFunctionstatic final intAlphaFunctionstatic final intPolygonModestatic final intBeginModestatic final intGetTargetstatic final intGetTargetstatic final intBeginModestatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intTextureMagFilterstatic final intTextureMinFilterstatic final intTextureMinFilterstatic final intBeginModestatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intLogicOpstatic final intTextureMagFilterstatic final intTextureMinFilterstatic final intTextureMinFilterstatic final intAlphaFunctionstatic final intHintModestatic final intErrorCodestatic final intDrawBufferModestatic final intLogicOpstatic final intLogicOpstatic final intAlphaFunctionstatic final intBlendingFactorDeststatic final intBlendingFactorDeststatic final intBlendingFactorSrcstatic final intBlendingFactorDeststatic final intBlendingFactorDeststatic final intLogicOpstatic final intLogicOpstatic final intLogicOpstatic final intErrorCodestatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intPolygonModestatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intBeginModestatic final intGetTargetstatic final intpolygon_offsetstatic final intpolygon_offsetstatic final intpolygon_offsetstatic final intpolygon_offsetstatic final intpolygon_offsetstatic final intGetTargetstatic final intGetTargetstatic final inttexturestatic final inttexturestatic final intBeginModestatic final inttexturestatic final intGetTargetstatic final intPixelFormatstatic final intStringNamestatic final intTextureWrapModestatic final intStencilOpstatic final intPixelFormatstatic final inttexturestatic final inttexturestatic final inttexturestatic final inttexturestatic final inttexturestatic final inttexturestatic final inttexturestatic final inttexturestatic final intPixelFormatstatic final inttexturestatic final inttexturestatic final inttexturestatic final inttexturestatic final inttexturestatic final intDrawBufferModestatic final intGetTargetstatic final intGetTargetstatic final intLogicOpstatic final intDataTypestatic final intBlendingFactorDeststatic final intBlendingFactorSrcstatic final intBlendingFactorDeststatic final intErrorCodestatic final intErrorCodestatic final intPixelCopyTypestatic final intAttribMaskstatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intPixelFormatstatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intToken accepted or provided by theidentifierparameters of ObjectLabel and GetObjectLabel.static final intGetTargetstatic final intGetTargetstatic final inttexturestatic final inttexture_objectstatic final inttexture_objectstatic final inttexturestatic final intGetTextureParameterstatic final inttexturestatic final intGetTextureParameterstatic final intGetTextureParameterstatic final intTextureParameterNamestatic final intTextureParameterNamestatic final inttexturestatic final intGetTextureParameterstatic final intTextureParameterNamestatic final intTextureParameterNamestatic final intBeginModestatic final intBeginModestatic final intBeginModestatic final intBooleanstatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intGetTargetstatic final intDataTypestatic final intDataTypestatic final intDataTypestatic final intStringNamestatic final intStringNamestatic final intvertex_arraystatic final intGetTargetstatic final intLogicOpstatic final intBlendingFactorDest -
Method Summary
Modifier and TypeMethodDescriptionstatic voidglBindTexture(int target, int texture) Binds the a texture to a texture target.static voidglBlendFunc(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 voidglClear(int mask) Sets portions of every pixel in a particular buffer to the same value.static voidglClearColor(float red, float green, float blue, float alpha) Sets the clear value for fixed-point and floating-point color buffers in RGBA mode.static voidglClearDepth(double depth) Sets the depth value used when clearing the depth buffer.static voidglClearStencil(int s) Sets the value to which to clear the stencil buffer.static voidglColorMask(boolean red, boolean green, boolean blue, boolean alpha) Masks the writing of R, G, B and A values to all draw buffers.static voidglCopyTexImage1D(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 voidglCopyTexImage2D(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 voidglCopyTexSubImage1D(int target, int level, int xoffset, int x, int y, int width) Respecifies a rectangular subregion of an existing texel array.static voidglCopyTexSubImage2D(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 voidglCullFace(int mode) Specifies which polygon faces are culled ifCULL_FACEis enabled.static voidglDeleteTextures(int texture) Deletes texture objects.static voidglDeleteTextures(int[] textures) Array version of:DeleteTexturesstatic voidglDeleteTextures(IntBuffer textures) Deletes texture objects.static voidglDepthFunc(int func) Specifies the comparison that takes place during the depth buffer test (whenDEPTH_TESTis enabled).static voidglDepthMask(boolean flag) Masks the writing of depth values to the depth buffer.static voidglDepthRange(double zNear, double zFar) Sets the depth range for all viewports to the same values.static voidglDisable(int target) Disables the specified OpenGL state.static voidglDrawArrays(int mode, int first, int count) Constructs a sequence of geometric primitives by successively transferring elements forcountvertices.static voidglDrawBuffer(int buf) Defines the color buffer to which fragment color zero is written.static voidglDrawElements(int mode, int count, int type, long indices) Constructs a sequence of geometric primitives by successively transferring elements forcountvertices to the GL.static voidglDrawElements(int mode, int type, ByteBuffer indices) Constructs a sequence of geometric primitives by successively transferring elements forcountvertices to the GL.static voidglDrawElements(int mode, ByteBuffer indices) Constructs a sequence of geometric primitives by successively transferring elements forcountvertices to the GL.static voidglDrawElements(int mode, IntBuffer indices) Constructs a sequence of geometric primitives by successively transferring elements forcountvertices to the GL.static voidglDrawElements(int mode, ShortBuffer indices) Constructs a sequence of geometric primitives by successively transferring elements forcountvertices to the GL.static voidglEnable(int target) Enables the specified OpenGL state.static voidglFinish()Forces all previously issued GL commands to complete.static voidglFlush()Causes all previously issued GL commands to complete in finite time (although such commands may still be executing whenFlushreturns).static voidglFrontFace(int dir) The first step of polygon rasterization is to determine if the polygon is back-facing or front-facing.static intReturns n previously unused texture names in textures.static voidglGenTextures(int[] textures) Array version of:GenTexturesstatic voidglGenTextures(IntBuffer textures) Returns n previously unused texture names in textures.static booleanglGetBoolean(int pname) Returns the current boolean value of the specified state variable.static voidglGetBooleanv(int pname, ByteBuffer params) Returns the current boolean value of the specified state variable.static doubleglGetDouble(int pname) Returns the current double value of the specified state variable.static voidglGetDoublev(int pname, double[] params) Array version of:GetDoublevstatic voidglGetDoublev(int pname, DoubleBuffer params) Returns the current double value of the specified state variable.static intReturns error information.static floatglGetFloat(int pname) Returns the current float value of the specified state variable.static voidglGetFloatv(int pname, float[] params) Array version of:GetFloatvstatic voidglGetFloatv(int pname, FloatBuffer params) Returns the current float value of the specified state variable.static intglGetInteger(int pname) Returns the current integer value of the specified state variable.static voidglGetIntegerv(int pname, int[] params) Array version of:GetIntegervstatic voidglGetIntegerv(int pname, IntBuffer params) Returns the current integer value of the specified state variable.static longglGetPointer(int pname) Returns a pointer in the current GL context.static voidglGetPointerv(int pname, org.lwjgl.PointerBuffer params) Returns a pointer in the current GL context.static StringglGetString(int name) Return strings describing properties of the current GL context.static voidglGetTexImage(int tex, int level, int format, int type, double[] pixels) Array version of:GetTexImagestatic voidglGetTexImage(int tex, int level, int format, int type, float[] pixels) Array version of:GetTexImagestatic voidglGetTexImage(int tex, int level, int format, int type, int[] pixels) Array version of:GetTexImagestatic voidglGetTexImage(int tex, int level, int format, int type, long pixels) Obtains texture images.static voidglGetTexImage(int tex, int level, int format, int type, short[] pixels) Array version of:GetTexImagestatic voidglGetTexImage(int tex, int level, int format, int type, ByteBuffer pixels) Obtains texture images.static voidglGetTexImage(int tex, int level, int format, int type, DoubleBuffer pixels) Obtains texture images.static voidglGetTexImage(int tex, int level, int format, int type, FloatBuffer pixels) Obtains texture images.static voidglGetTexImage(int tex, int level, int format, int type, IntBuffer pixels) Obtains texture images.static voidglGetTexImage(int tex, int level, int format, int type, ShortBuffer pixels) Obtains texture images.static floatglGetTexLevelParameterf(int target, int level, int pname) Float version ofGetTexLevelParameteriv.static voidglGetTexLevelParameterfv(int target, int level, int pname, float[] params) Array version of:GetTexLevelParameterfvstatic voidglGetTexLevelParameterfv(int target, int level, int pname, FloatBuffer params) Float version ofGetTexLevelParameteriv.static intglGetTexLevelParameteri(int target, int level, int pname) Places integer information about texture image parameterpnamefor level-of-detaillevelof the specifiedtargetintoparams.static voidglGetTexLevelParameteriv(int target, int level, int pname, int[] params) Array version of:GetTexLevelParameterivstatic voidglGetTexLevelParameteriv(int target, int level, int pname, IntBuffer params) Places integer information about texture image parameterpnamefor level-of-detaillevelof the specifiedtargetintoparams.static floatglGetTexParameterf(int target, int pname) Float version ofGetTexParameteriv.static voidglGetTexParameterfv(int target, int pname, float[] params) Array version of:GetTexParameterfvstatic voidglGetTexParameterfv(int target, int pname, FloatBuffer params) Float version ofGetTexParameteriv.static intglGetTexParameteri(int target, int pname) Place integer information about texture parameterpnamefor the specifiedtargetintoparams.static voidglGetTexParameteriv(int target, int pname, int[] params) Array version of:GetTexParameterivstatic voidglGetTexParameteriv(int target, int pname, IntBuffer params) Place integer information about texture parameterpnamefor the specifiedtargetintoparams.static voidglHint(int target, int hint) Certain aspects of GL behavior, when there is room for variation, may be controlled with this function.static booleanglIsEnabled(int cap) Determines ifcapis currently enabled (as withEnable) or disabled.static booleanglIsTexture(int texture) Returns true iftextureis the name of a texture object.static voidglLineWidth(float width) Sets the width of rasterized line segments.static voidglLogicOp(int op) Sets the logical framebuffer operation.static voidglPixelStoref(int pname, float param) Float version ofPixelStorei.static voidglPixelStorei(int pname, int param) Sets the integer value of a pixel store parameter.static voidglPointSize(float size) Controls the rasterization of points if no vertex, tessellation control, tessellation evaluation, or geometry shader is active.static voidglPolygonMode(int face, int mode) Controls the interpretation of polygons for rasterization.static voidglPolygonOffset(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 voidglReadBuffer(int src) Defines the color buffer from which values are obtained.static voidglReadPixels(int x, int y, int width, int height, int format, int type, float[] pixels) Array version of:ReadPixelsstatic voidglReadPixels(int x, int y, int width, int height, int format, int type, int[] pixels) Array version of:ReadPixelsstatic voidglReadPixels(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 < widthand0 <= j < height; this pixel is said to be the ith pixel in the jth row.static voidglReadPixels(int x, int y, int width, int height, int format, int type, short[] pixels) Array version of:ReadPixelsstatic voidglReadPixels(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 < widthand0 <= j < height; this pixel is said to be the ith pixel in the jth row.static voidglReadPixels(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 < widthand0 <= j < height; this pixel is said to be the ith pixel in the jth row.static voidglReadPixels(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 < widthand0 <= j < height; this pixel is said to be the ith pixel in the jth row.static voidglReadPixels(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 < widthand0 <= j < height; this pixel is said to be the ith pixel in the jth row.static voidglScissor(int x, int y, int width, int height) Defines the scissor rectangle for all viewports.static voidglStencilFunc(int func, int ref, int mask) Controls the stencil test.static voidglStencilMask(int mask) Masks the writing of particular bits into the stencil plans.static voidglStencilOp(int sfail, int dpfail, int dppass) Indicates what happens to the stored stencil value if this or certain subsequent tests fail or pass.static voidglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, double[] pixels) Array version of:TexImage1Dstatic voidglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, float[] pixels) Array version of:TexImage1Dstatic voidglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, int[] pixels) Array version of:TexImage1Dstatic voidglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, long pixels) One-dimensional version ofTexImage2D}.static voidglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, short[] pixels) Array version of:TexImage1Dstatic voidglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, ByteBuffer pixels) One-dimensional version ofTexImage2D}.static voidglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, DoubleBuffer pixels) One-dimensional version ofTexImage2D}.static voidglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, FloatBuffer pixels) One-dimensional version ofTexImage2D}.static voidglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, IntBuffer pixels) One-dimensional version ofTexImage2D}.static voidglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, ShortBuffer pixels) One-dimensional version ofTexImage2D}.static voidglTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, double[] pixels) Array version of:TexImage2Dstatic voidglTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, float[] pixels) Array version of:TexImage2Dstatic voidglTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, int[] pixels) Array version of:TexImage2Dstatic voidglTexImage2D(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 voidglTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, short[] pixels) Array version of:TexImage2Dstatic voidglTexImage2D(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 voidglTexImage2D(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 voidglTexImage2D(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 voidglTexImage2D(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 voidglTexImage2D(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 voidglTexParameterf(int target, int pname, float param) Float version ofTexParameteri.static voidglTexParameterfv(int target, int pname, float[] params) Array version of:TexParameterfvstatic voidglTexParameterfv(int target, int pname, FloatBuffer params) Pointer version ofTexParameterf.static voidglTexParameteri(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 voidglTexParameteriv(int target, int pname, int[] params) Array version of:TexParameterivstatic voidglTexParameteriv(int target, int pname, IntBuffer params) Pointer version ofTexParameteri.static voidglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, double[] pixels) Array version of:TexSubImage1Dstatic voidglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, float[] pixels) Array version of:TexSubImage1Dstatic voidglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, int[] pixels) Array version of:TexSubImage1Dstatic voidglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, long pixels) One-dimensional version ofTexSubImage2D.static voidglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, short[] pixels) Array version of:TexSubImage1Dstatic voidglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, ByteBuffer pixels) One-dimensional version ofTexSubImage2D.static voidglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, DoubleBuffer pixels) One-dimensional version ofTexSubImage2D.static voidglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, FloatBuffer pixels) One-dimensional version ofTexSubImage2D.static voidglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, IntBuffer pixels) One-dimensional version ofTexSubImage2D.static voidglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, ShortBuffer pixels) One-dimensional version ofTexSubImage2D.static voidglTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, double[] pixels) Array version of:TexSubImage2Dstatic voidglTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, float[] pixels) Array version of:TexSubImage2Dstatic voidglTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, int[] pixels) Array version of:TexSubImage2Dstatic voidglTexSubImage2D(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 voidglTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, short[] pixels) Array version of:TexSubImage2Dstatic voidglTexSubImage2D(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 voidglTexSubImage2D(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 voidglTexSubImage2D(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 voidglTexSubImage2D(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 voidglTexSubImage2D(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 voidglViewport(int x, int y, int w, int h) Specifies the viewport transformation parameters for all viewports.static voidnglDeleteTextures(int n, long textures) Unsafe version of:DeleteTexturesstatic voidnglDrawElements(int mode, int count, int type, long indices) Unsafe version of:DrawElementsstatic voidnglGenTextures(int n, long textures) Unsafe version of:GenTexturesstatic voidnglGetBooleanv(int pname, long params) Unsafe version of:GetBooleanvstatic voidnglGetDoublev(int pname, long params) Unsafe version of:GetDoublevstatic voidnglGetFloatv(int pname, long params) Unsafe version of:GetFloatvstatic voidnglGetIntegerv(int pname, long params) Unsafe version of:GetIntegervstatic voidnglGetPointerv(int pname, long params) Unsafe version of:GetPointervstatic longnglGetString(int name) Unsafe version of:GetStringstatic voidnglGetTexImage(int tex, int level, int format, int type, long pixels) Unsafe version of:GetTexImagestatic voidnglGetTexLevelParameterfv(int target, int level, int pname, long params) Unsafe version of:GetTexLevelParameterfvstatic voidnglGetTexLevelParameteriv(int target, int level, int pname, long params) Unsafe version of:GetTexLevelParameterivstatic voidnglGetTexParameterfv(int target, int pname, long params) Unsafe version of:GetTexParameterfvstatic voidnglGetTexParameteriv(int target, int pname, long params) Unsafe version of:GetTexParameterivstatic voidnglReadPixels(int x, int y, int width, int height, int format, int type, long pixels) Unsafe version of:ReadPixelsstatic voidnglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, long pixels) Unsafe version of:TexImage1Dstatic voidnglTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, long pixels) Unsafe version of:TexImage2Dstatic voidnglTexParameterfv(int target, int pname, long params) Unsafe version of:TexParameterfvstatic voidnglTexParameteriv(int target, int pname, long params) Unsafe version of:TexParameterivstatic voidnglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, long pixels) Unsafe version of:TexSubImage1Dstatic voidnglTexSubImage2D(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 theidentifierparameters 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_1DTEXTURE_2DTEXTURE_1D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPTEXTURE_3DTEXTURE_2D_ARRAYTEXTURE_CUBE_MAP_ARRAYTEXTURE_BUFFERTEXTURE_2D_MULTISAMPLETEXTURE_2D_MULTISAMPLE_ARRAYtexture- 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_BITDEPTH_BUFFER_BITSTENCIL_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,depthis 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.sis 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_FACEis enabled. Front-facing polygons are rasterized if either culling is disabled or the CullFace mode isBACKwhile 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:FRONTBACKFRONT_AND_BACK- See Also:
-
glDepthFunc
public static void glDepthFunc(int func) Specifies the comparison that takes place during the depth buffer test (whenDEPTH_TESTis 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 forcountvertices. Elementsfirstthroughfirst + count – 1of 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 afterfirstto 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
bufdepend on whether the GL is using the default framebuffer (i.e.,DRAW_FRAMEBUFFER_BINDINGis zero), or a framebuffer object (i.e.,DRAW_FRAMEBUFFER_BINDINGis non-zero). In the initial state, the GL is bound to the default framebuffer.- Parameters:
buf- the color buffer to draw to. One of:NONEFRONT_LEFTFRONT_RIGHTBACK_LEFTBACK_RIGHTFRONTBACKLEFTRIGHTFRONT_AND_BACKCOLOR_ATTACHMENT0GL30.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_BYTEUNSIGNED_SHORTUNSIGNED_INT
-
glDrawElements
public static void glDrawElements(int mode, int count, int type, long indices) Constructs a sequence of geometric primitives by successively transferring elements forcountvertices to the GL. The ith element transferred byDrawElementswill 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:POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLESLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHEScount- the number of vertices to transfer to the GLtype- indicates the type of index values inindices. One of:UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INTindices- the index values- See Also:
-
glDrawElements
Constructs a sequence of geometric primitives by successively transferring elements forcountvertices to the GL. The ith element transferred byDrawElementswill 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:POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLESLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHEStype- indicates the type of index values inindices. One of:UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INTindices- the index values- See Also:
-
glDrawElements
Constructs a sequence of geometric primitives by successively transferring elements forcountvertices to the GL. The ith element transferred byDrawElementswill 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:POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLESLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESindices- the index values- See Also:
-
glDrawElements
Constructs a sequence of geometric primitives by successively transferring elements forcountvertices to the GL. The ith element transferred byDrawElementswill 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:POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLESLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESindices- the index values- See Also:
-
glDrawElements
Constructs a sequence of geometric primitives by successively transferring elements forcountvertices to the GL. The ith element transferred byDrawElementswill 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:POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLESLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESindices- the index values- See Also:
-
glFinish
public static void glFinish()Forces all previously issued GL commands to complete.Finishdoes 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 whenFlushreturns).- 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 thetexturesparameter
-
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 ofBindTextureis deleted, it is as thoughBindTexturehad 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
GenTexturesare marked as unused again. Unused names in textures are silently ignored, as is the name zero.- Parameters:
textures- containsnnames 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 ofBindTextureis deleted, it is as thoughBindTexturehad 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
GenTexturesare 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
paramshas 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
paramshas 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
paramshas 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
paramshas 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
paramshas 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
paramshas 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
paramshas 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
paramshas 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
GetErroris called, the code is returned and the flag is cleared, so that a further error will again record its code. If a call toGetErrorreturnsNO_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
public static void glGetPointerv(int pname, org.lwjgl.PointerBuffer params) Returns a pointer in the current GL context.- Parameters:
pname- the pointer to return. One of:DEBUG_CALLBACK_FUNCTIONDEBUG_CALLBACK_USER_PARAMparams- 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_FUNCTIONDEBUG_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:RENDERERVENDOREXTENSIONSVERSIONSHADING_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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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 parameterpnamefor level-of-detaillevelof the specifiedtargetintoparams.- 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 parameterpnamefor level-of-detaillevelof the specifiedtargetintoparams.- 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 parameterpnamefor the specifiedtargetintoparams.- Parameters:
target- the texture target. One of:TEXTURE_1DTEXTURE_2DTEXTURE_3DTEXTURE_1D_ARRAYTEXTURE_2D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPTEXTURE_CUBE_MAP_ARRAYTEXTURE_2D_MULTISAMPLETEXTURE_2D_MULTISAMPLE_ARRAYpname- 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 parameterpnamefor the specifiedtargetintoparams.- Parameters:
target- the texture target. One of:TEXTURE_1DTEXTURE_2DTEXTURE_3DTEXTURE_1D_ARRAYTEXTURE_2D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPTEXTURE_CUBE_MAP_ARRAYTEXTURE_2D_MULTISAMPLETEXTURE_2D_MULTISAMPLE_ARRAYpname- 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_HINTPOLYGON_SMOOTH_HINTTEXTURE_COMPRESSION_HINTFRAGMENT_SHADER_DERIVATIVE_HINThint- the behavior hint. One of:FASTESTNICESTDONT_CARE- See Also:
-
glIsEnabled
public static boolean glIsEnabled(int cap) Determines ifcapis currently enabled (as withEnable) or disabled.- Parameters:
cap- the enable state to query- See Also:
-
glIsTexture
public static boolean glIsTexture(int texture) Returns true iftextureis 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:CLEARANDAND_REVERSECOPYAND_INVERTEDNOOPXORORNOREQUIVINVERTOR_REVERSECOPY_INVERTEDOR_INVERTEDNANDSET- 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.FILLis 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 theFILLstate of PolygonMode. ForPOINTorLINE, 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.factorscales the maximum depth slope of the polygon, andunitsscales 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
srcdepend on whether the GL is using the default framebuffer (i.e.,DRAW_FRAMEBUFFER_BINDINGis zero), or a framebuffer object (i.e.,DRAW_FRAMEBUFFER_BINDINGis non-zero). In the initial state, the GL is bound to the default framebuffer.- Parameters:
src- the color buffer to read from. One of:NONEFRONT_LEFTFRONT_RIGHTBACK_LEFTBACK_RIGHTFRONTBACKLEFTRIGHTFRONT_AND_BACKCOLOR_ATTACHMENT0GL30.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 < widthand0 <= 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_BINDINGis zero, values are also undefined for individual pixels that are not owned by the current context. Otherwise,ReadPixelsobtains 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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 < widthand0 <= 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_BINDINGis zero, values are also undefined for individual pixels that are not owned by the current context. Otherwise,ReadPixelsobtains 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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 < widthand0 <= 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_BINDINGis zero, values are also undefined for individual pixels that are not owned by the current context. Otherwise,ReadPixelsobtains 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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 < widthand0 <= 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_BINDINGis zero, values are also undefined for individual pixels that are not owned by the current context. Otherwise,ReadPixelsobtains 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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 < widthand0 <= 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_BINDINGis zero, values are also undefined for individual pixels that are not owned by the current context. Otherwise,ReadPixelsobtains 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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 usingEnableorDisablewith the symbolic constantSCISSOR_TEST. When disabled, it is as if the scissor test always passes. When enabled, ifleft ≤ xw < left + widthandbottom ≤ yw < bottom + heightfor 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.refis an integer reference value that is used in the unsigned stencil comparison. Stencil comparison operations and queries ofrefclamp 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 ofmaskare 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_WRAPandDECR_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_1DPROXY_TEXTURE_1Dlevel- 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_1DPROXY_TEXTURE_1Dlevel- 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_1DPROXY_TEXTURE_1Dlevel- 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_1DPROXY_TEXTURE_1Dlevel- 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_1DPROXY_TEXTURE_1Dlevel- 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_1DPROXY_TEXTURE_1Dlevel- 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_2DTEXTURE_1D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPPROXY_TEXTURE_2DPROXY_TEXTURE_1D_ARRAYPROXY_TEXTURE_RECTANGLEPROXY_TEXTURE_CUBE_MAPlevel- 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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_2DTEXTURE_1D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPPROXY_TEXTURE_2DPROXY_TEXTURE_1D_ARRAYPROXY_TEXTURE_RECTANGLEPROXY_TEXTURE_CUBE_MAPlevel- 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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_2DTEXTURE_1D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPPROXY_TEXTURE_2DPROXY_TEXTURE_1D_ARRAYPROXY_TEXTURE_RECTANGLEPROXY_TEXTURE_CUBE_MAPlevel- 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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_2DTEXTURE_1D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPPROXY_TEXTURE_2DPROXY_TEXTURE_1D_ARRAYPROXY_TEXTURE_RECTANGLEPROXY_TEXTURE_CUBE_MAPlevel- 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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_2DTEXTURE_1D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPPROXY_TEXTURE_2DPROXY_TEXTURE_1D_ARRAYPROXY_TEXTURE_RECTANGLEPROXY_TEXTURE_CUBE_MAPlevel- 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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_2DTEXTURE_1D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPPROXY_TEXTURE_2DPROXY_TEXTURE_1D_ARRAYPROXY_TEXTURE_RECTANGLEPROXY_TEXTURE_CUBE_MAPlevel- 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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,CopyTexImage1Dis equivalent to callingCopyTexImage2Dwith 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_1Dlevel- the level-of-detail numberinternalFormat- the texture internal format. SeeTexImage2Dfor 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, andheightcorrespond 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
CopyPixelswith 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, andborderare 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_2DTEXTURE_1D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPlevel- the level-of-detail numberinternalFormat- the texture internal format. SeeTexImage2Dfor 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,widthorborderparameters of the specified texel array, nor is any change made to texel values outside the specified subregion. SeeCopyTexImage1Dfor more details.- Parameters:
target- the texture target. Must be:TEXTURE_1Dlevel- 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, orborderparameters of the specified texel array, nor is any change made to texel values outside the specified subregion. SeeCopyTexImage2Dfor more details.- Parameters:
target- the texture target. One of:TEXTURE_2DTEXTURE_1D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPlevel- 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_1DTEXTURE_2DTEXTURE_3DTEXTURE_1D_ARRAYTEXTURE_2D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPTEXTURE_CUBE_MAP_ARRAYTEXTURE_2D_MULTISAMPLETEXTURE_2D_MULTISAMPLE_ARRAYpname- 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_1Dlevel- the level-of-detail-numberxoffset- the left coordinate of the texel subregionwidth- the subregion widthformat- the pixel data format. One of:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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_1Dlevel- the level-of-detail-numberxoffset- the left coordinate of the texel subregionwidth- the subregion widthformat- the pixel data format. One of:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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_1Dlevel- the level-of-detail-numberxoffset- the left coordinate of the texel subregionwidth- the subregion widthformat- the pixel data format. One of:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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_1Dlevel- the level-of-detail-numberxoffset- the left coordinate of the texel subregionwidth- the subregion widthformat- the pixel data format. One of:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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_1Dlevel- the level-of-detail-numberxoffset- the left coordinate of the texel subregionwidth- the subregion widthformat- the pixel data format. One of:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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_1Dlevel- the level-of-detail-numberxoffset- the left coordinate of the texel subregionwidth- the subregion widthformat- the pixel data format. One of:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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_2DTEXTURE_1D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPlevel- 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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_2DTEXTURE_1D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPlevel- 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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_2DTEXTURE_1D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPlevel- 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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_2DTEXTURE_1D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPlevel- 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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_2DTEXTURE_1D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPlevel- 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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_2DTEXTURE_1D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPlevel- 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:REDGREENBLUEALPHARGRGBRGBABGRBGRARED_INTEGERGREEN_INTEGERBLUE_INTEGERALPHA_INTEGERRG_INTEGERRGB_INTEGERRGBA_INTEGERBGR_INTEGERBGRA_INTEGERSTENCIL_INDEXDEPTH_COMPONENTDEPTH_STENCILtype- 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 callingGetFloatvwith 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 callingGetFloatvwith 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,
wandhfor 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, thenwandhare 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:
-