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.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengl;
import java.nio.*;
import org.lwjgl.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
import static org.lwjgl.system.MemoryStack.*;
import static org.lwjgl.system.MemoryUtil.*;
/**
* Native bindings to the ARB_vertex_program extension.
*
*
Unextended OpenGL mandates a certain set of configurable per-vertex computations defining vertex transformation, texture coordinate generation and
* transformation, and lighting. Several extensions have added further per-vertex computations to OpenGL. For example, extensions have defined new texture
* coordinate generation modes ({@link ARBTextureCubeMap ARB_texture_cube_map}, NV_texgen_reflection, NV_texgen_emboss),
* new vertex transformation modes ({@link ARBVertexBlend ARB_vertex_blend}, EXT_vertex_weighting), new lighting modes (OpenGL 1.2's separate
* specular and rescale normal functionality), several modes for fog distance generation (NV_fog_distance), and eye-distance point
* size attenuation ({@link ARBPointParameters ARB_point_parameters}).
*
*
Each such extension adds a small set of relatively inflexible per-vertex computations.
*
*
This inflexibility is in contrast to the typical flexibility provided by the underlying programmable floating point engines (whether micro-coded vertex
* engines, DSPs, or CPUs) that are traditionally used to implement OpenGL's per-vertex computations. The purpose of this extension is to expose to the
* OpenGL application writer a significant degree of per-vertex programmability for computing vertex parameters.
*
*
For the purposes of discussing this extension, a vertex program is a sequence of floating-point 4-component vector operations that determines how a set
* of program parameters (defined outside of OpenGL's {@link GL11#glBegin Begin}/{@link GL11#glEnd End} pair) and an input set of per-vertex parameters are transformed to a set of
* per-vertex result parameters.
*
*
The per-vertex computations for standard OpenGL given a particular set of lighting and texture coordinate generation modes (along with any state for
* extensions defining per-vertex computations) is, in essence, a vertex program. However, the sequence of operations is defined implicitly by the current
* OpenGL state settings rather than defined explicitly as a sequence of instructions.
*
*
This extension provides an explicit mechanism for defining vertex program instruction sequences for application-defined vertex programs. In order to
* define such vertex programs, this extension defines a vertex programming model including a floating-point 4-component vector instruction set and a
* relatively large set of floating-point 4-component registers.
*
*
The extension's vertex programming model is designed for efficient hardware implementation and to support a wide variety of vertex programs. By design,
* the entire set of existing vertex programs defined by existing OpenGL per-vertex computation extensions can be implemented using the extension's vertex
* programming model.
*/
public class ARBVertexProgram {
/**
* Accepted by the {@code cap} parameter of Disable, Enable, and IsEnabled, by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev, and by the {@code target} parameter of ProgramStringARB, BindProgramARB, ProgramEnvParameter4[df][v]ARB, ProgramLocalParameter4[df][v]ARB,
* GetProgramEnvParameter[df]vARB, GetProgramLocalParameter[df]vARB, GetProgramivARB, and GetProgramStringARB.
*/
public static final int GL_VERTEX_PROGRAM_ARB = 0x8620;
/**
* Accepted by the {@code cap} parameter of Disable, Enable, and IsEnabled, and by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev.
*/
public static final int
GL_VERTEX_PROGRAM_POINT_SIZE_ARB = 0x8642,
GL_VERTEX_PROGRAM_TWO_SIDE_ARB = 0x8643,
GL_COLOR_SUM_ARB = 0x8458;
/** Accepted by the {@code format} parameter of ProgramStringARB. */
public static final int GL_PROGRAM_FORMAT_ASCII_ARB = 0x8875;
/** Accepted by the {@code pname} parameter of GetVertexAttrib[dfi]vARB. */
public static final int
GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB = 0x8622,
GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB = 0x8623,
GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB = 0x8624,
GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB = 0x8625,
GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB = 0x886A,
GL_CURRENT_VERTEX_ATTRIB_ARB = 0x8626;
/** Accepted by the {@code pname} parameter of GetVertexAttribPointervARB. */
public static final int GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB = 0x8645;
/** Accepted by the {@code pname} parameter of GetProgramivARB. */
public static final int
GL_PROGRAM_LENGTH_ARB = 0x8627,
GL_PROGRAM_FORMAT_ARB = 0x8876,
GL_PROGRAM_BINDING_ARB = 0x8677,
GL_PROGRAM_INSTRUCTIONS_ARB = 0x88A0,
GL_MAX_PROGRAM_INSTRUCTIONS_ARB = 0x88A1,
GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A2,
GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A3,
GL_PROGRAM_TEMPORARIES_ARB = 0x88A4,
GL_MAX_PROGRAM_TEMPORARIES_ARB = 0x88A5,
GL_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A6,
GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A7,
GL_PROGRAM_PARAMETERS_ARB = 0x88A8,
GL_MAX_PROGRAM_PARAMETERS_ARB = 0x88A9,
GL_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AA,
GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AB,
GL_PROGRAM_ATTRIBS_ARB = 0x88AC,
GL_MAX_PROGRAM_ATTRIBS_ARB = 0x88AD,
GL_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AE,
GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AF,
GL_PROGRAM_ADDRESS_REGISTERS_ARB = 0x88B0,
GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB = 0x88B1,
GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B2,
GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B3,
GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 0x88B4,
GL_MAX_PROGRAM_ENV_PARAMETERS_ARB = 0x88B5,
GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB = 0x88B6;
/** Accepted by the {@code pname} parameter of GetProgramStringARB. */
public static final int GL_PROGRAM_STRING_ARB = 0x8628;
/** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. */
public static final int
GL_PROGRAM_ERROR_POSITION_ARB = 0x864B,
GL_CURRENT_MATRIX_ARB = 0x8641,
GL_TRANSPOSE_CURRENT_MATRIX_ARB = 0x88B7,
GL_CURRENT_MATRIX_STACK_DEPTH_ARB = 0x8640,
GL_MAX_VERTEX_ATTRIBS_ARB = 0x8869,
GL_MAX_PROGRAM_MATRICES_ARB = 0x862F,
GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB = 0x862E;
/** Accepted by the {@code name} parameter of GetString. */
public static final int GL_PROGRAM_ERROR_STRING_ARB = 0x8874;
/** Accepted by the {@code mode} parameter of MatrixMode. */
public static final int
GL_MATRIX0_ARB = 0x88C0,
GL_MATRIX1_ARB = 0x88C1,
GL_MATRIX2_ARB = 0x88C2,
GL_MATRIX3_ARB = 0x88C3,
GL_MATRIX4_ARB = 0x88C4,
GL_MATRIX5_ARB = 0x88C5,
GL_MATRIX6_ARB = 0x88C6,
GL_MATRIX7_ARB = 0x88C7,
GL_MATRIX8_ARB = 0x88C8,
GL_MATRIX9_ARB = 0x88C9,
GL_MATRIX10_ARB = 0x88CA,
GL_MATRIX11_ARB = 0x88CB,
GL_MATRIX12_ARB = 0x88CC,
GL_MATRIX13_ARB = 0x88CD,
GL_MATRIX14_ARB = 0x88CE,
GL_MATRIX15_ARB = 0x88CF,
GL_MATRIX16_ARB = 0x88D0,
GL_MATRIX17_ARB = 0x88D1,
GL_MATRIX18_ARB = 0x88D2,
GL_MATRIX19_ARB = 0x88D3,
GL_MATRIX20_ARB = 0x88D4,
GL_MATRIX21_ARB = 0x88D5,
GL_MATRIX22_ARB = 0x88D6,
GL_MATRIX23_ARB = 0x88D7,
GL_MATRIX24_ARB = 0x88D8,
GL_MATRIX25_ARB = 0x88D9,
GL_MATRIX26_ARB = 0x88DA,
GL_MATRIX27_ARB = 0x88DB,
GL_MATRIX28_ARB = 0x88DC,
GL_MATRIX29_ARB = 0x88DD,
GL_MATRIX30_ARB = 0x88DE,
GL_MATRIX31_ARB = 0x88DF;
static { GL.initialize(); }
protected ARBVertexProgram() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLCapabilities caps) {
return checkFunctions(
caps.glVertexAttrib1sARB, caps.glVertexAttrib1fARB, caps.glVertexAttrib1dARB, caps.glVertexAttrib2sARB, caps.glVertexAttrib2fARB,
caps.glVertexAttrib2dARB, caps.glVertexAttrib3sARB, caps.glVertexAttrib3fARB, caps.glVertexAttrib3dARB, caps.glVertexAttrib4sARB,
caps.glVertexAttrib4fARB, caps.glVertexAttrib4dARB, caps.glVertexAttrib4NubARB, caps.glVertexAttrib1svARB, caps.glVertexAttrib1fvARB,
caps.glVertexAttrib1dvARB, caps.glVertexAttrib2svARB, caps.glVertexAttrib2fvARB, caps.glVertexAttrib2dvARB, caps.glVertexAttrib3svARB,
caps.glVertexAttrib3fvARB, caps.glVertexAttrib3dvARB, caps.glVertexAttrib4fvARB, caps.glVertexAttrib4bvARB, caps.glVertexAttrib4svARB,
caps.glVertexAttrib4ivARB, caps.glVertexAttrib4ubvARB, caps.glVertexAttrib4usvARB, caps.glVertexAttrib4uivARB, caps.glVertexAttrib4dvARB,
caps.glVertexAttrib4NbvARB, caps.glVertexAttrib4NsvARB, caps.glVertexAttrib4NivARB, caps.glVertexAttrib4NubvARB, caps.glVertexAttrib4NusvARB,
caps.glVertexAttrib4NuivARB, caps.glVertexAttribPointerARB, caps.glEnableVertexAttribArrayARB, caps.glDisableVertexAttribArrayARB,
caps.glProgramStringARB, caps.glBindProgramARB, caps.glDeleteProgramsARB, caps.glGenProgramsARB, caps.glProgramEnvParameter4dARB,
caps.glProgramEnvParameter4dvARB, caps.glProgramEnvParameter4fARB, caps.glProgramEnvParameter4fvARB, caps.glProgramLocalParameter4dARB,
caps.glProgramLocalParameter4dvARB, caps.glProgramLocalParameter4fARB, caps.glProgramLocalParameter4fvARB, caps.glGetProgramEnvParameterfvARB,
caps.glGetProgramEnvParameterdvARB, caps.glGetProgramLocalParameterfvARB, caps.glGetProgramLocalParameterdvARB, caps.glGetProgramivARB,
caps.glGetProgramStringARB, caps.glGetVertexAttribfvARB, caps.glGetVertexAttribdvARB, caps.glGetVertexAttribivARB,
caps.glGetVertexAttribPointervARB, caps.glIsProgramARB
);
}
// --- [ glVertexAttrib1sARB ] ---
/**
* Short version of {@link #glVertexAttrib1fARB VertexAttrib1fARB}
*
* @param index the vertex attribute index
* @param x the {@code x} attribute component
*/
public static native void glVertexAttrib1sARB(@NativeType("GLuint") int index, @NativeType("GLshort") short x);
// --- [ glVertexAttrib1fARB ] ---
/**
* Specifies the {@code x} component of the current vertex attribute numbered {@code index}. Components {@code y} and {@code z} are set to 0 and {@code w} to 1.
*
* @param index the vertex attribute index
* @param x the {@code x} attribute component
*/
public static native void glVertexAttrib1fARB(@NativeType("GLuint") int index, @NativeType("GLfloat") float x);
// --- [ glVertexAttrib1dARB ] ---
/**
* Double version of {@link #glVertexAttrib1fARB VertexAttrib1fARB}
*
* @param index the vertex attribute index
* @param x the {@code x} attribute component
*/
public static native void glVertexAttrib1dARB(@NativeType("GLuint") int index, @NativeType("GLdouble") double x);
// --- [ glVertexAttrib2sARB ] ---
/**
* Short version of {@link #glVertexAttrib2fARB VertexAttrib2fARB}
*
* @param index the vertex attribute index
* @param x the {@code x} attribute component
* @param y the {@code y} attribute component
*/
public static native void glVertexAttrib2sARB(@NativeType("GLuint") int index, @NativeType("GLshort") short x, @NativeType("GLshort") short y);
// --- [ glVertexAttrib2fARB ] ---
/**
* Specifies the {@code x} and {@code y} components of the current vertex attribute numbered {@code index}. Component {@code z} is set to 0 and {@code w} to 1.
*
* @param index the vertex attribute index
* @param x the {@code x} attribute component
* @param y the {@code y} attribute component
*/
public static native void glVertexAttrib2fARB(@NativeType("GLuint") int index, @NativeType("GLfloat") float x, @NativeType("GLfloat") float y);
// --- [ glVertexAttrib2dARB ] ---
/**
* Double version of {@link #glVertexAttrib2fARB VertexAttrib2fARB}
*
* @param index the vertex attribute index
* @param x the {@code x} attribute component
* @param y the {@code y} attribute component
*/
public static native void glVertexAttrib2dARB(@NativeType("GLuint") int index, @NativeType("GLdouble") double x, @NativeType("GLdouble") double y);
// --- [ glVertexAttrib3sARB ] ---
/**
* Short version of {@link #glVertexAttrib3fARB VertexAttrib3fARB}
*
* @param index the vertex attribute index
* @param x the {@code x} attribute component
* @param y the {@code y} attribute component
* @param z the {@code z} attribute component
*/
public static native void glVertexAttrib3sARB(@NativeType("GLuint") int index, @NativeType("GLshort") short x, @NativeType("GLshort") short y, @NativeType("GLshort") short z);
// --- [ glVertexAttrib3fARB ] ---
/**
* Specifies the {@code x}, {@code y} and {@code z} components of the current vertex attribute numbered {@code index}. Component {@code w} is set to 1.
*
* @param index the vertex attribute index
* @param x the {@code x} attribute component
* @param y the {@code y} attribute component
* @param z the {@code z} attribute component
*/
public static native void glVertexAttrib3fARB(@NativeType("GLuint") int index, @NativeType("GLfloat") float x, @NativeType("GLfloat") float y, @NativeType("GLfloat") float z);
// --- [ glVertexAttrib3dARB ] ---
/**
* Double version of {@link #glVertexAttrib3fARB VertexAttrib3fARB}
*
* @param index the vertex attribute index
* @param x the {@code x} attribute component
* @param y the {@code y} attribute component
* @param z the {@code z} attribute component
*/
public static native void glVertexAttrib3dARB(@NativeType("GLuint") int index, @NativeType("GLdouble") double x, @NativeType("GLdouble") double y, @NativeType("GLdouble") double z);
// --- [ glVertexAttrib4sARB ] ---
/**
* Short version of {@link #glVertexAttrib4fARB VertexAttrib4fARB}
*
* @param index the vertex attribute index
* @param x the {@code x} attribute component
* @param y the {@code y} attribute component
* @param z the {@code z} attribute component
* @param w the {@code w} attribute component
*/
public static native void glVertexAttrib4sARB(@NativeType("GLuint") int index, @NativeType("GLshort") short x, @NativeType("GLshort") short y, @NativeType("GLshort") short z, @NativeType("GLshort") short w);
// --- [ glVertexAttrib4fARB ] ---
/**
* Specifies the current vertex attribute numbered {@code index}.
*
* @param index the vertex attribute index
* @param x the {@code x} attribute component
* @param y the {@code y} attribute component
* @param z the {@code z} attribute component
* @param w the {@code w} attribute component
*/
public static native void glVertexAttrib4fARB(@NativeType("GLuint") int index, @NativeType("GLfloat") float x, @NativeType("GLfloat") float y, @NativeType("GLfloat") float z, @NativeType("GLfloat") float w);
// --- [ glVertexAttrib4dARB ] ---
/**
* Double version of {@link #glVertexAttrib4fARB VertexAttrib4fARB}
*
* @param index the vertex attribute index
* @param x the {@code x} attribute component
* @param y the {@code y} attribute component
* @param z the {@code z} attribute component
* @param w the {@code w} attribute component
*/
public static native void glVertexAttrib4dARB(@NativeType("GLuint") int index, @NativeType("GLdouble") double x, @NativeType("GLdouble") double y, @NativeType("GLdouble") double z, @NativeType("GLdouble") double w);
// --- [ glVertexAttrib4NubARB ] ---
/**
* Fixed-point unsigned byte version of {@link #glVertexAttrib4fARB VertexAttrib4fARB}
*
* @param index the vertex attribute index
* @param x the {@code x} attribute component
* @param y the {@code y} attribute component
* @param z the {@code z} attribute component
* @param w the {@code w} attribute component
*/
public static native void glVertexAttrib4NubARB(@NativeType("GLuint") int index, @NativeType("GLubyte") byte x, @NativeType("GLubyte") byte y, @NativeType("GLubyte") byte z, @NativeType("GLubyte") byte w);
// --- [ glVertexAttrib1svARB ] ---
/** Unsafe version of: {@link #glVertexAttrib1svARB VertexAttrib1svARB} */
public static native void nglVertexAttrib1svARB(int index, long v);
/**
* Pointer version of {@link #glVertexAttrib1sARB VertexAttrib1sARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib1svARB(@NativeType("GLuint") int index, @NativeType("const GLshort *") ShortBuffer v) {
if (CHECKS) {
check(v, 1);
}
nglVertexAttrib1svARB(index, memAddress(v));
}
// --- [ glVertexAttrib1fvARB ] ---
/** Unsafe version of: {@link #glVertexAttrib1fvARB VertexAttrib1fvARB} */
public static native void nglVertexAttrib1fvARB(int index, long v);
/**
* Pointer version of {@link #glVertexAttrib1fARB VertexAttrib1fARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib1fvARB(@NativeType("GLuint") int index, @NativeType("const GLfloat *") FloatBuffer v) {
if (CHECKS) {
check(v, 1);
}
nglVertexAttrib1fvARB(index, memAddress(v));
}
// --- [ glVertexAttrib1dvARB ] ---
/** Unsafe version of: {@link #glVertexAttrib1dvARB VertexAttrib1dvARB} */
public static native void nglVertexAttrib1dvARB(int index, long v);
/**
* Pointer version of {@link #glVertexAttrib1dARB VertexAttrib1dARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib1dvARB(@NativeType("GLuint") int index, @NativeType("const GLdouble *") DoubleBuffer v) {
if (CHECKS) {
check(v, 1);
}
nglVertexAttrib1dvARB(index, memAddress(v));
}
// --- [ glVertexAttrib2svARB ] ---
/** Unsafe version of: {@link #glVertexAttrib2svARB VertexAttrib2svARB} */
public static native void nglVertexAttrib2svARB(int index, long v);
/**
* Pointer version of {@link #glVertexAttrib2sARB VertexAttrib2sARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib2svARB(@NativeType("GLuint") int index, @NativeType("const GLshort *") ShortBuffer v) {
if (CHECKS) {
check(v, 2);
}
nglVertexAttrib2svARB(index, memAddress(v));
}
// --- [ glVertexAttrib2fvARB ] ---
/** Unsafe version of: {@link #glVertexAttrib2fvARB VertexAttrib2fvARB} */
public static native void nglVertexAttrib2fvARB(int index, long v);
/**
* Pointer version of {@link #glVertexAttrib2fARB VertexAttrib2fARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib2fvARB(@NativeType("GLuint") int index, @NativeType("const GLfloat *") FloatBuffer v) {
if (CHECKS) {
check(v, 2);
}
nglVertexAttrib2fvARB(index, memAddress(v));
}
// --- [ glVertexAttrib2dvARB ] ---
/** Unsafe version of: {@link #glVertexAttrib2dvARB VertexAttrib2dvARB} */
public static native void nglVertexAttrib2dvARB(int index, long v);
/**
* Pointer version of {@link #glVertexAttrib2dARB VertexAttrib2dARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib2dvARB(@NativeType("GLuint") int index, @NativeType("const GLdouble *") DoubleBuffer v) {
if (CHECKS) {
check(v, 2);
}
nglVertexAttrib2dvARB(index, memAddress(v));
}
// --- [ glVertexAttrib3svARB ] ---
/** Unsafe version of: {@link #glVertexAttrib3svARB VertexAttrib3svARB} */
public static native void nglVertexAttrib3svARB(int index, long v);
/**
* Pointer version of {@link #glVertexAttrib3sARB VertexAttrib3sARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib3svARB(@NativeType("GLuint") int index, @NativeType("const GLshort *") ShortBuffer v) {
if (CHECKS) {
check(v, 3);
}
nglVertexAttrib3svARB(index, memAddress(v));
}
// --- [ glVertexAttrib3fvARB ] ---
/** Unsafe version of: {@link #glVertexAttrib3fvARB VertexAttrib3fvARB} */
public static native void nglVertexAttrib3fvARB(int index, long v);
/**
* Pointer version of {@link #glVertexAttrib3fARB VertexAttrib3fARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib3fvARB(@NativeType("GLuint") int index, @NativeType("const GLfloat *") FloatBuffer v) {
if (CHECKS) {
check(v, 3);
}
nglVertexAttrib3fvARB(index, memAddress(v));
}
// --- [ glVertexAttrib3dvARB ] ---
/** Unsafe version of: {@link #glVertexAttrib3dvARB VertexAttrib3dvARB} */
public static native void nglVertexAttrib3dvARB(int index, long v);
/**
* Pointer version of {@link #glVertexAttrib3dARB VertexAttrib3dARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib3dvARB(@NativeType("GLuint") int index, @NativeType("const GLdouble *") DoubleBuffer v) {
if (CHECKS) {
check(v, 3);
}
nglVertexAttrib3dvARB(index, memAddress(v));
}
// --- [ glVertexAttrib4fvARB ] ---
/** Unsafe version of: {@link #glVertexAttrib4fvARB VertexAttrib4fvARB} */
public static native void nglVertexAttrib4fvARB(int index, long v);
/**
* Pointer version of {@link #glVertexAttrib4fARB VertexAttrib4fARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib4fvARB(@NativeType("GLuint") int index, @NativeType("const GLfloat *") FloatBuffer v) {
if (CHECKS) {
check(v, 4);
}
nglVertexAttrib4fvARB(index, memAddress(v));
}
// --- [ glVertexAttrib4bvARB ] ---
/** Unsafe version of: {@link #glVertexAttrib4bvARB VertexAttrib4bvARB} */
public static native void nglVertexAttrib4bvARB(int index, long v);
/**
* Byte version of {@link #glVertexAttrib4fvARB VertexAttrib4fvARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib4bvARB(@NativeType("GLuint") int index, @NativeType("const GLbyte *") ByteBuffer v) {
if (CHECKS) {
check(v, 4);
}
nglVertexAttrib4bvARB(index, memAddress(v));
}
// --- [ glVertexAttrib4svARB ] ---
/** Unsafe version of: {@link #glVertexAttrib4svARB VertexAttrib4svARB} */
public static native void nglVertexAttrib4svARB(int index, long v);
/**
* Pointer version of {@link #glVertexAttrib4sARB VertexAttrib4sARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib4svARB(@NativeType("GLuint") int index, @NativeType("const GLshort *") ShortBuffer v) {
if (CHECKS) {
check(v, 4);
}
nglVertexAttrib4svARB(index, memAddress(v));
}
// --- [ glVertexAttrib4ivARB ] ---
/** Unsafe version of: {@link #glVertexAttrib4ivARB VertexAttrib4ivARB} */
public static native void nglVertexAttrib4ivARB(int index, long v);
/**
* Integer version of {@link #glVertexAttrib4fvARB VertexAttrib4fvARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib4ivARB(@NativeType("GLuint") int index, @NativeType("const GLint *") IntBuffer v) {
if (CHECKS) {
check(v, 4);
}
nglVertexAttrib4ivARB(index, memAddress(v));
}
// --- [ glVertexAttrib4ubvARB ] ---
/** Unsafe version of: {@link #glVertexAttrib4ubvARB VertexAttrib4ubvARB} */
public static native void nglVertexAttrib4ubvARB(int index, long v);
/**
* Unsigned byte version of {@link #glVertexAttrib4fvARB VertexAttrib4fvARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib4ubvARB(@NativeType("GLuint") int index, @NativeType("const GLubyte *") ByteBuffer v) {
if (CHECKS) {
check(v, 4);
}
nglVertexAttrib4ubvARB(index, memAddress(v));
}
// --- [ glVertexAttrib4usvARB ] ---
/** Unsafe version of: {@link #glVertexAttrib4usvARB VertexAttrib4usvARB} */
public static native void nglVertexAttrib4usvARB(int index, long v);
/**
* Unsigned short version of {@link #glVertexAttrib4fvARB VertexAttrib4fvARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib4usvARB(@NativeType("GLuint") int index, @NativeType("const GLushort *") ShortBuffer v) {
if (CHECKS) {
check(v, 4);
}
nglVertexAttrib4usvARB(index, memAddress(v));
}
// --- [ glVertexAttrib4uivARB ] ---
/** Unsafe version of: {@link #glVertexAttrib4uivARB VertexAttrib4uivARB} */
public static native void nglVertexAttrib4uivARB(int index, long v);
/**
* Unsigned integer version of {@link #glVertexAttrib4fvARB VertexAttrib4fvARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib4uivARB(@NativeType("GLuint") int index, @NativeType("const GLuint *") IntBuffer v) {
if (CHECKS) {
check(v, 4);
}
nglVertexAttrib4uivARB(index, memAddress(v));
}
// --- [ glVertexAttrib4dvARB ] ---
/** Unsafe version of: {@link #glVertexAttrib4dvARB VertexAttrib4dvARB} */
public static native void nglVertexAttrib4dvARB(int index, long v);
/**
* Pointer version of {@link #glVertexAttrib4dARB VertexAttrib4dARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib4dvARB(@NativeType("GLuint") int index, @NativeType("const GLdouble *") DoubleBuffer v) {
if (CHECKS) {
check(v, 4);
}
nglVertexAttrib4dvARB(index, memAddress(v));
}
// --- [ glVertexAttrib4NbvARB ] ---
/** Unsafe version of: {@link #glVertexAttrib4NbvARB VertexAttrib4NbvARB} */
public static native void nglVertexAttrib4NbvARB(int index, long v);
/**
* Fixed-point version of {@link #glVertexAttrib4bvARB VertexAttrib4bvARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib4NbvARB(@NativeType("GLuint") int index, @NativeType("const GLbyte *") ByteBuffer v) {
if (CHECKS) {
check(v, 4);
}
nglVertexAttrib4NbvARB(index, memAddress(v));
}
// --- [ glVertexAttrib4NsvARB ] ---
/** Unsafe version of: {@link #glVertexAttrib4NsvARB VertexAttrib4NsvARB} */
public static native void nglVertexAttrib4NsvARB(int index, long v);
/**
* Fixed-point version of {@link #glVertexAttrib4svARB VertexAttrib4svARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib4NsvARB(@NativeType("GLuint") int index, @NativeType("const GLshort *") ShortBuffer v) {
if (CHECKS) {
check(v, 4);
}
nglVertexAttrib4NsvARB(index, memAddress(v));
}
// --- [ glVertexAttrib4NivARB ] ---
/** Unsafe version of: {@link #glVertexAttrib4NivARB VertexAttrib4NivARB} */
public static native void nglVertexAttrib4NivARB(int index, long v);
/**
* Fixed-point version of {@link #glVertexAttrib4ivARB VertexAttrib4ivARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib4NivARB(@NativeType("GLuint") int index, @NativeType("const GLint *") IntBuffer v) {
if (CHECKS) {
check(v, 4);
}
nglVertexAttrib4NivARB(index, memAddress(v));
}
// --- [ glVertexAttrib4NubvARB ] ---
/** Unsafe version of: {@link #glVertexAttrib4NubvARB VertexAttrib4NubvARB} */
public static native void nglVertexAttrib4NubvARB(int index, long v);
/**
* Fixed-point unsigned version of {@link #glVertexAttrib4bvARB VertexAttrib4bvARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib4NubvARB(@NativeType("GLuint") int index, @NativeType("const GLubyte *") ByteBuffer v) {
if (CHECKS) {
check(v, 4);
}
nglVertexAttrib4NubvARB(index, memAddress(v));
}
// --- [ glVertexAttrib4NusvARB ] ---
/** Unsafe version of: {@link #glVertexAttrib4NusvARB VertexAttrib4NusvARB} */
public static native void nglVertexAttrib4NusvARB(int index, long v);
/**
* Fixed-point unsigned version of {@link #glVertexAttrib4svARB VertexAttrib4svARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib4NusvARB(@NativeType("GLuint") int index, @NativeType("const GLushort *") ShortBuffer v) {
if (CHECKS) {
check(v, 4);
}
nglVertexAttrib4NusvARB(index, memAddress(v));
}
// --- [ glVertexAttrib4NuivARB ] ---
/** Unsafe version of: {@link #glVertexAttrib4NuivARB VertexAttrib4NuivARB} */
public static native void nglVertexAttrib4NuivARB(int index, long v);
/**
* Fixed-point unsigned version of {@link #glVertexAttrib4ivARB VertexAttrib4ivARB}
*
* @param index the vertex attribute index
* @param v a buffer from which to read the attribute value
*/
public static void glVertexAttrib4NuivARB(@NativeType("GLuint") int index, @NativeType("const GLuint *") IntBuffer v) {
if (CHECKS) {
check(v, 4);
}
nglVertexAttrib4NuivARB(index, memAddress(v));
}
// --- [ glVertexAttribPointerARB ] ---
/** Unsafe version of: {@link #glVertexAttribPointerARB VertexAttribPointerARB} */
public static native void nglVertexAttribPointerARB(int index, int size, int type, boolean normalized, int stride, long pointer);
/**
* Specifies the location and organization of a vertex attribute array.
*
* @param index the vertex attribute index
* @param size the vertex attribute number of components. One of:
1
2
3
4
* @param type the data type of the values stored in the array. One of:
* @param normalized if {@link GL11#GL_TRUE TRUE}, fixed-point types are normalized when converted to floating-point
* @param stride the vertex stride in bytes. If specified as zero, then array elements are stored sequentially
* @param pointer the vertex attribute array data
*/
public static void glVertexAttribPointerARB(@NativeType("GLuint") int index, @NativeType("GLint") int size, @NativeType("GLenum") int type, @NativeType("GLboolean") boolean normalized, @NativeType("GLsizei") int stride, @NativeType("const void *") ByteBuffer pointer) {
nglVertexAttribPointerARB(index, size, type, normalized, stride, memAddress(pointer));
}
/**
* Specifies the location and organization of a vertex attribute array.
*
* @param index the vertex attribute index
* @param size the vertex attribute number of components. One of:
1
2
3
4
* @param type the data type of the values stored in the array. One of:
* @param normalized if {@link GL11#GL_TRUE TRUE}, fixed-point types are normalized when converted to floating-point
* @param stride the vertex stride in bytes. If specified as zero, then array elements are stored sequentially
* @param pointer the vertex attribute array data
*/
public static void glVertexAttribPointerARB(@NativeType("GLuint") int index, @NativeType("GLint") int size, @NativeType("GLenum") int type, @NativeType("GLboolean") boolean normalized, @NativeType("GLsizei") int stride, @NativeType("const void *") long pointer) {
nglVertexAttribPointerARB(index, size, type, normalized, stride, pointer);
}
/**
* Specifies the location and organization of a vertex attribute array.
*
* @param index the vertex attribute index
* @param size the vertex attribute number of components. One of:
1
2
3
4
* @param type the data type of the values stored in the array. One of:
* @param normalized if {@link GL11#GL_TRUE TRUE}, fixed-point types are normalized when converted to floating-point
* @param stride the vertex stride in bytes. If specified as zero, then array elements are stored sequentially
* @param pointer the vertex attribute array data
*/
public static void glVertexAttribPointerARB(@NativeType("GLuint") int index, @NativeType("GLint") int size, @NativeType("GLenum") int type, @NativeType("GLboolean") boolean normalized, @NativeType("GLsizei") int stride, @NativeType("const void *") ShortBuffer pointer) {
nglVertexAttribPointerARB(index, size, type, normalized, stride, memAddress(pointer));
}
/**
* Specifies the location and organization of a vertex attribute array.
*
* @param index the vertex attribute index
* @param size the vertex attribute number of components. One of:
1
2
3
4
* @param type the data type of the values stored in the array. One of:
* @param normalized if {@link GL11#GL_TRUE TRUE}, fixed-point types are normalized when converted to floating-point
* @param stride the vertex stride in bytes. If specified as zero, then array elements are stored sequentially
* @param pointer the vertex attribute array data
*/
public static void glVertexAttribPointerARB(@NativeType("GLuint") int index, @NativeType("GLint") int size, @NativeType("GLenum") int type, @NativeType("GLboolean") boolean normalized, @NativeType("GLsizei") int stride, @NativeType("const void *") IntBuffer pointer) {
nglVertexAttribPointerARB(index, size, type, normalized, stride, memAddress(pointer));
}
/**
* Specifies the location and organization of a vertex attribute array.
*
* @param index the vertex attribute index
* @param size the vertex attribute number of components. One of:
1
2
3
4
* @param type the data type of the values stored in the array. One of:
* @param normalized if {@link GL11#GL_TRUE TRUE}, fixed-point types are normalized when converted to floating-point
* @param stride the vertex stride in bytes. If specified as zero, then array elements are stored sequentially
* @param pointer the vertex attribute array data
*/
public static void glVertexAttribPointerARB(@NativeType("GLuint") int index, @NativeType("GLint") int size, @NativeType("GLenum") int type, @NativeType("GLboolean") boolean normalized, @NativeType("GLsizei") int stride, @NativeType("const void *") FloatBuffer pointer) {
nglVertexAttribPointerARB(index, size, type, normalized, stride, memAddress(pointer));
}
// --- [ glEnableVertexAttribArrayARB ] ---
/**
* Enables an individual generic vertex attribute array.
*
* @param index the vertex attribute index
*/
public static native void glEnableVertexAttribArrayARB(@NativeType("GLuint") int index);
// --- [ glDisableVertexAttribArrayARB ] ---
/**
* Disables an individual generic vertex attribute array.
*
* @param index the vertex attribute index
*/
public static native void glDisableVertexAttribArrayARB(@NativeType("GLuint") int index);
// --- [ glProgramStringARB ] ---
/**
* Unsafe version of: {@link #glProgramStringARB ProgramStringARB}
*
* @param len the length of the program string, excluding the null-terminator
*/
public static native void nglProgramStringARB(int target, int format, int len, long string);
/**
* Updates the program string for the current program object for {@code target}.
*
*
When a program string is loaded, it is interpreted according to syntactic and semantic rules corresponding to the program target specified by
* {@code target}. If a program violates the syntactic or semantic restrictions of the program target, ProgramStringARB generates the error
* {@link GL11#GL_INVALID_OPERATION INVALID_OPERATION}.
*
*
Additionally, ProgramString will update the program error position ({@link #GL_PROGRAM_ERROR_POSITION_ARB PROGRAM_ERROR_POSITION_ARB}) and error string ({@link #GL_PROGRAM_ERROR_STRING_ARB PROGRAM_ERROR_STRING_ARB}). If a
* program fails to load, the value of the program error position is set to the ubyte offset into the specified program string indicating where the first
* program error was detected. If the program fails to load because of a semantic restriction that is not detected until the program is fully scanned, the
* error position is set to the value of {@code len}. If a program loads successfully, the error position is set to the value negative one. The
* implementation-dependent program error string contains one or more error or warning messages. If a program loads succesfully, the error string may
* either contain warning messages or be empty.
* @param string an array of bytes representing the program string being loaded
*/
public static void glProgramStringARB(@NativeType("GLenum") int target, @NativeType("GLenum") int format, @NativeType("const void *") ByteBuffer string) {
nglProgramStringARB(target, format, string.remaining(), memAddress(string));
}
// --- [ glBindProgramARB ] ---
/**
* Creates a named program object by binding an unused program object name to a valid program target. Also can be used to bind an existing program object
* to a program target.
*
* @param target the program target. One of:
* @param program the program object to bind. If {@code program} is zero, the default program object for {@code target} is bound. If {@code program} is the name of
* an existing program object whose associated program target is {@code target}, the named program object is bound.
*/
public static native void glBindProgramARB(@NativeType("GLenum") int target, @NativeType("GLuint") int program);
// --- [ glDeleteProgramsARB ] ---
/**
* Unsafe version of: {@link #glDeleteProgramsARB DeleteProgramsARB}
*
* @param n the number of program object to delete
*/
public static native void nglDeleteProgramsARB(int n, long programs);
/**
* Deletes program objects.
*
* @param programs an array of {@code n} program objects to be deleted
*/
public static void glDeleteProgramsARB(@NativeType("const GLuint *") IntBuffer programs) {
nglDeleteProgramsARB(programs.remaining(), memAddress(programs));
}
// --- [ glGenProgramsARB ] ---
/**
* Unsafe version of: {@link #glGenProgramsARB GenProgramsARB}
*
* @param n the number of program names to genereate
*/
public static native void nglGenProgramsARB(int n, long programs);
/**
* Returns {@code n} currently unused program names in {@code programs}. These names are marked as used, for the purposes of GenProgramsARB only, but
* objects are created only when they are first bound using {@link #glBindProgramARB BindProgramARB}.
*
* @param programs an array in which to return the generated program names
*/
public static void glGenProgramsARB(@NativeType("GLuint *") IntBuffer programs) {
nglGenProgramsARB(programs.remaining(), memAddress(programs));
}
/**
* Returns {@code n} currently unused program names in {@code programs}. These names are marked as used, for the purposes of GenProgramsARB only, but
* objects are created only when they are first bound using {@link #glBindProgramARB BindProgramARB}.
*/
@NativeType("void")
public static int glGenProgramsARB() {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer programs = stack.callocInt(1);
nglGenProgramsARB(1, memAddress(programs));
return programs.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glProgramEnvParameter4dARB ] ---
/**
* Double version of {@link #glProgramEnvParameter4fARB ProgramEnvParameter4fARB}.
*
* @param target the program target. One of:
* @param index the environment parameter index
* @param x the {@code x} parameter component
* @param y the {@code y} parameter component
* @param z the {@code z} parameter component
* @param w the {@code w} parameter component
*/
public static native void glProgramEnvParameter4dARB(@NativeType("GLenum") int target, @NativeType("GLuint") int index, @NativeType("GLdouble") double x, @NativeType("GLdouble") double y, @NativeType("GLdouble") double z, @NativeType("GLdouble") double w);
// --- [ glProgramEnvParameter4dvARB ] ---
/** Unsafe version of: {@link #glProgramEnvParameter4dvARB ProgramEnvParameter4dvARB} */
public static native void nglProgramEnvParameter4dvARB(int target, int index, long params);
/**
* Pointer version of {@link #glProgramEnvParameter4dARB ProgramEnvParameter4dARB}
*
* @param target the program target. One of:
* @param index the environment parameter index
* @param params a buffer from which to read the parameter value
*/
public static void glProgramEnvParameter4dvARB(@NativeType("GLenum") int target, @NativeType("GLuint") int index, @NativeType("const GLdouble *") DoubleBuffer params) {
if (CHECKS) {
check(params, 4);
}
nglProgramEnvParameter4dvARB(target, index, memAddress(params));
}
// --- [ glProgramEnvParameter4fARB ] ---
/**
* Updates the values of the program environment parameter numbered {@code index} for the specified program target {@code target}.
*
* @param target the program target. One of:
* @param index the environment parameter index
* @param x the {@code x} parameter component
* @param y the {@code y} parameter component
* @param z the {@code z} parameter component
* @param w the {@code w} parameter component
*/
public static native void glProgramEnvParameter4fARB(@NativeType("GLenum") int target, @NativeType("GLuint") int index, @NativeType("GLfloat") float x, @NativeType("GLfloat") float y, @NativeType("GLfloat") float z, @NativeType("GLfloat") float w);
// --- [ glProgramEnvParameter4fvARB ] ---
/** Unsafe version of: {@link #glProgramEnvParameter4fvARB ProgramEnvParameter4fvARB} */
public static native void nglProgramEnvParameter4fvARB(int target, int index, long params);
/**
* Pointer version of {@link #glProgramEnvParameter4fARB ProgramEnvParameter4fARB}.
*
* @param target the program target. One of:
* @param index the environment parameter index
* @param params a buffer from which to read the parameter value
*/
public static void glProgramEnvParameter4fvARB(@NativeType("GLenum") int target, @NativeType("GLuint") int index, @NativeType("const GLfloat *") FloatBuffer params) {
if (CHECKS) {
check(params, 4);
}
nglProgramEnvParameter4fvARB(target, index, memAddress(params));
}
// --- [ glProgramLocalParameter4dARB ] ---
/**
* Double version of {@link #glProgramLocalParameter4fARB ProgramLocalParameter4fARB}.
*
* @param target the program target. One of:
* @param index the environment parameter index
* @param x the {@code x} parameter component
* @param y the {@code y} parameter component
* @param z the {@code z} parameter component
* @param w the {@code w} parameter component
*/
public static native void glProgramLocalParameter4dARB(@NativeType("GLenum") int target, @NativeType("GLuint") int index, @NativeType("GLdouble") double x, @NativeType("GLdouble") double y, @NativeType("GLdouble") double z, @NativeType("GLdouble") double w);
// --- [ glProgramLocalParameter4dvARB ] ---
/** Unsafe version of: {@link #glProgramLocalParameter4dvARB ProgramLocalParameter4dvARB} */
public static native void nglProgramLocalParameter4dvARB(int target, int index, long params);
/**
* Pointer version of {@link #glProgramLocalParameter4dARB ProgramLocalParameter4dARB}.
*
* @param target the program target. One of:
* @param index the environment parameter index
* @param params a buffer from which to read the parameter value
*/
public static void glProgramLocalParameter4dvARB(@NativeType("GLenum") int target, @NativeType("GLuint") int index, @NativeType("const GLdouble *") DoubleBuffer params) {
if (CHECKS) {
check(params, 4);
}
nglProgramLocalParameter4dvARB(target, index, memAddress(params));
}
// --- [ glProgramLocalParameter4fARB ] ---
/**
* Updates the values of the program local parameter numbered {@code index} for the specified program target {@code target}.
*
* @param target the program target. One of:
* @param index the environment parameter index
* @param x the {@code x} parameter component
* @param y the {@code y} parameter component
* @param z the {@code z} parameter component
* @param w the {@code w} parameter component
*/
public static native void glProgramLocalParameter4fARB(@NativeType("GLenum") int target, @NativeType("GLuint") int index, @NativeType("GLfloat") float x, @NativeType("GLfloat") float y, @NativeType("GLfloat") float z, @NativeType("GLfloat") float w);
// --- [ glProgramLocalParameter4fvARB ] ---
/** Unsafe version of: {@link #glProgramLocalParameter4fvARB ProgramLocalParameter4fvARB} */
public static native void nglProgramLocalParameter4fvARB(int target, int index, long params);
/**
* Pointer version of {@link #glProgramLocalParameter4fARB ProgramLocalParameter4fARB}.
*
* @param target the program target. One of:
* @param index the environment parameter index
* @param params a buffer from which to read the parameter value
*/
public static void glProgramLocalParameter4fvARB(@NativeType("GLenum") int target, @NativeType("GLuint") int index, @NativeType("const GLfloat *") FloatBuffer params) {
if (CHECKS) {
check(params, 4);
}
nglProgramLocalParameter4fvARB(target, index, memAddress(params));
}
// --- [ glGetProgramEnvParameterfvARB ] ---
/** Unsafe version of: {@link #glGetProgramEnvParameterfvARB GetProgramEnvParameterfvARB} */
public static native void nglGetProgramEnvParameterfvARB(int target, int index, long params);
/**
* Obtain the current value for the program environment parameter numbered {@code index} for the specified program target {@code target}, and places the
* information in the array {@code params}.
*
* @param target the program target. One of:
* @param index the environment parameter index
* @param params a buffer in which to place the current parameter value
*/
public static void glGetProgramEnvParameterfvARB(@NativeType("GLenum") int target, @NativeType("GLuint") int index, @NativeType("GLfloat *") FloatBuffer params) {
if (CHECKS) {
check(params, 4);
}
nglGetProgramEnvParameterfvARB(target, index, memAddress(params));
}
// --- [ glGetProgramEnvParameterdvARB ] ---
/** Unsafe version of: {@link #glGetProgramEnvParameterdvARB GetProgramEnvParameterdvARB} */
public static native void nglGetProgramEnvParameterdvARB(int target, int index, long params);
/**
* Double version of {@link #glGetProgramEnvParameterfvARB GetProgramEnvParameterfvARB}.
*
* @param target the program target. One of:
* @param index the environment parameter index
* @param params a buffer in which to place the current parameter value
*/
public static void glGetProgramEnvParameterdvARB(@NativeType("GLenum") int target, @NativeType("GLuint") int index, @NativeType("GLdouble *") DoubleBuffer params) {
if (CHECKS) {
check(params, 4);
}
nglGetProgramEnvParameterdvARB(target, index, memAddress(params));
}
// --- [ glGetProgramLocalParameterfvARB ] ---
/** Unsafe version of: {@link #glGetProgramLocalParameterfvARB GetProgramLocalParameterfvARB} */
public static native void nglGetProgramLocalParameterfvARB(int target, int index, long params);
/**
* Obtain the current value for the program local parameter numbered {@code index} for the specified program target {@code target}, and places the
* information in the array {@code params}.
*
* @param target the program target. One of:
* @param index the environment parameter index
* @param params a buffer in which to place the current parameter value
*/
public static void glGetProgramLocalParameterfvARB(@NativeType("GLenum") int target, @NativeType("GLuint") int index, @NativeType("GLfloat *") FloatBuffer params) {
if (CHECKS) {
check(params, 4);
}
nglGetProgramLocalParameterfvARB(target, index, memAddress(params));
}
// --- [ glGetProgramLocalParameterdvARB ] ---
/** Unsafe version of: {@link #glGetProgramLocalParameterdvARB GetProgramLocalParameterdvARB} */
public static native void nglGetProgramLocalParameterdvARB(int target, int index, long params);
/**
* Double version of {@link #glGetProgramLocalParameterfvARB GetProgramLocalParameterfvARB}.
*
* @param target the program target. One of:
* @param index the environment parameter index
* @param params a buffer in which to place the current parameter value
*/
public static void glGetProgramLocalParameterdvARB(@NativeType("GLenum") int target, @NativeType("GLuint") int index, @NativeType("GLdouble *") DoubleBuffer params) {
if (CHECKS) {
check(params, 4);
}
nglGetProgramLocalParameterdvARB(target, index, memAddress(params));
}
// --- [ glGetProgramivARB ] ---
/** Unsafe version of: {@link #glGetProgramivARB GetProgramivARB} */
public static native void nglGetProgramivARB(int target, int pname, long params);
/**
* Obtains program state for the program target {@code target}, writing the state into the array given by {@code params}. GetProgramivARB can be used to
* determine the properties of the currently bound program object or implementation limits for {@code target}.
*
* @param target the program target. One of:
* @param params an array in which to place the parameter value
*/
public static void glGetProgramivARB(@NativeType("GLenum") int target, @NativeType("GLenum") int pname, @NativeType("GLint *") IntBuffer params) {
if (CHECKS) {
check(params, 1);
}
nglGetProgramivARB(target, pname, memAddress(params));
}
/**
* Obtains program state for the program target {@code target}, writing the state into the array given by {@code params}. GetProgramivARB can be used to
* determine the properties of the currently bound program object or implementation limits for {@code target}.
*
* @param target the program target. One of:
*/
@NativeType("void")
public static int glGetProgramiARB(@NativeType("GLenum") int target, @NativeType("GLenum") int pname) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer params = stack.callocInt(1);
nglGetProgramivARB(target, pname, memAddress(params));
return params.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glGetProgramStringARB ] ---
/** Unsafe version of: {@link #glGetProgramStringARB GetProgramStringARB} */
public static native void nglGetProgramStringARB(int target, int pname, long string);
/**
* Obtains the program string for the program object bound to {@code target} and places the information in the array {@code string}.
*
*
{@code n} ubytes are returned into the array program where {@code n} is the length of the program in ubytes, as returned by {@link #glGetProgramivARB GetProgramivARB} when
* {@code pname} is {@link #GL_PROGRAM_LENGTH_ARB PROGRAM_LENGTH_ARB}. The program string is always returned using the format given when the program string was specified.
* @param string an array in which to place the program string
*/
public static void glGetProgramStringARB(@NativeType("GLenum") int target, @NativeType("GLenum") int pname, @NativeType("void *") ByteBuffer string) {
if (CHECKS) {
if (DEBUG) {
check(string, glGetProgramiARB(target, GL_PROGRAM_LENGTH_ARB));
}
}
nglGetProgramStringARB(target, pname, memAddress(string));
}
// --- [ glGetVertexAttribfvARB ] ---
/** Unsafe version of: {@link #glGetVertexAttribfvARB GetVertexAttribfvARB} */
public static native void nglGetVertexAttribfvARB(int index, int pname, long params);
/**
* Obtains the vertex attribute state named by {@code pname} for the vertex attribute numbered {@code index} and places the information in the array
* {@code params}.
*
* @param index the vertex attribute index
* @param pname the parameter to query. Must be:
* @param params an array in which to place the parameter value
*/
public static void glGetVertexAttribfvARB(@NativeType("GLuint") int index, @NativeType("GLenum") int pname, @NativeType("GLfloat *") FloatBuffer params) {
if (CHECKS) {
check(params, 4);
}
nglGetVertexAttribfvARB(index, pname, memAddress(params));
}
// --- [ glGetVertexAttribdvARB ] ---
/** Unsafe version of: {@link #glGetVertexAttribdvARB GetVertexAttribdvARB} */
public static native void nglGetVertexAttribdvARB(int index, int pname, long params);
/**
* Double version of {@link #glGetVertexAttribfvARB GetVertexAttribfvARB}.
*
* @param index the vertex attribute index
* @param pname the parameter to query. Must be:
* @param params an array in which to place the parameter value
*/
public static void glGetVertexAttribdvARB(@NativeType("GLuint") int index, @NativeType("GLenum") int pname, @NativeType("GLdouble *") DoubleBuffer params) {
if (CHECKS) {
check(params, 4);
}
nglGetVertexAttribdvARB(index, pname, memAddress(params));
}
// --- [ glGetVertexAttribivARB ] ---
/** Unsafe version of: {@link #glGetVertexAttribivARB GetVertexAttribivARB} */
public static native void nglGetVertexAttribivARB(int index, int pname, long params);
/**
* Integer version of {@link #glGetVertexAttribfvARB GetVertexAttribfvARB}.
*
* @param index the vertex attribute index
* @param pname the parameter to query. One of:
* @param params an array in which to place the parameter value
*/
public static void glGetVertexAttribivARB(@NativeType("GLuint") int index, @NativeType("GLenum") int pname, @NativeType("GLint *") IntBuffer params) {
if (CHECKS) {
check(params, 1);
}
nglGetVertexAttribivARB(index, pname, memAddress(params));
}
/**
* Integer version of {@link #glGetVertexAttribfvARB GetVertexAttribfvARB}.
*
* @param index the vertex attribute index
* @param pname the parameter to query. One of:
*/
@NativeType("void")
public static int glGetVertexAttribiARB(@NativeType("GLuint") int index, @NativeType("GLenum") int pname) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer params = stack.callocInt(1);
nglGetVertexAttribivARB(index, pname, memAddress(params));
return params.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glGetVertexAttribPointervARB ] ---
/** Unsafe version of: {@link #glGetVertexAttribPointervARB GetVertexAttribPointervARB} */
public static native void nglGetVertexAttribPointervARB(int index, int pname, long pointer);
/**
* Obtains the pointer named {@code pname} for vertex attribute numbered {@code index} and places the information in the array {@code pointer}.
*
* @param index the vertex attribute index
* @param pname the parameter to query. Must be:
* @param pointer an array in which to place the vertex attribute array pointer
*/
public static void glGetVertexAttribPointervARB(@NativeType("GLuint") int index, @NativeType("GLenum") int pname, @NativeType("void **") PointerBuffer pointer) {
if (CHECKS) {
check(pointer, 1);
}
nglGetVertexAttribPointervARB(index, pname, memAddress(pointer));
}
/**
* Obtains the pointer named {@code pname} for vertex attribute numbered {@code index} and places the information in the array {@code pointer}.
*
* @param index the vertex attribute index
* @param pname the parameter to query. Must be: