Class GL12
- java.lang.Object
-
- org.lwjgl.opengl.GL12
-
public class GL12 extends java.lang.Object
The core OpenGL 1.2 functionality.Extensions promoted to core in this release:
- EXT_texture3D
- EXT_bgra
- EXT_packed_pixels
- EXT_rescale_normal
- EXT_separate_specular_color
- SGIS_texture_edge_clamp
- SGIS_texture_lod
- EXT_draw_range_elements
Extensions part of the imaging subset:
-
-
Field Summary
Fields Modifier and Type Field and Description static int
GL_ALIASED_LINE_WIDTH_RANGE
GL_ALIASED_POINT_SIZE_RANGEAliases for smooth points and lines.static int
GL_BGR
GL_BGRAAccepted by theformat
parameter of DrawPixels, GetTexImage, ReadPixels, TexImage1D, and TexImage2D.static int
GL_CLAMP_TO_EDGE
Accepted by theparam
parameter of TexParameteri and TexParameterf, and by theparams
parameter of TexParameteriv and TexParameterfv, when theirpname
parameter is TEXTURE_WRAP_S, TEXTURE_WRAP_T, or TEXTURE_WRAP_R.static int
GL_LIGHT_MODEL_COLOR_CONTROL
Accepted by thepname
parameter of LightModel*, and also by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_MAX_3D_TEXTURE_SIZE
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_MAX_ELEMENTS_INDICES
GL_MAX_ELEMENTS_VERTICESRecommended maximum amounts of vertex and index data.static int
GL_PACK_IMAGE_HEIGHT
GL_PACK_SKIP_IMAGESAccepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev, and by thepname
parameter of PixelStore.static int
GL_PROXY_TEXTURE_3D
Accepted by thetarget
parameter of TexImage3D, GetTexLevelParameteriv, and GetTexLevelParameterfv.static int
GL_RESCALE_NORMAL
Accepted by thecap
parameter of Enable, Disable, and IsEnabled, and by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_SEPARATE_SPECULAR_COLOR
GL_SINGLE_COLORAccepted by theparam
parameter of LightModel* whenpname
is LIGHT_MODEL_COLOR_CONTROL.static int
GL_SMOOTH_LINE_WIDTH_GRANULARITY
GL_SMOOTH_LINE_WIDTH_RANGE
GL_SMOOTH_POINT_SIZE_GRANULARITY
GL_SMOOTH_POINT_SIZE_RANGEAliases for smooth points and lines.static int
GL_TEXTURE_3D
Accepted by thecap
parameter of Enable, Disable, and IsEnabled, by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev, and by thetarget
parameter of TexImage3D, GetTexImage, GetTexLevelParameteriv, GetTexLevelParameterfv, GetTexParameteriv, and GetTexParameterfv.static int
GL_TEXTURE_BASE_LEVEL
Accepted by thepname
parameter of TexParameteri, TexParameterf, TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv.static int
GL_TEXTURE_BINDING_3D
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_TEXTURE_DEPTH
Accepted by thepname
parameter of GetTexLevelParameteriv and GetTexLevelParameterfv.static int
GL_TEXTURE_MAX_LEVEL
GL_TEXTURE_MAX_LOD
GL_TEXTURE_MIN_LODAccepted by thepname
parameter of TexParameteri, TexParameterf, TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv.static int
GL_TEXTURE_WRAP_R
Accepted by thepname
parameter of TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv.static int
GL_UNPACK_IMAGE_HEIGHT
GL_UNPACK_SKIP_IMAGESAccepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev, and by thepname
parameter of PixelStore.static int
GL_UNSIGNED_BYTE_2_3_3_REV
GL_UNSIGNED_BYTE_3_3_2
GL_UNSIGNED_INT_10_10_10_2
GL_UNSIGNED_INT_2_10_10_10_REV
GL_UNSIGNED_INT_8_8_8_8
GL_UNSIGNED_INT_8_8_8_8_REV
GL_UNSIGNED_SHORT_1_5_5_5_REV
GL_UNSIGNED_SHORT_4_4_4_4
GL_UNSIGNED_SHORT_4_4_4_4_REV
GL_UNSIGNED_SHORT_5_5_5_1
GL_UNSIGNED_SHORT_5_6_5
GL_UNSIGNED_SHORT_5_6_5_REVAccepted by thetype
parameter of DrawPixels, ReadPixels, TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax, ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D, GetConvolutionFilter, SeparableFilter2D, SeparableFilter3D, GetSeparableFilter, ColorTable, GetColorTable, TexImage4D, and TexSubImage4D.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static void
glCopyTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height)
static void
glDrawRangeElements(int mode, int start, int end, java.nio.ByteBuffer indices)
static void
glDrawRangeElements(int mode, int start, int end, java.nio.IntBuffer indices)
static void
glDrawRangeElements(int mode, int start, int end, int type, java.nio.ByteBuffer indices)
static void
glDrawRangeElements(int mode, int start, int end, int count, int type, long indices)
static void
glDrawRangeElements(int mode, int start, int end, java.nio.ShortBuffer indices)
static void
glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, java.nio.ByteBuffer pixels)
static void
glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, double[] pixels)
static void
glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, java.nio.DoubleBuffer pixels)
static void
glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, float[] pixels)
static void
glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, java.nio.FloatBuffer pixels)
static void
glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, int[] pixels)
static void
glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, java.nio.IntBuffer pixels)
static void
glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, long pixels)
static void
glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, short[] pixels)
static void
glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, java.nio.ShortBuffer pixels)
static void
glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.ByteBuffer pixels)
static void
glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, double[] pixels)
static void
glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.DoubleBuffer pixels)
static void
glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, float[] pixels)
static void
glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.FloatBuffer pixels)
static void
glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int[] pixels)
static void
glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.IntBuffer pixels)
static void
glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, long pixels)
static void
glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, short[] pixels)
static void
glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.ShortBuffer pixels)
-
-
-
Field Detail
-
GL_ALIASED_POINT_SIZE_RANGE
public static final int GL_ALIASED_POINT_SIZE_RANGE
Aliases for smooth points and lines.- See Also:
- Constant Field Values
-
GL_ALIASED_LINE_WIDTH_RANGE
public static final int GL_ALIASED_LINE_WIDTH_RANGE
Aliases for smooth points and lines.- See Also:
- Constant Field Values
-
GL_SMOOTH_POINT_SIZE_RANGE
public static final int GL_SMOOTH_POINT_SIZE_RANGE
Aliases for smooth points and lines.- See Also:
- Constant Field Values
-
GL_SMOOTH_POINT_SIZE_GRANULARITY
public static final int GL_SMOOTH_POINT_SIZE_GRANULARITY
Aliases for smooth points and lines.- See Also:
- Constant Field Values
-
GL_SMOOTH_LINE_WIDTH_RANGE
public static final int GL_SMOOTH_LINE_WIDTH_RANGE
Aliases for smooth points and lines.- See Also:
- Constant Field Values
-
GL_SMOOTH_LINE_WIDTH_GRANULARITY
public static final int GL_SMOOTH_LINE_WIDTH_GRANULARITY
Aliases for smooth points and lines.- See Also:
- Constant Field Values
-
GL_TEXTURE_BINDING_3D
public static final int GL_TEXTURE_BINDING_3D
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.- See Also:
- Constant Field Values
-
GL_PACK_SKIP_IMAGES
public static final int GL_PACK_SKIP_IMAGES
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev, and by thepname
parameter of PixelStore.- See Also:
- Constant Field Values
-
GL_PACK_IMAGE_HEIGHT
public static final int GL_PACK_IMAGE_HEIGHT
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev, and by thepname
parameter of PixelStore.- See Also:
- Constant Field Values
-
GL_UNPACK_SKIP_IMAGES
public static final int GL_UNPACK_SKIP_IMAGES
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev, and by thepname
parameter of PixelStore.- See Also:
- Constant Field Values
-
GL_UNPACK_IMAGE_HEIGHT
public static final int GL_UNPACK_IMAGE_HEIGHT
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev, and by thepname
parameter of PixelStore.- See Also:
- Constant Field Values
-
GL_TEXTURE_3D
public static final int GL_TEXTURE_3D
Accepted by thecap
parameter of Enable, Disable, and IsEnabled, by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev, and by thetarget
parameter of TexImage3D, GetTexImage, GetTexLevelParameteriv, GetTexLevelParameterfv, GetTexParameteriv, and GetTexParameterfv.- See Also:
- Constant Field Values
-
GL_PROXY_TEXTURE_3D
public static final int GL_PROXY_TEXTURE_3D
Accepted by thetarget
parameter of TexImage3D, GetTexLevelParameteriv, and GetTexLevelParameterfv.- See Also:
- Constant Field Values
-
GL_TEXTURE_DEPTH
public static final int GL_TEXTURE_DEPTH
Accepted by thepname
parameter of GetTexLevelParameteriv and GetTexLevelParameterfv.- See Also:
- Constant Field Values
-
GL_TEXTURE_WRAP_R
public static final int GL_TEXTURE_WRAP_R
Accepted by thepname
parameter of TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv.- See Also:
- Constant Field Values
-
GL_MAX_3D_TEXTURE_SIZE
public static final int GL_MAX_3D_TEXTURE_SIZE
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.- See Also:
- Constant Field Values
-
GL_BGR
public static final int GL_BGR
Accepted by theformat
parameter of DrawPixels, GetTexImage, ReadPixels, TexImage1D, and TexImage2D.- See Also:
- Constant Field Values
-
GL_BGRA
public static final int GL_BGRA
Accepted by theformat
parameter of DrawPixels, GetTexImage, ReadPixels, TexImage1D, and TexImage2D.- See Also:
- Constant Field Values
-
GL_UNSIGNED_BYTE_3_3_2
public static final int GL_UNSIGNED_BYTE_3_3_2
Accepted by thetype
parameter of DrawPixels, ReadPixels, TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax, ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D, GetConvolutionFilter, SeparableFilter2D, SeparableFilter3D, GetSeparableFilter, ColorTable, GetColorTable, TexImage4D, and TexSubImage4D.- See Also:
- Constant Field Values
-
GL_UNSIGNED_BYTE_2_3_3_REV
public static final int GL_UNSIGNED_BYTE_2_3_3_REV
Accepted by thetype
parameter of DrawPixels, ReadPixels, TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax, ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D, GetConvolutionFilter, SeparableFilter2D, SeparableFilter3D, GetSeparableFilter, ColorTable, GetColorTable, TexImage4D, and TexSubImage4D.- See Also:
- Constant Field Values
-
GL_UNSIGNED_SHORT_5_6_5
public static final int GL_UNSIGNED_SHORT_5_6_5
Accepted by thetype
parameter of DrawPixels, ReadPixels, TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax, ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D, GetConvolutionFilter, SeparableFilter2D, SeparableFilter3D, GetSeparableFilter, ColorTable, GetColorTable, TexImage4D, and TexSubImage4D.- See Also:
- Constant Field Values
-
GL_UNSIGNED_SHORT_5_6_5_REV
public static final int GL_UNSIGNED_SHORT_5_6_5_REV
Accepted by thetype
parameter of DrawPixels, ReadPixels, TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax, ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D, GetConvolutionFilter, SeparableFilter2D, SeparableFilter3D, GetSeparableFilter, ColorTable, GetColorTable, TexImage4D, and TexSubImage4D.- See Also:
- Constant Field Values
-
GL_UNSIGNED_SHORT_4_4_4_4
public static final int GL_UNSIGNED_SHORT_4_4_4_4
Accepted by thetype
parameter of DrawPixels, ReadPixels, TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax, ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D, GetConvolutionFilter, SeparableFilter2D, SeparableFilter3D, GetSeparableFilter, ColorTable, GetColorTable, TexImage4D, and TexSubImage4D.- See Also:
- Constant Field Values
-
GL_UNSIGNED_SHORT_4_4_4_4_REV
public static final int GL_UNSIGNED_SHORT_4_4_4_4_REV
Accepted by thetype
parameter of DrawPixels, ReadPixels, TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax, ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D, GetConvolutionFilter, SeparableFilter2D, SeparableFilter3D, GetSeparableFilter, ColorTable, GetColorTable, TexImage4D, and TexSubImage4D.- See Also:
- Constant Field Values
-
GL_UNSIGNED_SHORT_5_5_5_1
public static final int GL_UNSIGNED_SHORT_5_5_5_1
Accepted by thetype
parameter of DrawPixels, ReadPixels, TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax, ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D, GetConvolutionFilter, SeparableFilter2D, SeparableFilter3D, GetSeparableFilter, ColorTable, GetColorTable, TexImage4D, and TexSubImage4D.- See Also:
- Constant Field Values
-
GL_UNSIGNED_SHORT_1_5_5_5_REV
public static final int GL_UNSIGNED_SHORT_1_5_5_5_REV
Accepted by thetype
parameter of DrawPixels, ReadPixels, TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax, ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D, GetConvolutionFilter, SeparableFilter2D, SeparableFilter3D, GetSeparableFilter, ColorTable, GetColorTable, TexImage4D, and TexSubImage4D.- See Also:
- Constant Field Values
-
GL_UNSIGNED_INT_8_8_8_8
public static final int GL_UNSIGNED_INT_8_8_8_8
Accepted by thetype
parameter of DrawPixels, ReadPixels, TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax, ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D, GetConvolutionFilter, SeparableFilter2D, SeparableFilter3D, GetSeparableFilter, ColorTable, GetColorTable, TexImage4D, and TexSubImage4D.- See Also:
- Constant Field Values
-
GL_UNSIGNED_INT_8_8_8_8_REV
public static final int GL_UNSIGNED_INT_8_8_8_8_REV
Accepted by thetype
parameter of DrawPixels, ReadPixels, TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax, ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D, GetConvolutionFilter, SeparableFilter2D, SeparableFilter3D, GetSeparableFilter, ColorTable, GetColorTable, TexImage4D, and TexSubImage4D.- See Also:
- Constant Field Values
-
GL_UNSIGNED_INT_10_10_10_2
public static final int GL_UNSIGNED_INT_10_10_10_2
Accepted by thetype
parameter of DrawPixels, ReadPixels, TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax, ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D, GetConvolutionFilter, SeparableFilter2D, SeparableFilter3D, GetSeparableFilter, ColorTable, GetColorTable, TexImage4D, and TexSubImage4D.- See Also:
- Constant Field Values
-
GL_UNSIGNED_INT_2_10_10_10_REV
public static final int GL_UNSIGNED_INT_2_10_10_10_REV
Accepted by thetype
parameter of DrawPixels, ReadPixels, TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax, ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D, GetConvolutionFilter, SeparableFilter2D, SeparableFilter3D, GetSeparableFilter, ColorTable, GetColorTable, TexImage4D, and TexSubImage4D.- See Also:
- Constant Field Values
-
GL_RESCALE_NORMAL
public static final int GL_RESCALE_NORMAL
Accepted by thecap
parameter of Enable, Disable, and IsEnabled, and by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.- See Also:
- Constant Field Values
-
GL_LIGHT_MODEL_COLOR_CONTROL
public static final int GL_LIGHT_MODEL_COLOR_CONTROL
Accepted by thepname
parameter of LightModel*, and also by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.- See Also:
- Constant Field Values
-
GL_SINGLE_COLOR
public static final int GL_SINGLE_COLOR
Accepted by theparam
parameter of LightModel* whenpname
is LIGHT_MODEL_COLOR_CONTROL.- See Also:
- Constant Field Values
-
GL_SEPARATE_SPECULAR_COLOR
public static final int GL_SEPARATE_SPECULAR_COLOR
Accepted by theparam
parameter of LightModel* whenpname
is LIGHT_MODEL_COLOR_CONTROL.- See Also:
- Constant Field Values
-
GL_CLAMP_TO_EDGE
public static final int GL_CLAMP_TO_EDGE
Accepted by theparam
parameter of TexParameteri and TexParameterf, and by theparams
parameter of TexParameteriv and TexParameterfv, when theirpname
parameter is TEXTURE_WRAP_S, TEXTURE_WRAP_T, or TEXTURE_WRAP_R.- See Also:
- Constant Field Values
-
GL_TEXTURE_MIN_LOD
public static final int GL_TEXTURE_MIN_LOD
Accepted by thepname
parameter of TexParameteri, TexParameterf, TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv.- See Also:
- Constant Field Values
-
GL_TEXTURE_MAX_LOD
public static final int GL_TEXTURE_MAX_LOD
Accepted by thepname
parameter of TexParameteri, TexParameterf, TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv.- See Also:
- Constant Field Values
-
GL_TEXTURE_BASE_LEVEL
public static final int GL_TEXTURE_BASE_LEVEL
Accepted by thepname
parameter of TexParameteri, TexParameterf, TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv.- See Also:
- Constant Field Values
-
GL_TEXTURE_MAX_LEVEL
public static final int GL_TEXTURE_MAX_LEVEL
Accepted by thepname
parameter of TexParameteri, TexParameterf, TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv.- See Also:
- Constant Field Values
-
GL_MAX_ELEMENTS_VERTICES
public static final int GL_MAX_ELEMENTS_VERTICES
Recommended maximum amounts of vertex and index data.- See Also:
- Constant Field Values
-
GL_MAX_ELEMENTS_INDICES
public static final int GL_MAX_ELEMENTS_INDICES
Recommended maximum amounts of vertex and index data.- See Also:
- Constant Field Values
-
-
Method Detail
-
glTexImage3D
public static void glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, java.nio.ByteBuffer pixels)
Specifies a three-dimensional texture image.- Parameters:
target
- the texture target. One of:TEXTURE_3D
TEXTURE_2D_ARRAY
TEXTURE_CUBE_MAP_ARRAY
PROXY_TEXTURE_3D
PROXY_TEXTURE_2D_ARRAY
PROXY_TEXTURE_CUBE_MAP_ARRAY
level
- the level-of-detail numberinternalformat
- the texture internal format. One of:width
- the texture widthheight
- the texture heightdepth
- the texture depthborder
- the texture border widthformat
- the texel data format. One of:type
- the texel data type. One of:pixels
- the texel data
-
glTexImage3D
public static void glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, long pixels)
Specifies a three-dimensional texture image.- Parameters:
target
- the texture target. One of:TEXTURE_3D
TEXTURE_2D_ARRAY
TEXTURE_CUBE_MAP_ARRAY
PROXY_TEXTURE_3D
PROXY_TEXTURE_2D_ARRAY
PROXY_TEXTURE_CUBE_MAP_ARRAY
level
- the level-of-detail numberinternalformat
- the texture internal format. One of:width
- the texture widthheight
- the texture heightdepth
- the texture depthborder
- the texture border widthformat
- the texel data format. One of:type
- the texel data type. One of:pixels
- the texel data
-
glTexImage3D
public static void glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, java.nio.ShortBuffer pixels)
ShortBuffer version of:TexImage3D
-
glTexImage3D
public static void glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, java.nio.IntBuffer pixels)
IntBuffer version of:TexImage3D
-
glTexImage3D
public static void glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, java.nio.FloatBuffer pixels)
FloatBuffer version of:TexImage3D
-
glTexImage3D
public static void glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, java.nio.DoubleBuffer pixels)
DoubleBuffer version of:TexImage3D
-
glTexSubImage3D
public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.ByteBuffer pixels)
Respecifies a cubic subregion of an existing 3D 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_3D
TEXTURE_2D_ARRAY
TEXTURE_CUBE_MAP_ARRAY
level
- the level-of-detail-numberxoffset
- the x coordinate of the texel subregionyoffset
- the y coordinate of the texel subregionzoffset
- the z coordinate of the texel subregionwidth
- the subregion widthheight
- the subregion heightdepth
- the subregion depthformat
- the pixel data format. One of:type
- the pixel data type. One of:pixels
- the pixel data
-
glTexSubImage3D
public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, long pixels)
Respecifies a cubic subregion of an existing 3D 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_3D
TEXTURE_2D_ARRAY
TEXTURE_CUBE_MAP_ARRAY
level
- the level-of-detail-numberxoffset
- the x coordinate of the texel subregionyoffset
- the y coordinate of the texel subregionzoffset
- the z coordinate of the texel subregionwidth
- the subregion widthheight
- the subregion heightdepth
- the subregion depthformat
- the pixel data format. One of:type
- the pixel data type. One of:pixels
- the pixel data
-
glTexSubImage3D
public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.ShortBuffer pixels)
ShortBuffer version of:TexSubImage3D
-
glTexSubImage3D
public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.IntBuffer pixels)
IntBuffer version of:TexSubImage3D
-
glTexSubImage3D
public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.FloatBuffer pixels)
FloatBuffer version of:TexSubImage3D
-
glTexSubImage3D
public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.DoubleBuffer pixels)
DoubleBuffer version of:TexSubImage3D
-
glCopyTexSubImage3D
public static void glCopyTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height)
Respecifies a rectangular subregion of a slice of an existing 3D texel array. No change is made to theinternalformat
,width
,height
, orborder
parameters of the specified texel array, nor is any change made to texel values outside the specified subregion. SeeCopyTexImage2D
for more details.- Parameters:
target
- the texture target. One of:TEXTURE_3D
TEXTURE_2D_ARRAY
TEXTURE_CUBE_MAP_ARRAY
level
- the level-of-detail numberxoffset
- the x coordinate of the texture subregion to updateyoffset
- the y coordinate of the texture subregion to updatezoffset
- the z 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
-
glDrawRangeElements
public static void glDrawRangeElements(int mode, int start, int end, int count, int type, long indices)
A restricted form ofDrawElements
. mode, start, end, and count match the corresponding arguments to glDrawElements, with the additional constraint that all values in the arrays count must lie between start and end, inclusive.Implementations denote recommended maximum amounts of vertex and index data, which may be queried by calling glGet with argument
MAX_ELEMENTS_VERTICES
andMAX_ELEMENTS_INDICES
. If end - start + 1 is greater than the value of GL_MAX_ELEMENTS_VERTICES, or if count is greater than the value of GL_MAX_ELEMENTS_INDICES, then the call may operate at reduced performance. There is no requirement that all vertices in the range start end be referenced. However, the implementation may partially process unused vertices, reducing performance from what could be achieved with an optimal index set.When glDrawRangeElements is called, it uses count sequential elements from an enabled array, starting at start to construct a sequence of geometric primitives. mode specifies what kind of primitives are constructed, and how the array elements construct these primitives. If more than one array is enabled, each is used.
Vertex attributes that are modified by glDrawRangeElements have an unspecified value after glDrawRangeElements returns. Attributes that aren't modified maintain their previous values.
Errors
It is an error for indices to lie outside the range start end, but implementations may not check for this situation. Such indices cause implementation-dependent behavior.
- GL_INVALID_ENUM is generated if mode is not an accepted value.
- GL_INVALID_VALUE is generated if count is negative.
- GL_INVALID_VALUE is generated if end < start.
- GL_INVALID_OPERATION is generated if a geometry shader is active and mode is incompatible with the input primitive type of the geometry shader in the currently installed program object.
- GL_INVALID_OPERATION is generated if a non-zero buffer object name is bound to an enabled array or the element array and the buffer object's data store is currently mapped.
- Parameters:
mode
- the kind of primitives to render. One of:POINTS
LINE_STRIP
LINE_LOOP
LINES
POLYGON
TRIANGLE_STRIP
TRIANGLE_FAN
TRIANGLES
QUAD_STRIP
QUADS
LINES_ADJACENCY
LINE_STRIP_ADJACENCY
TRIANGLES_ADJACENCY
TRIANGLE_STRIP_ADJACENCY
PATCHES
start
- the minimum array index contained inindices
end
- the maximum array index contained inindices
count
- the number of elements to be renderedtype
- the type of the values inindices
. One of:UNSIGNED_BYTE
UNSIGNED_SHORT
UNSIGNED_INT
indices
- a pointer to the location where the indices are stored
-
glDrawRangeElements
public static void glDrawRangeElements(int mode, int start, int end, int type, java.nio.ByteBuffer indices)
A restricted form ofDrawElements
. mode, start, end, and count match the corresponding arguments to glDrawElements, with the additional constraint that all values in the arrays count must lie between start and end, inclusive.Implementations denote recommended maximum amounts of vertex and index data, which may be queried by calling glGet with argument
MAX_ELEMENTS_VERTICES
andMAX_ELEMENTS_INDICES
. If end - start + 1 is greater than the value of GL_MAX_ELEMENTS_VERTICES, or if count is greater than the value of GL_MAX_ELEMENTS_INDICES, then the call may operate at reduced performance. There is no requirement that all vertices in the range start end be referenced. However, the implementation may partially process unused vertices, reducing performance from what could be achieved with an optimal index set.When glDrawRangeElements is called, it uses count sequential elements from an enabled array, starting at start to construct a sequence of geometric primitives. mode specifies what kind of primitives are constructed, and how the array elements construct these primitives. If more than one array is enabled, each is used.
Vertex attributes that are modified by glDrawRangeElements have an unspecified value after glDrawRangeElements returns. Attributes that aren't modified maintain their previous values.
Errors
It is an error for indices to lie outside the range start end, but implementations may not check for this situation. Such indices cause implementation-dependent behavior.
- GL_INVALID_ENUM is generated if mode is not an accepted value.
- GL_INVALID_VALUE is generated if count is negative.
- GL_INVALID_VALUE is generated if end < start.
- GL_INVALID_OPERATION is generated if a geometry shader is active and mode is incompatible with the input primitive type of the geometry shader in the currently installed program object.
- GL_INVALID_OPERATION is generated if a non-zero buffer object name is bound to an enabled array or the element array and the buffer object's data store is currently mapped.
- Parameters:
mode
- the kind of primitives to render. One of:POINTS
LINE_STRIP
LINE_LOOP
LINES
POLYGON
TRIANGLE_STRIP
TRIANGLE_FAN
TRIANGLES
QUAD_STRIP
QUADS
LINES_ADJACENCY
LINE_STRIP_ADJACENCY
TRIANGLES_ADJACENCY
TRIANGLE_STRIP_ADJACENCY
PATCHES
start
- the minimum array index contained inindices
end
- the maximum array index contained inindices
type
- the type of the values inindices
. One of:UNSIGNED_BYTE
UNSIGNED_SHORT
UNSIGNED_INT
indices
- a pointer to the location where the indices are stored
-
glDrawRangeElements
public static void glDrawRangeElements(int mode, int start, int end, java.nio.ByteBuffer indices)
A restricted form ofDrawElements
. mode, start, end, and count match the corresponding arguments to glDrawElements, with the additional constraint that all values in the arrays count must lie between start and end, inclusive.Implementations denote recommended maximum amounts of vertex and index data, which may be queried by calling glGet with argument
MAX_ELEMENTS_VERTICES
andMAX_ELEMENTS_INDICES
. If end - start + 1 is greater than the value of GL_MAX_ELEMENTS_VERTICES, or if count is greater than the value of GL_MAX_ELEMENTS_INDICES, then the call may operate at reduced performance. There is no requirement that all vertices in the range start end be referenced. However, the implementation may partially process unused vertices, reducing performance from what could be achieved with an optimal index set.When glDrawRangeElements is called, it uses count sequential elements from an enabled array, starting at start to construct a sequence of geometric primitives. mode specifies what kind of primitives are constructed, and how the array elements construct these primitives. If more than one array is enabled, each is used.
Vertex attributes that are modified by glDrawRangeElements have an unspecified value after glDrawRangeElements returns. Attributes that aren't modified maintain their previous values.
Errors
It is an error for indices to lie outside the range start end, but implementations may not check for this situation. Such indices cause implementation-dependent behavior.
- GL_INVALID_ENUM is generated if mode is not an accepted value.
- GL_INVALID_VALUE is generated if count is negative.
- GL_INVALID_VALUE is generated if end < start.
- GL_INVALID_OPERATION is generated if a geometry shader is active and mode is incompatible with the input primitive type of the geometry shader in the currently installed program object.
- GL_INVALID_OPERATION is generated if a non-zero buffer object name is bound to an enabled array or the element array and the buffer object's data store is currently mapped.
- Parameters:
mode
- the kind of primitives to render. One of:POINTS
LINE_STRIP
LINE_LOOP
LINES
POLYGON
TRIANGLE_STRIP
TRIANGLE_FAN
TRIANGLES
QUAD_STRIP
QUADS
LINES_ADJACENCY
LINE_STRIP_ADJACENCY
TRIANGLES_ADJACENCY
TRIANGLE_STRIP_ADJACENCY
PATCHES
start
- the minimum array index contained inindices
end
- the maximum array index contained inindices
indices
- a pointer to the location where the indices are stored
-
glDrawRangeElements
public static void glDrawRangeElements(int mode, int start, int end, java.nio.ShortBuffer indices)
A restricted form ofDrawElements
. mode, start, end, and count match the corresponding arguments to glDrawElements, with the additional constraint that all values in the arrays count must lie between start and end, inclusive.Implementations denote recommended maximum amounts of vertex and index data, which may be queried by calling glGet with argument
MAX_ELEMENTS_VERTICES
andMAX_ELEMENTS_INDICES
. If end - start + 1 is greater than the value of GL_MAX_ELEMENTS_VERTICES, or if count is greater than the value of GL_MAX_ELEMENTS_INDICES, then the call may operate at reduced performance. There is no requirement that all vertices in the range start end be referenced. However, the implementation may partially process unused vertices, reducing performance from what could be achieved with an optimal index set.When glDrawRangeElements is called, it uses count sequential elements from an enabled array, starting at start to construct a sequence of geometric primitives. mode specifies what kind of primitives are constructed, and how the array elements construct these primitives. If more than one array is enabled, each is used.
Vertex attributes that are modified by glDrawRangeElements have an unspecified value after glDrawRangeElements returns. Attributes that aren't modified maintain their previous values.
Errors
It is an error for indices to lie outside the range start end, but implementations may not check for this situation. Such indices cause implementation-dependent behavior.
- GL_INVALID_ENUM is generated if mode is not an accepted value.
- GL_INVALID_VALUE is generated if count is negative.
- GL_INVALID_VALUE is generated if end < start.
- GL_INVALID_OPERATION is generated if a geometry shader is active and mode is incompatible with the input primitive type of the geometry shader in the currently installed program object.
- GL_INVALID_OPERATION is generated if a non-zero buffer object name is bound to an enabled array or the element array and the buffer object's data store is currently mapped.
- Parameters:
mode
- the kind of primitives to render. One of:POINTS
LINE_STRIP
LINE_LOOP
LINES
POLYGON
TRIANGLE_STRIP
TRIANGLE_FAN
TRIANGLES
QUAD_STRIP
QUADS
LINES_ADJACENCY
LINE_STRIP_ADJACENCY
TRIANGLES_ADJACENCY
TRIANGLE_STRIP_ADJACENCY
PATCHES
start
- the minimum array index contained inindices
end
- the maximum array index contained inindices
indices
- a pointer to the location where the indices are stored
-
glDrawRangeElements
public static void glDrawRangeElements(int mode, int start, int end, java.nio.IntBuffer indices)
A restricted form ofDrawElements
. mode, start, end, and count match the corresponding arguments to glDrawElements, with the additional constraint that all values in the arrays count must lie between start and end, inclusive.Implementations denote recommended maximum amounts of vertex and index data, which may be queried by calling glGet with argument
MAX_ELEMENTS_VERTICES
andMAX_ELEMENTS_INDICES
. If end - start + 1 is greater than the value of GL_MAX_ELEMENTS_VERTICES, or if count is greater than the value of GL_MAX_ELEMENTS_INDICES, then the call may operate at reduced performance. There is no requirement that all vertices in the range start end be referenced. However, the implementation may partially process unused vertices, reducing performance from what could be achieved with an optimal index set.When glDrawRangeElements is called, it uses count sequential elements from an enabled array, starting at start to construct a sequence of geometric primitives. mode specifies what kind of primitives are constructed, and how the array elements construct these primitives. If more than one array is enabled, each is used.
Vertex attributes that are modified by glDrawRangeElements have an unspecified value after glDrawRangeElements returns. Attributes that aren't modified maintain their previous values.
Errors
It is an error for indices to lie outside the range start end, but implementations may not check for this situation. Such indices cause implementation-dependent behavior.
- GL_INVALID_ENUM is generated if mode is not an accepted value.
- GL_INVALID_VALUE is generated if count is negative.
- GL_INVALID_VALUE is generated if end < start.
- GL_INVALID_OPERATION is generated if a geometry shader is active and mode is incompatible with the input primitive type of the geometry shader in the currently installed program object.
- GL_INVALID_OPERATION is generated if a non-zero buffer object name is bound to an enabled array or the element array and the buffer object's data store is currently mapped.
- Parameters:
mode
- the kind of primitives to render. One of:POINTS
LINE_STRIP
LINE_LOOP
LINES
POLYGON
TRIANGLE_STRIP
TRIANGLE_FAN
TRIANGLES
QUAD_STRIP
QUADS
LINES_ADJACENCY
LINE_STRIP_ADJACENCY
TRIANGLES_ADJACENCY
TRIANGLE_STRIP_ADJACENCY
PATCHES
start
- the minimum array index contained inindices
end
- the maximum array index contained inindices
indices
- a pointer to the location where the indices are stored
-
glTexImage3D
public static void glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, short[] pixels)
short[] version of:TexImage3D
-
glTexImage3D
public static void glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, int[] pixels)
int[] version of:TexImage3D
-
glTexImage3D
public static void glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, float[] pixels)
float[] version of:TexImage3D
-
glTexImage3D
public static void glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, double[] pixels)
double[] version of:TexImage3D
-
glTexSubImage3D
public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, short[] pixels)
short[] version of:TexSubImage3D
-
glTexSubImage3D
public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int[] pixels)
int[] version of:TexSubImage3D
-
glTexSubImage3D
public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, float[] pixels)
float[] version of:TexSubImage3D
-
glTexSubImage3D
public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, double[] pixels)
double[] version of:TexSubImage3D
-
-