Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*/
public class GL12 {
/** Aliases for smooth points and lines. */
public static final int
GL_ALIASED_POINT_SIZE_RANGE = 0x846D,
GL_ALIASED_LINE_WIDTH_RANGE = 0x846E,
GL_SMOOTH_POINT_SIZE_RANGE = 0xB12,
GL_SMOOTH_POINT_SIZE_GRANULARITY = 0xB13,
GL_SMOOTH_LINE_WIDTH_RANGE = 0xB22,
GL_SMOOTH_LINE_WIDTH_GRANULARITY = 0xB23;
/** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. */
public static final int GL_TEXTURE_BINDING_3D = 0x806A;
/** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev, and by the {@code pname} parameter of PixelStore. */
public static final int
GL_PACK_SKIP_IMAGES = 0x806B,
GL_PACK_IMAGE_HEIGHT = 0x806C,
GL_UNPACK_SKIP_IMAGES = 0x806D,
GL_UNPACK_IMAGE_HEIGHT = 0x806E;
/**
* Accepted by the {@code cap} parameter of Enable, Disable, and IsEnabled, by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev, and by the {@code target} parameter of TexImage3D, GetTexImage, GetTexLevelParameteriv, GetTexLevelParameterfv, GetTexParameteriv, and
* GetTexParameterfv.
*/
public static final int GL_TEXTURE_3D = 0x806F;
/** Accepted by the {@code target} parameter of TexImage3D, GetTexLevelParameteriv, and GetTexLevelParameterfv. */
public static final int GL_PROXY_TEXTURE_3D = 0x8070;
/** Accepted by the {@code pname} parameter of GetTexLevelParameteriv and GetTexLevelParameterfv. */
public static final int GL_TEXTURE_DEPTH = 0x8071;
/** Accepted by the {@code pname} parameter of TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv. */
public static final int GL_TEXTURE_WRAP_R = 0x8072;
/** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. */
public static final int GL_MAX_3D_TEXTURE_SIZE = 0x8073;
/** Accepted by the {@code format} parameter of DrawPixels, GetTexImage, ReadPixels, TexImage1D, and TexImage2D. */
public static final int
GL_BGR = 0x80E0,
GL_BGRA = 0x80E1;
/**
* Accepted by the {@code type} 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.
*/
public static final int
GL_UNSIGNED_BYTE_3_3_2 = 0x8032,
GL_UNSIGNED_BYTE_2_3_3_REV = 0x8362,
GL_UNSIGNED_SHORT_5_6_5 = 0x8363,
GL_UNSIGNED_SHORT_5_6_5_REV = 0x8364,
GL_UNSIGNED_SHORT_4_4_4_4 = 0x8033,
GL_UNSIGNED_SHORT_4_4_4_4_REV = 0x8365,
GL_UNSIGNED_SHORT_5_5_5_1 = 0x8034,
GL_UNSIGNED_SHORT_1_5_5_5_REV = 0x8366,
GL_UNSIGNED_INT_8_8_8_8 = 0x8035,
GL_UNSIGNED_INT_8_8_8_8_REV = 0x8367,
GL_UNSIGNED_INT_10_10_10_2 = 0x8036,
GL_UNSIGNED_INT_2_10_10_10_REV = 0x8368;
/**
* Accepted by the {@code cap} parameter of Enable, Disable, and IsEnabled, and by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev.
*/
public static final int GL_RESCALE_NORMAL = 0x803A;
/** Accepted by the {@code pname} parameter of LightModel*, and also by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. */
public static final int GL_LIGHT_MODEL_COLOR_CONTROL = 0x81F8;
/** Accepted by the {@code param} parameter of LightModel* when {@code pname} is LIGHT_MODEL_COLOR_CONTROL. */
public static final int
GL_SINGLE_COLOR = 0x81F9,
GL_SEPARATE_SPECULAR_COLOR = 0x81FA;
/**
* Accepted by the {@code param} parameter of TexParameteri and TexParameterf, and by the {@code params} parameter of TexParameteriv and TexParameterfv,
* when their {@code pname} parameter is TEXTURE_WRAP_S, TEXTURE_WRAP_T, or TEXTURE_WRAP_R.
*/
public static final int GL_CLAMP_TO_EDGE = 0x812F;
/** Accepted by the {@code pname} parameter of TexParameteri, TexParameterf, TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv. */
public static final int
GL_TEXTURE_MIN_LOD = 0x813A,
GL_TEXTURE_MAX_LOD = 0x813B,
GL_TEXTURE_BASE_LEVEL = 0x813C,
GL_TEXTURE_MAX_LEVEL = 0x813D;
/** Recommended maximum amounts of vertex and index data. */
public static final int
GL_MAX_ELEMENTS_VERTICES = 0x80E8,
GL_MAX_ELEMENTS_INDICES = 0x80E9;
static { GL.initialize(); }
protected GL12() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLCapabilities caps) {
return checkFunctions(
caps.glTexImage3D, caps.glTexSubImage3D, caps.glCopyTexSubImage3D, caps.glDrawRangeElements
);
}
// --- [ glTexImage3D ] ---
/** Unsafe version of: {@link #glTexImage3D TexImage3D} */
public static native void nglTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, long pixels);
/**
*
* @param width the texture width
* @param height the texture height
* @param depth the texture depth
* @param border the texture border width
* @param format the texel data format. One of:
* @param pixels the texel data
*/
public static void glTexImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int internalformat, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLint") int border, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") ByteBuffer pixels) {
nglTexImage3D(target, level, internalformat, width, height, depth, border, format, type, memAddressSafe(pixels));
}
/**
*
* @param width the texture width
* @param height the texture height
* @param depth the texture depth
* @param border the texture border width
* @param format the texel data format. One of:
* @param pixels the texel data
*/
public static void glTexImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int internalformat, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLint") int border, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") long pixels) {
nglTexImage3D(target, level, internalformat, width, height, depth, border, format, type, pixels);
}
/**
*
* @param width the texture width
* @param height the texture height
* @param depth the texture depth
* @param border the texture border width
* @param format the texel data format. One of:
* @param pixels the texel data
*/
public static void glTexImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int internalformat, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLint") int border, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") ShortBuffer pixels) {
nglTexImage3D(target, level, internalformat, width, height, depth, border, format, type, memAddressSafe(pixels));
}
/**
*
* @param width the texture width
* @param height the texture height
* @param depth the texture depth
* @param border the texture border width
* @param format the texel data format. One of:
* @param pixels the texel data
*/
public static void glTexImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int internalformat, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLint") int border, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") IntBuffer pixels) {
nglTexImage3D(target, level, internalformat, width, height, depth, border, format, type, memAddressSafe(pixels));
}
/**
*
* @param width the texture width
* @param height the texture height
* @param depth the texture depth
* @param border the texture border width
* @param format the texel data format. One of:
* @param pixels the texel data
*/
public static void glTexImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int internalformat, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLint") int border, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") FloatBuffer pixels) {
nglTexImage3D(target, level, internalformat, width, height, depth, border, format, type, memAddressSafe(pixels));
}
/**
*
* @param width the texture width
* @param height the texture height
* @param depth the texture depth
* @param border the texture border width
* @param format the texel data format. One of:
* @param pixels the texel data
*/
public static void glTexImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int internalformat, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLint") int border, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") DoubleBuffer pixels) {
nglTexImage3D(target, level, internalformat, width, height, depth, border, format, type, memAddressSafe(pixels));
}
// --- [ glTexSubImage3D ] ---
/** Unsafe version of: {@link #glTexSubImage3D TexSubImage3D} */
public static native void nglTexSubImage3D(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.
*
* @param target the texture target. One of:
* @param level the level-of-detail-number
* @param xoffset the x coordinate of the texel subregion
* @param yoffset the y coordinate of the texel subregion
* @param zoffset the z coordinate of the texel subregion
* @param width the subregion width
* @param height the subregion height
* @param depth the subregion depth
* @param format the pixel data format. One of:
* @param pixels the pixel data
*/
public static void glTexSubImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") ByteBuffer pixels) {
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, memAddress(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.
*
* @param target the texture target. One of:
* @param level the level-of-detail-number
* @param xoffset the x coordinate of the texel subregion
* @param yoffset the y coordinate of the texel subregion
* @param zoffset the z coordinate of the texel subregion
* @param width the subregion width
* @param height the subregion height
* @param depth the subregion depth
* @param format the pixel data format. One of:
* @param pixels the pixel data
*/
public static void glTexSubImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") long pixels) {
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, 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.
*
* @param target the texture target. One of:
* @param level the level-of-detail-number
* @param xoffset the x coordinate of the texel subregion
* @param yoffset the y coordinate of the texel subregion
* @param zoffset the z coordinate of the texel subregion
* @param width the subregion width
* @param height the subregion height
* @param depth the subregion depth
* @param format the pixel data format. One of:
* @param pixels the pixel data
*/
public static void glTexSubImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") ShortBuffer pixels) {
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, memAddress(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.
*
* @param target the texture target. One of:
* @param level the level-of-detail-number
* @param xoffset the x coordinate of the texel subregion
* @param yoffset the y coordinate of the texel subregion
* @param zoffset the z coordinate of the texel subregion
* @param width the subregion width
* @param height the subregion height
* @param depth the subregion depth
* @param format the pixel data format. One of:
* @param pixels the pixel data
*/
public static void glTexSubImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") IntBuffer pixels) {
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, memAddress(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.
*
* @param target the texture target. One of:
* @param level the level-of-detail-number
* @param xoffset the x coordinate of the texel subregion
* @param yoffset the y coordinate of the texel subregion
* @param zoffset the z coordinate of the texel subregion
* @param width the subregion width
* @param height the subregion height
* @param depth the subregion depth
* @param format the pixel data format. One of:
* @param pixels the pixel data
*/
public static void glTexSubImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") FloatBuffer pixels) {
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, memAddress(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.
*
* @param target the texture target. One of:
* @param level the level-of-detail-number
* @param xoffset the x coordinate of the texel subregion
* @param yoffset the y coordinate of the texel subregion
* @param zoffset the z coordinate of the texel subregion
* @param width the subregion width
* @param height the subregion height
* @param depth the subregion depth
* @param format the pixel data format. One of:
* @param pixels the pixel data
*/
public static void glTexSubImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") DoubleBuffer pixels) {
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, memAddress(pixels));
}
// --- [ glCopyTexSubImage3D ] ---
/**
*
*
* Respecifies a rectangular subregion of a slice of an existing 3D texel array. No change is made to the {@code internalformat}, {@code width},
* {@code height}, or {@code border} parameters of the specified texel array, nor is any change made to texel values outside the specified subregion. See
* {@link GL11#glCopyTexImage2D CopyTexImage2D} for more details.
*
* @param target the texture target. One of:
* @param level the level-of-detail number
* @param xoffset the x coordinate of the texture subregion to update
* @param yoffset the y coordinate of the texture subregion to update
* @param zoffset the z coordinate of the texture subregion to update
* @param x the left framebuffer pixel coordinate
* @param y the lower framebuffer pixel coordinate
* @param width the texture subregion width
* @param height the texture subregion height
*/
public static native void glCopyTexSubImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLint") int x, @NativeType("GLint") int y, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height);
// --- [ glDrawRangeElements ] ---
/**
* Unsafe version of: {@link #glDrawRangeElements DrawRangeElements}
*
* @param count the number of elements to be rendered
* @param type the type of the values in {@code indices}. One of:
{@link GL11#GL_UNSIGNED_BYTE UNSIGNED_BYTE}
{@link GL11#GL_UNSIGNED_SHORT UNSIGNED_SHORT}
{@link GL11#GL_UNSIGNED_INT UNSIGNED_INT}
*/
public static native void nglDrawRangeElements(int mode, int start, int end, int count, int type, long indices);
/**
*
*
* A restricted form of {@link GL11#glDrawElements DrawElements}. 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
* {@link #GL_MAX_ELEMENTS_VERTICES MAX_ELEMENTS_VERTICES} and {@link #GL_MAX_ELEMENTS_INDICES MAX_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.
*
*
* @param mode the kind of primitives to render. One of:
* @param start the minimum array index contained in {@code indices}
* @param end the maximum array index contained in {@code indices}
* @param count the number of elements to be rendered
* @param type the type of the values in {@code indices}. One of:
{@link GL11#GL_UNSIGNED_BYTE UNSIGNED_BYTE}
{@link GL11#GL_UNSIGNED_SHORT UNSIGNED_SHORT}
{@link GL11#GL_UNSIGNED_INT UNSIGNED_INT}
* @param indices a pointer to the location where the indices are stored
*/
public static void glDrawRangeElements(@NativeType("GLenum") int mode, @NativeType("GLuint") int start, @NativeType("GLuint") int end, @NativeType("GLsizei") int count, @NativeType("GLenum") int type, @NativeType("const void *") long indices) {
nglDrawRangeElements(mode, start, end, count, type, indices);
}
/**
*
*
* A restricted form of {@link GL11#glDrawElements DrawElements}. 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
* {@link #GL_MAX_ELEMENTS_VERTICES MAX_ELEMENTS_VERTICES} and {@link #GL_MAX_ELEMENTS_INDICES MAX_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.
*
*
* @param mode the kind of primitives to render. One of:
* @param start the minimum array index contained in {@code indices}
* @param end the maximum array index contained in {@code indices}
* @param type the type of the values in {@code indices}. One of:
{@link GL11#GL_UNSIGNED_BYTE UNSIGNED_BYTE}
{@link GL11#GL_UNSIGNED_SHORT UNSIGNED_SHORT}
{@link GL11#GL_UNSIGNED_INT UNSIGNED_INT}
* @param indices a pointer to the location where the indices are stored
*/
public static void glDrawRangeElements(@NativeType("GLenum") int mode, @NativeType("GLuint") int start, @NativeType("GLuint") int end, @NativeType("GLenum") int type, @NativeType("const void *") ByteBuffer indices) {
nglDrawRangeElements(mode, start, end, indices.remaining() >> GLChecks.typeToByteShift(type), type, memAddress(indices));
}
/**
*
*
* A restricted form of {@link GL11#glDrawElements DrawElements}. 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
* {@link #GL_MAX_ELEMENTS_VERTICES MAX_ELEMENTS_VERTICES} and {@link #GL_MAX_ELEMENTS_INDICES MAX_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.
*
*
* @param mode the kind of primitives to render. One of:
* @param start the minimum array index contained in {@code indices}
* @param end the maximum array index contained in {@code indices}
* @param indices a pointer to the location where the indices are stored
*/
public static void glDrawRangeElements(@NativeType("GLenum") int mode, @NativeType("GLuint") int start, @NativeType("GLuint") int end, @NativeType("const void *") ByteBuffer indices) {
nglDrawRangeElements(mode, start, end, indices.remaining(), GL11.GL_UNSIGNED_BYTE, memAddress(indices));
}
/**
*
*
* A restricted form of {@link GL11#glDrawElements DrawElements}. 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
* {@link #GL_MAX_ELEMENTS_VERTICES MAX_ELEMENTS_VERTICES} and {@link #GL_MAX_ELEMENTS_INDICES MAX_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.
*
*
* @param mode the kind of primitives to render. One of:
* @param start the minimum array index contained in {@code indices}
* @param end the maximum array index contained in {@code indices}
* @param indices a pointer to the location where the indices are stored
*/
public static void glDrawRangeElements(@NativeType("GLenum") int mode, @NativeType("GLuint") int start, @NativeType("GLuint") int end, @NativeType("const void *") ShortBuffer indices) {
nglDrawRangeElements(mode, start, end, indices.remaining(), GL11.GL_UNSIGNED_SHORT, memAddress(indices));
}
/**
*
*
* A restricted form of {@link GL11#glDrawElements DrawElements}. 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
* {@link #GL_MAX_ELEMENTS_VERTICES MAX_ELEMENTS_VERTICES} and {@link #GL_MAX_ELEMENTS_INDICES MAX_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.
*
*
* @param mode the kind of primitives to render. One of:
* @param start the minimum array index contained in {@code indices}
* @param end the maximum array index contained in {@code indices}
* @param indices a pointer to the location where the indices are stored
*/
public static void glDrawRangeElements(@NativeType("GLenum") int mode, @NativeType("GLuint") int start, @NativeType("GLuint") int end, @NativeType("const void *") IntBuffer indices) {
nglDrawRangeElements(mode, start, end, indices.remaining(), GL11.GL_UNSIGNED_INT, memAddress(indices));
}
/**
*
*
* Array version of: {@link #glTexImage3D TexImage3D}
*/
public static void glTexImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int internalformat, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLint") int border, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") short[] pixels) {
long __functionAddress = GL.getICD().glTexImage3D;
if (CHECKS) {
check(__functionAddress);
}
callPV(__functionAddress, target, level, internalformat, width, height, depth, border, format, type, pixels);
}
/**
*
*
* Array version of: {@link #glTexImage3D TexImage3D}
*/
public static void glTexImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int internalformat, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLint") int border, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") int[] pixels) {
long __functionAddress = GL.getICD().glTexImage3D;
if (CHECKS) {
check(__functionAddress);
}
callPV(__functionAddress, target, level, internalformat, width, height, depth, border, format, type, pixels);
}
/**
*
*
* Array version of: {@link #glTexImage3D TexImage3D}
*/
public static void glTexImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int internalformat, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLint") int border, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") float[] pixels) {
long __functionAddress = GL.getICD().glTexImage3D;
if (CHECKS) {
check(__functionAddress);
}
callPV(__functionAddress, target, level, internalformat, width, height, depth, border, format, type, pixels);
}
/**
*
*
* Array version of: {@link #glTexImage3D TexImage3D}
*/
public static void glTexImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int internalformat, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLint") int border, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") double[] pixels) {
long __functionAddress = GL.getICD().glTexImage3D;
if (CHECKS) {
check(__functionAddress);
}
callPV(__functionAddress, target, level, internalformat, width, height, depth, border, format, type, pixels);
}
/**
*
*
* Array version of: {@link #glTexSubImage3D TexSubImage3D}
*/
public static void glTexSubImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") short[] pixels) {
long __functionAddress = GL.getICD().glTexSubImage3D;
if (CHECKS) {
check(__functionAddress);
}
callPV(__functionAddress, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
}
/**
*
*
* Array version of: {@link #glTexSubImage3D TexSubImage3D}
*/
public static void glTexSubImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") int[] pixels) {
long __functionAddress = GL.getICD().glTexSubImage3D;
if (CHECKS) {
check(__functionAddress);
}
callPV(__functionAddress, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
}
/**
*
*
* Array version of: {@link #glTexSubImage3D TexSubImage3D}
*/
public static void glTexSubImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") float[] pixels) {
long __functionAddress = GL.getICD().glTexSubImage3D;
if (CHECKS) {
check(__functionAddress);
}
callPV(__functionAddress, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
}
/**
*
*
* Array version of: {@link #glTexSubImage3D TexSubImage3D}
*/
public static void glTexSubImage3D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("const void *") double[] pixels) {
long __functionAddress = GL.getICD().glTexSubImage3D;
if (CHECKS) {
check(__functionAddress);
}
callPV(__functionAddress, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
}
}