Class GL11C
- java.lang.Object
-
- org.lwjgl.opengl.GL11C
-
- Direct Known Subclasses:
GL12C
public class GL11C extends java.lang.ObjectThe OpenGL functionality of a forward compatible context, up to version 1.1.Extensions promoted to core in this release:
-
-
Field Summary
Fields Modifier and Type Field Description static intGL_ALPHAPixelFormatstatic intGL_ALWAYSAlphaFunctionstatic intGL_AND
GL_AND_INVERTED
GL_AND_REVERSELogicOpstatic intGL_BACK
GL_BACK_LEFT
GL_BACK_RIGHTDrawBufferModestatic intGL_BLEND
GL_BLEND_DST
GL_BLEND_SRCGetTargetstatic intGL_BLUEPixelFormatstatic intGL_BYTEDataTypestatic intGL_CCWFrontFaceDirectionstatic intGL_CLEARLogicOpstatic intGL_COLORPixelCopyTypestatic intGL_COLOR_BUFFER_BITAttribMaskstatic intGL_COLOR_CLEAR_VALUE
GL_COLOR_LOGIC_OP
GL_COLOR_WRITEMASKGetTargetstatic intGL_COPY
GL_COPY_INVERTEDLogicOpstatic intGL_CULL_FACE
GL_CULL_FACE_MODEGetTargetstatic intGL_CWFrontFaceDirectionstatic intGL_DECRStencilOpstatic intGL_DEPTHPixelCopyTypestatic intGL_DEPTH_BUFFER_BITAttribMaskstatic intGL_DEPTH_CLEAR_VALUEGetTargetstatic intGL_DEPTH_COMPONENTPixelFormatstatic intGL_DEPTH_FUNC
GL_DEPTH_RANGE
GL_DEPTH_TEST
GL_DEPTH_WRITEMASK
GL_DITHERGetTargetstatic intGL_DONT_CAREHintModestatic intGL_DOUBLEDataTypestatic intGL_DOUBLEBUFFER
GL_DRAW_BUFFERGetTargetstatic intGL_DST_ALPHABlendingFactorDeststatic intGL_DST_COLORBlendingFactorSrcstatic intGL_EQUALAlphaFunctionstatic intGL_EQUIVLogicOpstatic intGL_EXTENSIONSStringNamestatic intGL_FALSEBooleanstatic intGL_FASTESTHintModestatic intGL_FILLPolygonModestatic intGL_FLOATDataTypestatic intGL_FRONT
GL_FRONT_AND_BACKDrawBufferModestatic intGL_FRONT_FACEGetTargetstatic intGL_FRONT_LEFT
GL_FRONT_RIGHTDrawBufferModestatic intGL_GEQUAL
GL_GREATERAlphaFunctionstatic intGL_GREENPixelFormatstatic intGL_INCRStencilOpstatic intGL_INTDataTypestatic intGL_INVALID_ENUM
GL_INVALID_OPERATION
GL_INVALID_VALUEErrorCodestatic intGL_INVERTLogicOpstatic intGL_KEEPStencilOpstatic intGL_LEFTDrawBufferModestatic intGL_LEQUAL
GL_LESSAlphaFunctionstatic intGL_LINEPolygonModestatic intGL_LINE_LOOPBeginModestatic intGL_LINE_SMOOTH
GL_LINE_SMOOTH_HINTGetTargetstatic intGL_LINE_STRIPBeginModestatic intGL_LINE_WIDTH
GL_LINE_WIDTH_GRANULARITY
GL_LINE_WIDTH_RANGEGetTargetstatic intGL_LINEARTextureMagFilterstatic intGL_LINEAR_MIPMAP_LINEAR
GL_LINEAR_MIPMAP_NEARESTTextureMinFilterstatic intGL_LINESBeginModestatic intGL_LOGIC_OP_MODE
GL_MAX_TEXTURE_SIZE
GL_MAX_VIEWPORT_DIMSGetTargetstatic intGL_NANDLogicOpstatic intGL_NEARESTTextureMagFilterstatic intGL_NEAREST_MIPMAP_LINEAR
GL_NEAREST_MIPMAP_NEARESTTextureMinFilterstatic intGL_NEVERAlphaFunctionstatic intGL_NICESTHintModestatic intGL_NO_ERRORErrorCodestatic intGL_NONEDrawBufferModestatic intGL_NOOP
GL_NORLogicOpstatic intGL_NOTEQUALAlphaFunctionstatic intGL_ONE
GL_ONE_MINUS_DST_ALPHABlendingFactorDeststatic intGL_ONE_MINUS_DST_COLORBlendingFactorSrcstatic intGL_ONE_MINUS_SRC_ALPHA
GL_ONE_MINUS_SRC_COLORBlendingFactorDeststatic intGL_OR
GL_OR_INVERTED
GL_OR_REVERSELogicOpstatic intGL_OUT_OF_MEMORYErrorCodestatic intGL_PACK_ALIGNMENT
GL_PACK_LSB_FIRST
GL_PACK_ROW_LENGTH
GL_PACK_SKIP_PIXELS
GL_PACK_SKIP_ROWS
GL_PACK_SWAP_BYTESGetTargetstatic intGL_POINTPolygonModestatic intGL_POINT_SIZE
GL_POINT_SIZE_GRANULARITY
GL_POINT_SIZE_RANGEGetTargetstatic intGL_POINTSBeginModestatic intGL_POLYGON_MODEGetTargetstatic intGL_POLYGON_OFFSET_FACTOR
GL_POLYGON_OFFSET_FILL
GL_POLYGON_OFFSET_LINE
GL_POLYGON_OFFSET_POINT
GL_POLYGON_OFFSET_UNITSpolygon_offsetstatic intGL_POLYGON_SMOOTH
GL_POLYGON_SMOOTH_HINTGetTargetstatic intGL_PROXY_TEXTURE_1D
GL_PROXY_TEXTURE_2Dtexturestatic intGL_QUADSBeginModestatic intGL_R3_G3_B2texturestatic intGL_READ_BUFFERGetTargetstatic intGL_REDPixelFormatstatic intGL_RENDERERStringNamestatic intGL_REPEATTextureWrapModestatic intGL_REPLACEStencilOpstatic intGL_RGBPixelFormatstatic intGL_RGB10
GL_RGB10_A2
GL_RGB12
GL_RGB16
GL_RGB4
GL_RGB5
GL_RGB5_A1
GL_RGB8texturestatic intGL_RGBAPixelFormatstatic intGL_RGBA12
GL_RGBA16
GL_RGBA2
GL_RGBA4
GL_RGBA8texturestatic intGL_RIGHTDrawBufferModestatic intGL_SCISSOR_BOX
GL_SCISSOR_TESTGetTargetstatic intGL_SETLogicOpstatic intGL_SHORTDataTypestatic intGL_SRC_ALPHABlendingFactorDeststatic intGL_SRC_ALPHA_SATURATEBlendingFactorSrcstatic intGL_SRC_COLORBlendingFactorDeststatic intGL_STACK_OVERFLOW
GL_STACK_UNDERFLOWErrorCodestatic intGL_STENCILPixelCopyTypestatic intGL_STENCIL_BUFFER_BITAttribMaskstatic intGL_STENCIL_CLEAR_VALUE
GL_STENCIL_FAIL
GL_STENCIL_FUNCGetTargetstatic intGL_STENCIL_INDEXPixelFormatstatic intGL_STENCIL_PASS_DEPTH_FAIL
GL_STENCIL_PASS_DEPTH_PASS
GL_STENCIL_REF
GL_STENCIL_TEST
GL_STENCIL_VALUE_MASK
GL_STENCIL_WRITEMASK
GL_STEREO
GL_SUBPIXEL_BITS
GL_TEXTURE_1D
GL_TEXTURE_2DGetTargetstatic intGL_TEXTURE_ALPHA_SIZEtexturestatic intGL_TEXTURE_BINDING_1D
GL_TEXTURE_BINDING_2Dtexture_objectstatic intGL_TEXTURE_BLUE_SIZEtexturestatic intGL_TEXTURE_BORDER_COLORGetTextureParameterstatic intGL_TEXTURE_GREEN_SIZEtexturestatic intGL_TEXTURE_HEIGHT
GL_TEXTURE_INTERNAL_FORMATGetTextureParameterstatic intGL_TEXTURE_MAG_FILTER
GL_TEXTURE_MIN_FILTERTextureParameterNamestatic intGL_TEXTURE_RED_SIZEtexturestatic intGL_TEXTURE_WIDTHGetTextureParameterstatic intGL_TEXTURE_WRAP_S
GL_TEXTURE_WRAP_TTextureParameterNamestatic intGL_TRIANGLE_FAN
GL_TRIANGLE_STRIP
GL_TRIANGLESBeginModestatic intGL_TRUEBooleanstatic intGL_UNPACK_ALIGNMENT
GL_UNPACK_LSB_FIRST
GL_UNPACK_ROW_LENGTH
GL_UNPACK_SKIP_PIXELS
GL_UNPACK_SKIP_ROWS
GL_UNPACK_SWAP_BYTESGetTargetstatic intGL_UNSIGNED_BYTE
GL_UNSIGNED_INT
GL_UNSIGNED_SHORTDataTypestatic intGL_VENDOR
GL_VERSIONStringNamestatic intGL_VERTEX_ARRAYvertex_arraystatic intGL_VIEWPORTGetTargetstatic intGL_XORLogicOpstatic intGL_ZEROBlendingFactorDest
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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(java.nio.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, java.nio.ByteBuffer indices)Constructs a sequence of geometric primitives by successively transferring elements forcountvertices to the GL.static voidglDrawElements(int mode, java.nio.ByteBuffer indices)Constructs a sequence of geometric primitives by successively transferring elements forcountvertices to the GL.static voidglDrawElements(int mode, java.nio.IntBuffer indices)Constructs a sequence of geometric primitives by successively transferring elements forcountvertices to the GL.static voidglDrawElements(int mode, java.nio.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 intglGenTextures()Returns n previously unused texture names in textures.static voidglGenTextures(int[] textures)Array version of:GenTexturesstatic voidglGenTextures(java.nio.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, java.nio.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, java.nio.DoubleBuffer params)Returns the current double value of the specified state variable.static intglGetError()Returns 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, java.nio.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, java.nio.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 java.lang.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, java.nio.ByteBuffer pixels)Obtains texture images.static voidglGetTexImage(int tex, int level, int format, int type, java.nio.DoubleBuffer pixels)Obtains texture images.static voidglGetTexImage(int tex, int level, int format, int type, java.nio.FloatBuffer pixels)Obtains texture images.static voidglGetTexImage(int tex, int level, int format, int type, java.nio.IntBuffer pixels)Obtains texture images.static voidglGetTexImage(int tex, int level, int format, int type, java.nio.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, java.nio.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, java.nio.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, java.nio.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, java.nio.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, java.nio.ByteBuffer pixels)ReadPixels obtains values from the selected read buffer from each pixel with lower left hand corner at(x + i, y + j)for0 <= i < 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, java.nio.FloatBuffer pixels)ReadPixels obtains values from the selected read buffer from each pixel with lower left hand corner at(x + i, y + j)for0 <= i < 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, java.nio.IntBuffer pixels)ReadPixels obtains values from the selected read buffer from each pixel with lower left hand corner at(x + i, y + j)for0 <= i < 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, java.nio.ShortBuffer pixels)ReadPixels obtains values from the selected read buffer from each pixel with lower left hand corner at(x + i, y + j)for0 <= i < 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, java.nio.ByteBuffer pixels)One-dimensional version ofTexImage2D}.static voidglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, java.nio.DoubleBuffer pixels)One-dimensional version ofTexImage2D}.static voidglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, java.nio.FloatBuffer pixels)One-dimensional version ofTexImage2D}.static voidglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, java.nio.IntBuffer pixels)One-dimensional version ofTexImage2D}.static voidglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, java.nio.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, java.nio.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, java.nio.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, java.nio.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, java.nio.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, java.nio.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, java.nio.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, java.nio.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, java.nio.ByteBuffer pixels)One-dimensional version ofTexSubImage2D.static voidglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, java.nio.DoubleBuffer pixels)One-dimensional version ofTexSubImage2D.static voidglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, java.nio.FloatBuffer pixels)One-dimensional version ofTexSubImage2D.static voidglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, java.nio.IntBuffer pixels)One-dimensional version ofTexSubImage2D.static voidglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, java.nio.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, java.nio.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, java.nio.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, java.nio.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, java.nio.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, java.nio.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 Detail
-
GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL, GL_GEQUAL, GL_ALWAYS
AlphaFunction
-
GL_DEPTH_BUFFER_BIT, GL_STENCIL_BUFFER_BIT, GL_COLOR_BUFFER_BIT
AttribMask
-
GL_POINTS, GL_LINES, GL_LINE_LOOP, GL_LINE_STRIP, GL_TRIANGLES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_QUADS
BeginMode
-
GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA
BlendingFactorDest
-
GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA_SATURATE
BlendingFactorSrc
-
GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, GL_DOUBLE
DataType
-
GL_NONE, GL_FRONT_LEFT, GL_FRONT_RIGHT, GL_BACK_LEFT, GL_BACK_RIGHT, GL_FRONT, GL_BACK, GL_LEFT, GL_RIGHT, GL_FRONT_AND_BACK
DrawBufferMode
-
GL_NO_ERROR, GL_INVALID_ENUM, GL_INVALID_VALUE, GL_INVALID_OPERATION, GL_STACK_OVERFLOW, GL_STACK_UNDERFLOW, GL_OUT_OF_MEMORY
ErrorCode
-
GL_POINT_SIZE, GL_POINT_SIZE_RANGE, GL_POINT_SIZE_GRANULARITY, GL_LINE_SMOOTH, GL_LINE_WIDTH, GL_LINE_WIDTH_RANGE, GL_LINE_WIDTH_GRANULARITY, GL_POLYGON_MODE, GL_POLYGON_SMOOTH, GL_CULL_FACE, GL_CULL_FACE_MODE, GL_FRONT_FACE, GL_DEPTH_RANGE, GL_DEPTH_TEST, GL_DEPTH_WRITEMASK, GL_DEPTH_CLEAR_VALUE, GL_DEPTH_FUNC, GL_STENCIL_TEST, GL_STENCIL_CLEAR_VALUE, GL_STENCIL_FUNC, GL_STENCIL_VALUE_MASK, GL_STENCIL_FAIL, GL_STENCIL_PASS_DEPTH_FAIL, GL_STENCIL_PASS_DEPTH_PASS, GL_STENCIL_REF, GL_STENCIL_WRITEMASK, GL_VIEWPORT, GL_DITHER, GL_BLEND_DST, GL_BLEND_SRC, GL_BLEND, GL_LOGIC_OP_MODE, GL_COLOR_LOGIC_OP, GL_DRAW_BUFFER, GL_READ_BUFFER, GL_SCISSOR_BOX, GL_SCISSOR_TEST, GL_COLOR_CLEAR_VALUE, GL_COLOR_WRITEMASK, GL_DOUBLEBUFFER, GL_STEREO, GL_LINE_SMOOTH_HINT, GL_POLYGON_SMOOTH_HINT, GL_UNPACK_SWAP_BYTES, GL_UNPACK_LSB_FIRST, GL_UNPACK_ROW_LENGTH, GL_UNPACK_SKIP_ROWS, GL_UNPACK_SKIP_PIXELS, GL_UNPACK_ALIGNMENT, GL_PACK_SWAP_BYTES, GL_PACK_LSB_FIRST, GL_PACK_ROW_LENGTH, GL_PACK_SKIP_ROWS, GL_PACK_SKIP_PIXELS, GL_PACK_ALIGNMENT, GL_MAX_TEXTURE_SIZE, GL_MAX_VIEWPORT_DIMS, GL_SUBPIXEL_BITS, GL_TEXTURE_1D, GL_TEXTURE_2D
GetTarget
-
GL_TEXTURE_WIDTH, GL_TEXTURE_HEIGHT, GL_TEXTURE_INTERNAL_FORMAT, GL_TEXTURE_BORDER_COLOR
GetTextureParameter
-
GL_DONT_CARE, GL_FASTEST, GL_NICEST
HintMode
-
GL_CLEAR, GL_AND, GL_AND_REVERSE, GL_COPY, GL_AND_INVERTED, GL_NOOP, GL_XOR, GL_OR, GL_NOR, GL_EQUIV, GL_INVERT, GL_OR_REVERSE, GL_COPY_INVERTED, GL_OR_INVERTED, GL_NAND, GL_SET
LogicOp
-
GL_COLOR, GL_DEPTH, GL_STENCIL
PixelCopyType
-
GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_RGBA
PixelFormat
-
GL_KEEP, GL_REPLACE, GL_INCR, GL_DECR
StencilOp
-
GL_VENDOR, GL_RENDERER, GL_VERSION, GL_EXTENSIONS
StringName
-
GL_NEAREST, GL_LINEAR
TextureMagFilter
-
GL_NEAREST_MIPMAP_NEAREST, GL_LINEAR_MIPMAP_NEAREST, GL_NEAREST_MIPMAP_LINEAR, GL_LINEAR_MIPMAP_LINEAR
TextureMinFilter
-
GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T
TextureParameterName
-
GL_REPEAT
TextureWrapMode
-
GL_POLYGON_OFFSET_FACTOR, GL_POLYGON_OFFSET_UNITS, GL_POLYGON_OFFSET_POINT, GL_POLYGON_OFFSET_LINE, GL_POLYGON_OFFSET_FILL
polygon_offset
-
GL_R3_G3_B2, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_TEXTURE_RED_SIZE, GL_TEXTURE_GREEN_SIZE, GL_TEXTURE_BLUE_SIZE, GL_TEXTURE_ALPHA_SIZE, GL_PROXY_TEXTURE_1D, GL_PROXY_TEXTURE_2D
texture
-
GL_TEXTURE_BINDING_1D, GL_TEXTURE_BINDING_2D
texture_object
-
GL_VERTEX_ARRAY
vertex_array
-
-
Method Detail
-
glEnable
public static void glEnable(int target)
Enables the specified OpenGL state.- Parameters:
target- the OpenGL state to enable- See Also:
- Reference Page
-
glDisable
public static void glDisable(int target)
Disables the specified OpenGL state.- Parameters:
target- the OpenGL state to disable- See Also:
- Reference Page
-
glBindTexture
public static void glBindTexture(int target, int texture)Binds the a texture to a texture target.While a texture object is bound, GL operations on the target to which it is bound affect the bound object, and queries of the target to which it is bound return state from the bound object. If texture mapping of the dimensionality of the target to which a texture object is bound is enabled, the state of the bound texture object directs the texturing operation.
- Parameters:
target- the texture target. One of:TEXTURE_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:
- Reference Page
-
glBlendFunc
public static void glBlendFunc(int sfactor, int dfactor)Specifies the weighting factors used by the blend equation, for both RGB and alpha functions and for all draw buffers.- Parameters:
sfactor- the source weighting factor. One of:dfactor- the destination weighting factor- See Also:
- Reference Page
-
glClear
public static void glClear(int mask)
Sets portions of every pixel in a particular buffer to the same value. The value to which each buffer is cleared depends on the setting of the clear value for that buffer.- Parameters:
mask- Zero or the bitwise OR of one or more values indicating which buffers are to be cleared. One or more of:COLOR_BUFFER_BITDEPTH_BUFFER_BITSTENCIL_BUFFER_BIT- See Also:
- Reference Page
-
glClearColor
public static void glClearColor(float red, float green, float blue, float alpha)Sets the clear value for fixed-point and floating-point color buffers in RGBA mode. The specified components are stored as floating-point values.- Parameters:
red- the value to which to clear the R channel of the color buffergreen- the value to which to clear the G channel of the color bufferblue- the value to which to clear the B channel of the color bufferalpha- the value to which to clear the A channel of the color buffer- See Also:
- Reference Page
-
glClearDepth
public static void glClearDepth(double depth)
Sets the depth value used when clearing the depth buffer. When clearing a fixedpoint depth buffer,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:
- Reference Page
-
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:
- Reference Page
-
glColorMask
public static void glColorMask(boolean red, boolean green, boolean blue, boolean alpha)Masks the writing of R, G, B and A values to all draw buffers. In the initial state, all color values are enabled for writing for all draw buffers.- Parameters:
red- whether R values are written or notgreen- whether G values are written or notblue- whether B values are written or notalpha- whether A values are written or not- See Also:
- Reference Page
-
glCullFace
public static void glCullFace(int mode)
Specifies which polygon faces are culled ifCULL_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:
- Reference Page
-
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:
- Reference Page
-
glDepthRange
public static void glDepthRange(double zNear, double zFar)Sets the depth range for all viewports to the same values.- Parameters:
zNear- the near depth rangezFar- the far depth range- See Also:
- Reference Page
-
glDrawArrays
public static void glDrawArrays(int mode, int first, int count)Constructs a sequence of geometric primitives by successively transferring elements 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:
- Reference Page
-
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:
- Reference Page
-
nglDrawElements
public static void nglDrawElements(int mode, int count, int type, long indices)Unsafe version of:DrawElements- Parameters:
count- the number of vertices to transfer to the GLtype- indicates the type of index values inindices. One of:UNSIGNED_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:
- Reference Page
-
glDrawElements
public static void glDrawElements(int mode, int type, java.nio.ByteBuffer indices)Constructs a sequence of geometric primitives by successively transferring elements 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:
- Reference Page
-
glDrawElements
public static void glDrawElements(int mode, java.nio.ByteBuffer indices) public static void glDrawElements(int mode, java.nio.ShortBuffer indices) public static void glDrawElements(int mode, java.nio.IntBuffer indices)Constructs a sequence of geometric primitives by successively transferring elements 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:
- Reference Page
-
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:
- Reference Page
-
glFlush
public static void glFlush()
Causes all previously issued GL commands to complete in finite time (although such commands may still be executing whenFlushreturns).- See Also:
- Reference Page
-
glFrontFace
public static void glFrontFace(int dir)
The first step of polygon rasterization is to determine if the polygon is back-facing or front-facing. This determination is made based on the sign of the (clipped or unclipped) polygon's area computed in window coordinates. The interpretation of the sign of this value is controlled with this function. In the initial state, the front face direction is set toCCW.- Parameters:
dir- the front face direction. One of:CCWCW- See Also:
- Reference Page
-
nglGenTextures
public static void nglGenTextures(int n, long textures)Unsafe version of:GenTextures- Parameters:
n- the number of textures to create
-
glGenTextures
public static void glGenTextures(java.nio.IntBuffer textures)
Returns n previously unused texture names in textures. These names are marked as used, for the purposes of GenTextures only, but they acquire texture state and a dimensionality only when they are first bound, just as if they were unused.- Parameters:
textures- a scalar or buffer in which to place the returned texture names- See Also:
- Reference Page
-
glGenTextures
public static int glGenTextures()
Returns n previously unused texture names in textures. These names are marked as used, for the purposes of GenTextures only, but they acquire texture state and a dimensionality only when they are first bound, just as if they were unused.- See Also:
- Reference Page
-
nglDeleteTextures
public static void nglDeleteTextures(int n, long textures)Unsafe version of:DeleteTextures- Parameters:
n- the number of texture names in thetexturesparameter
-
glDeleteTextures
public static void glDeleteTextures(java.nio.IntBuffer textures)
Deletes texture objects. After a texture object is deleted, it has no contents or dimensionality, and its name is again unused. If a texture that is currently bound to any of the target bindings 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:
- Reference Page
-
glDeleteTextures
public static void glDeleteTextures(int texture)
Deletes texture objects. After a texture object is deleted, it has no contents or dimensionality, and its name is again unused. If a texture that is currently bound to any of the target bindings 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:
- Reference Page
-
nglGetBooleanv
public static void nglGetBooleanv(int pname, long params)Unsafe version of:GetBooleanv
-
glGetBooleanv
public static void glGetBooleanv(int pname, java.nio.ByteBuffer params)Returns the current boolean value of the specified state variable.LWJGL note: The state that corresponds to the state variable may be a single value or an array of values. In the case of an array of values, LWJGL will not validate if
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:
- Reference Page
-
glGetBoolean
public static boolean glGetBoolean(int pname)
Returns the current boolean value of the specified state variable.LWJGL note: The state that corresponds to the state variable may be a single value or an array of values. In the case of an array of values, LWJGL will not validate if
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:
- Reference Page
-
nglGetFloatv
public static void nglGetFloatv(int pname, long params)Unsafe version of:GetFloatv
-
glGetFloatv
public static void glGetFloatv(int pname, java.nio.FloatBuffer params)Returns the current float value of the specified state variable.LWJGL note: The state that corresponds to the state variable may be a single value or an array of values. In the case of an array of values, LWJGL will not validate if
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:
- Reference Page
-
glGetFloat
public static float glGetFloat(int pname)
Returns the current float value of the specified state variable.LWJGL note: The state that corresponds to the state variable may be a single value or an array of values. In the case of an array of values, LWJGL will not validate if
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:
- Reference Page
-
nglGetIntegerv
public static void nglGetIntegerv(int pname, long params)Unsafe version of:GetIntegerv
-
glGetIntegerv
public static void glGetIntegerv(int pname, java.nio.IntBuffer params)Returns the current integer value of the specified state variable.LWJGL note: The state that corresponds to the state variable may be a single value or an array of values. In the case of an array of values, LWJGL will not validate if
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:
- Reference Page
-
glGetInteger
public static int glGetInteger(int pname)
Returns the current integer value of the specified state variable.LWJGL note: The state that corresponds to the state variable may be a single value or an array of values. In the case of an array of values, LWJGL will not validate if
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:
- Reference Page
-
nglGetDoublev
public static void nglGetDoublev(int pname, long params)Unsafe version of:GetDoublev
-
glGetDoublev
public static void glGetDoublev(int pname, java.nio.DoubleBuffer params)Returns the current double value of the specified state variable.LWJGL note: The state that corresponds to the state variable may be a single value or an array of values. In the case of an array of values, LWJGL will not validate if
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:
- Reference Page
-
glGetDouble
public static double glGetDouble(int pname)
Returns the current double value of the specified state variable.LWJGL note: The state that corresponds to the state variable may be a single value or an array of values. In the case of an array of values, LWJGL will not validate if
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:
- Reference Page
-
glGetError
public static int glGetError()
Returns error information.Each detectable error is assigned a numeric code. When an error is detected, a flag is set and the code is recorded. Further errors, if they occur, do not affect this recorded code. When
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:
- Reference Page
-
nglGetPointerv
public static void nglGetPointerv(int pname, long params)Unsafe version of:GetPointerv
-
glGetPointerv
public static void glGetPointerv(int pname, org.lwjgl.PointerBuffer params)Returns a pointer in the current GL context.- Parameters:
pname- the pointer to return. One of:DEBUG_CALLBACK_FUNCTIONDEBUG_CALLBACK_USER_PARAMparams- a buffer in which to place the returned pointer- See Also:
- Reference Page
-
glGetPointer
public static long glGetPointer(int pname)
Returns a pointer in the current GL context.- Parameters:
pname- the pointer to return. One of:DEBUG_CALLBACK_FUNCTIONDEBUG_CALLBACK_USER_PARAM- See Also:
- Reference Page
-
nglGetString
public static long nglGetString(int name)
Unsafe version of:GetString
-
glGetString
@Nullable public static java.lang.String glGetString(int name)
Return strings describing properties of the current GL context.- Parameters:
name- the property to query. One of:RENDERERVENDOREXTENSIONSVERSIONSHADING_LANGUAGE_VERSION- See Also:
- Reference Page
-
nglGetTexImage
public static void nglGetTexImage(int tex, int level, int format, int type, long pixels)Unsafe version of:GetTexImage
-
glGetTexImage
public static void glGetTexImage(int tex, int level, int format, int type, java.nio.ByteBuffer pixels) public static void glGetTexImage(int tex, int level, int format, int type, long pixels) public static void glGetTexImage(int tex, int level, int format, int type, java.nio.ShortBuffer pixels) public static void glGetTexImage(int tex, int level, int format, int type, java.nio.IntBuffer pixels) public static void glGetTexImage(int tex, int level, int format, int type, java.nio.FloatBuffer pixels) public static void glGetTexImage(int tex, int level, int format, int type, java.nio.DoubleBuffer pixels)Obtains texture images.- Parameters:
tex- the texture (or texture face) to be obtained. One of:level- the level-of-detail numberformat- the pixel format. One of: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:
- Reference Page
-
nglGetTexLevelParameteriv
public static void nglGetTexLevelParameteriv(int target, int level, int pname, long params)Unsafe version of:GetTexLevelParameteriv
-
glGetTexLevelParameteriv
public static void glGetTexLevelParameteriv(int target, int level, int pname, java.nio.IntBuffer params)Places integer information about texture image 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:
- Reference Page
-
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:
- Reference Page
-
nglGetTexLevelParameterfv
public static void nglGetTexLevelParameterfv(int target, int level, int pname, long params)Unsafe version of:GetTexLevelParameterfv
-
glGetTexLevelParameterfv
public static void glGetTexLevelParameterfv(int target, int level, int pname, java.nio.FloatBuffer params)Float version ofGetTexLevelParameteriv.- Parameters:
target- the texture image targetlevel- the level-of-detail numberpname- the parameter to queryparams- a scalar or buffer in which to place the returned data- See Also:
- Reference Page
-
glGetTexLevelParameterf
public static float glGetTexLevelParameterf(int target, int level, int pname)Float version ofGetTexLevelParameteriv.- Parameters:
target- the texture image targetlevel- the level-of-detail numberpname- the parameter to query- See Also:
- Reference Page
-
nglGetTexParameteriv
public static void nglGetTexParameteriv(int target, int pname, long params)Unsafe version of:GetTexParameteriv
-
glGetTexParameteriv
public static void glGetTexParameteriv(int target, int pname, java.nio.IntBuffer params)Place integer information about texture 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:
- Reference Page
-
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:
- Reference Page
-
nglGetTexParameterfv
public static void nglGetTexParameterfv(int target, int pname, long params)Unsafe version of:GetTexParameterfv
-
glGetTexParameterfv
public static void glGetTexParameterfv(int target, int pname, java.nio.FloatBuffer params)Float version ofGetTexParameteriv.- Parameters:
target- the texture targetpname- the parameter to queryparams- a scalar or buffer in which to place the returned data- See Also:
- Reference Page
-
glGetTexParameterf
public static float glGetTexParameterf(int target, int pname)Float version ofGetTexParameteriv.- Parameters:
target- the texture targetpname- the parameter to query- See Also:
- Reference Page
-
glHint
public static void glHint(int target, int hint)Certain aspects of GL behavior, when there is room for variation, may be controlled with this function. The initial value for all hints isDONT_CARE.- Parameters:
target- the behavior to control. One of:LINE_SMOOTH_HINTPOLYGON_SMOOTH_HINTTEXTURE_COMPRESSION_HINTFRAGMENT_SHADER_DERIVATIVE_HINThint- the behavior hint. One of:FASTESTNICESTDONT_CARE- See Also:
- Reference Page
-
glIsEnabled
public static boolean glIsEnabled(int cap)
Determines ifcapis currently enabled (as withEnable) or disabled.- Parameters:
cap- the enable state to query- See Also:
- Reference Page
-
glIsTexture
public static boolean glIsTexture(int texture)
Returns true iftextureis the name of a texture object.- Parameters:
texture- the texture name to query- See Also:
- Reference Page
-
glLineWidth
public static void glLineWidth(float width)
Sets the width of rasterized line segments. The default width is 1.0.- Parameters:
width- the line width- See Also:
- Reference Page
-
glLogicOp
public static void glLogicOp(int op)
Sets the logical framebuffer operation.- Parameters:
op- the operation to set. One of:CLEARANDAND_REVERSECOPYAND_INVERTEDNOOPXORORNOREQUIVINVERTOR_REVERSECOPY_INVERTEDOR_INVERTEDNANDSET- See Also:
- Reference Page
-
glPixelStorei
public static void glPixelStorei(int pname, int param)Sets the integer value of a pixel store parameter.- Parameters:
pname- the pixel store parameter to set. One of:param- the parameter value- See Also:
- Reference Page
-
glPixelStoref
public static void glPixelStoref(int pname, float param)Float version ofPixelStorei.- Parameters:
pname- the pixel store parameter to setparam- the parameter value- See Also:
- Reference Page
-
glPointSize
public static void glPointSize(float size)
Controls the rasterization of points if no vertex, tessellation control, tessellation evaluation, or geometry shader is active. The default point size is 1.0.- Parameters:
size- the request size of a point- See Also:
- Reference Page
-
glPolygonMode
public static void glPolygonMode(int face, int mode)Controls the interpretation of polygons for rasterization.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.- Parameters:
face- the face for which to set the rasterizing method. One of:FRONTBACKFRONT_AND_BACKmode- the rasterization mode. One of:POINTLINEFILL- See Also:
- Reference Page
-
glPolygonOffset
public static void glPolygonOffset(float factor, float units)The depth values of all fragments generated by the rasterization of a polygon may be offset by a single value that is computed for that polygon. This function determines that value.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:
- Reference Page
-
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:
- Reference Page
-
nglReadPixels
public static void nglReadPixels(int x, int y, int width, int height, int format, int type, long pixels)Unsafe version of:ReadPixels
-
glReadPixels
public static void glReadPixels(int x, int y, int width, int height, int format, int type, java.nio.ByteBuffer pixels) public static void glReadPixels(int x, int y, int width, int height, int format, int type, long pixels) public static void glReadPixels(int x, int y, int width, int height, int format, int type, java.nio.ShortBuffer pixels) public static void glReadPixels(int x, int y, int width, int height, int format, int type, java.nio.IntBuffer pixels) public static void glReadPixels(int x, int y, int width, int height, int format, int type, java.nio.FloatBuffer pixels)ReadPixels obtains values from the selected read buffer from each pixel with lower left hand corner at(x + i, y + j)for0 <= i < 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:
- Reference Page
-
glScissor
public static void glScissor(int x, int y, int width, int height)Defines the scissor rectangle for all viewports. The scissor test is enabled or disabled for all viewports 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:
- Reference Page
-
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:
- Reference Page
-
glStencilOp
public static void glStencilOp(int sfail, int dpfail, int dppass)Indicates what happens to the stored stencil value if this or certain subsequent tests fail or pass.The supported actions are
KEEP,ZERO,REPLACE,INCR,DECR,INVERT,INCR_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:
- Reference Page
-
nglTexImage1D
public static void nglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, long pixels)Unsafe version of:TexImage1D
-
glTexImage1D
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable java.nio.ByteBuffer pixels) public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable long pixels) public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable java.nio.ShortBuffer pixels) public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable java.nio.IntBuffer pixels) public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable java.nio.FloatBuffer pixels) public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable java.nio.DoubleBuffer pixels)One-dimensional version ofTexImage2D}.- Parameters:
target- the texture target. One of:TEXTURE_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:
- Reference Page
-
nglTexImage2D
public static void nglTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, long pixels)Unsafe version of:TexImage2D
-
glTexImage2D
public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable java.nio.ByteBuffer pixels) public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable long pixels) public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable java.nio.ShortBuffer pixels) public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable java.nio.IntBuffer pixels) public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable java.nio.FloatBuffer pixels) public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable java.nio.DoubleBuffer pixels)Specifies a two-dimensional texture image.- Parameters:
target- the texture target. One of:TEXTURE_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:
- Reference Page
-
glCopyTexImage1D
public static void glCopyTexImage1D(int target, int level, int internalFormat, int x, int y, int width, int border)Defines a one-dimensional texel array in exactly the manner ofTexImage1D, except that the image data are taken from the framebuffer rather than from client memory. For the purposes of decoding the texture image,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:
- Reference Page
-
glCopyTexImage2D
public static void glCopyTexImage2D(int target, int level, int internalFormat, int x, int y, int width, int height, int border)Defines a two-dimensional texel array in exactly the manner ofTexImage2D, except that the image data are taken from the framebuffer rather than from client memory.x,y,width, 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:
- Reference Page
-
glCopyTexSubImage1D
public static void glCopyTexSubImage1D(int target, int level, int xoffset, int x, int y, int width)Respecifies a rectangular subregion of an existing texel array. No change is made to theinternalformat,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:
- Reference Page
-
glCopyTexSubImage2D
public static void glCopyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height)Respecifies a rectangular subregion of an existing texel array. No change is made to theinternalformat,width,height, 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:
- Reference Page
-
glTexParameteri
public static void glTexParameteri(int target, int pname, int param)Sets the integer value of a texture parameter, which controls how the texel array is treated when specified or changed, and when applied to a fragment.- Parameters:
target- the texture target. One of:TEXTURE_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:
- Reference Page
-
nglTexParameteriv
public static void nglTexParameteriv(int target, int pname, long params)Unsafe version of:TexParameteriv
-
glTexParameteriv
public static void glTexParameteriv(int target, int pname, java.nio.IntBuffer params)Pointer version ofTexParameteri.- Parameters:
target- the texture targetpname- the parameter to setparams- the parameter value- See Also:
- Reference Page
-
glTexParameterf
public static void glTexParameterf(int target, int pname, float param)Float version ofTexParameteri.- Parameters:
target- the texture targetpname- the parameter to setparam- the parameter value- See Also:
- Reference Page
-
nglTexParameterfv
public static void nglTexParameterfv(int target, int pname, long params)Unsafe version of:TexParameterfv
-
glTexParameterfv
public static void glTexParameterfv(int target, int pname, java.nio.FloatBuffer params)Pointer version ofTexParameterf.- Parameters:
target- the texture targetpname- the parameter to setparams- the parameter value- See Also:
- Reference Page
-
nglTexSubImage1D
public static void nglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, long pixels)Unsafe version of:TexSubImage1D
-
glTexSubImage1D
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, java.nio.ByteBuffer pixels) public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, long pixels) public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, java.nio.ShortBuffer pixels) public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, java.nio.IntBuffer pixels) public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, java.nio.FloatBuffer pixels) public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, java.nio.DoubleBuffer pixels)One-dimensional version ofTexSubImage2D.- Parameters:
target- the texture target. Must be:TEXTURE_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:
- Reference Page
-
nglTexSubImage2D
public static void nglTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, long pixels)Unsafe version of:TexSubImage2D
-
glTexSubImage2D
public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, java.nio.ByteBuffer pixels) public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, long pixels) public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, java.nio.ShortBuffer pixels) public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, java.nio.IntBuffer pixels) public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, java.nio.FloatBuffer pixels) public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, java.nio.DoubleBuffer pixels)Respecifies a rectangular subregion of an existing texel array. No change is made to the internalformat, width, height, depth, or border parameters of the specified texel array, nor is any change made to texel values outside the specified subregion.- Parameters:
target- the texture target. One of:TEXTURE_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:
- Reference Page
-
glViewport
public static void glViewport(int x, int y, int w, int h)Specifies the viewport transformation parameters for all viewports.The location of the viewport's bottom-left corner, given by
(x, y), are clamped to be within the implementation-dependent viewport bounds range. The viewport bounds range[min, max]tuple may be determined by 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:
- Reference Page
-
glGenTextures
public static void glGenTextures(int[] textures)
Array version of:GenTextures- See Also:
- Reference Page
-
glDeleteTextures
public static void glDeleteTextures(int[] textures)
Array version of:DeleteTextures- See Also:
- Reference Page
-
glGetFloatv
public static void glGetFloatv(int pname, float[] params)Array version of:GetFloatv- See Also:
- Reference Page
-
glGetIntegerv
public static void glGetIntegerv(int pname, int[] params)Array version of:GetIntegerv- See Also:
- Reference Page
-
glGetDoublev
public static void glGetDoublev(int pname, double[] params)Array version of:GetDoublev- See Also:
- Reference Page
-
glGetTexImage
public static void glGetTexImage(int tex, int level, int format, int type, short[] pixels) public static void glGetTexImage(int tex, int level, int format, int type, int[] pixels) public static void glGetTexImage(int tex, int level, int format, int type, float[] pixels) public static void glGetTexImage(int tex, int level, int format, int type, double[] pixels)Array version of:GetTexImage- See Also:
- Reference Page
-
glGetTexLevelParameteriv
public static void glGetTexLevelParameteriv(int target, int level, int pname, int[] params)Array version of:GetTexLevelParameteriv- See Also:
- Reference Page
-
glGetTexLevelParameterfv
public static void glGetTexLevelParameterfv(int target, int level, int pname, float[] params)Array version of:GetTexLevelParameterfv- See Also:
- Reference Page
-
glGetTexParameteriv
public static void glGetTexParameteriv(int target, int pname, int[] params)Array version of:GetTexParameteriv- See Also:
- Reference Page
-
glGetTexParameterfv
public static void glGetTexParameterfv(int target, int pname, float[] params)Array version of:GetTexParameterfv- See Also:
- Reference Page
-
glReadPixels
public static void glReadPixels(int x, int y, int width, int height, int format, int type, short[] pixels) public static void glReadPixels(int x, int y, int width, int height, int format, int type, int[] pixels) public static void glReadPixels(int x, int y, int width, int height, int format, int type, float[] pixels)Array version of:ReadPixels- See Also:
- Reference Page
-
glTexImage1D
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable short[] pixels) public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable int[] pixels) public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable float[] pixels) public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, @Nullable double[] pixels)Array version of:TexImage1D- See Also:
- Reference Page
-
glTexImage2D
public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable short[] pixels) public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable int[] pixels) public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable float[] pixels) public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, @Nullable double[] pixels)Array version of:TexImage2D- See Also:
- Reference Page
-
glTexParameteriv
public static void glTexParameteriv(int target, int pname, int[] params)Array version of:TexParameteriv- See Also:
- Reference Page
-
glTexParameterfv
public static void glTexParameterfv(int target, int pname, float[] params)Array version of:TexParameterfv- See Also:
- Reference Page
-
glTexSubImage1D
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, short[] pixels) public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, int[] pixels) public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, float[] pixels) public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, double[] pixels)Array version of:TexSubImage1D- See Also:
- Reference Page
-
glTexSubImage2D
public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, short[] pixels) public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, int[] pixels) public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, float[] pixels) public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, double[] pixels)Array version of:TexSubImage2D- See Also:
- Reference Page
-
-