public class ARBSeparateShaderObjects
extends java.lang.Object
Conventional GLSL requires multiple shader stages (vertex, fragment, geometry, tessellation control, and tessellation evaluation) to be linked into a single monolithic program object to specify a GLSL shader for each stage.
While GLSL's monolithic approach has some advantages for optimizing shaders as a unit that span multiple stages, all existing GPU hardware supports the more flexible mix-and-match approach.
Shaders written for HLSL9, Cg, the prior OpenGL assembly program extensions, and game console favor a more flexible "mix-and-match" approach to specifying shaders independently for these different shader stages. Many developers build their shader content around the mix-and-match approach where they can use a single vertex shader with multiple fragment shaders (or vice versa).
This extension adopts a "mix-and-match" shader stage model for GLSL allowing multiple different GLSL program objects to be bound at once each to an individual rendering pipeline stage independently of other stage bindings. This allows program objects to contain only the shader stages that best suit the applications needs.
This extension introduces the program pipeline object that serves as a container for the program bound to any particular rendering stage. It can be bound, unbound, and rebound to simply save and restore the complete shader stage to program object bindings. Like framebuffer and vertex array objects, program pipeline objects are "container" objects that are not shared between contexts.
To bind a program object to a specific shader stage or set of stages, UseProgramStages is used. The VERTEX_SHADER_BIT, GEOMETRY_SHADER_BIT,
FRAGMENT_SHADER_BIT, TESS_CONTROL_SHADER_BIT, and TESS_EVALUATION_SHADER_BIT tokens refer to the conventional vertex, geometry, fragment,
tessellation control and tessellation evaluation stages respectively. ActiveShaderProgram specifies the program that Uniform* commands will update.
While ActiveShaderProgram allows the use of conventional Uniform* commands to update uniform variable values for separable program objects, this
extension provides a preferrable interface in a set of ProgramUniform* commands that update the same uniform variables but take a parameter indicating
the program object to be updated, rather than updating the currently active program object. These commands mirror those introduced in
EXT_direct_state_access.
While ActiveShaderProgram provides a selector for setting and querying uniform values of a program object, the glProgramUniform* commands provide a
selector-free way to modify uniforms of a GLSL program object without an explicit bind. This selector-free model reduces API overhead and provides a
cleaner interface for applications.
Separate linking creates the possibility that certain output varyings of a shader may go unread by the subsequent shader inputting varyings. In this case, the output varyings are simply ignored. It is also possible input varyings from a shader may not be written as output varyings of a preceding shader. In this case, the unwritten input varying values are undefined.
This extension builds on the proof-of-concept provided by EXT_separate_shader_objects which demonstrated that separate shader objects can work
for GLSL. EXT_separate_shader_objects was a response to repeated requests for this functionality from 3D developers.
This ARB version addresses several "loose ends" in the prior EXT extension. In particular, it allows user-defined varyings with explicitly defined locations or implicitly assigned locations.
This ARB extension extends the GLSL language's use of layout qualifiers to provide cross-stage interfacing.
Requires OpenGL 2.0 or ARB_shader_objects. Promoted to core in OpenGL 4.1.
| Modifier and Type | Field and Description |
|---|---|
static int |
GL_ACTIVE_PROGRAM
Accepted by
type parameter to GetProgramPipelineiv. |
static int |
GL_ALL_SHADER_BITS
Accepted by
stages parameter to UseProgramStages. |
static int |
GL_FRAGMENT_SHADER_BIT
Accepted by
stages parameter to UseProgramStages. |
static int |
GL_GEOMETRY_SHADER_BIT
Accepted by
stages parameter to UseProgramStages. |
static int |
GL_PROGRAM_PIPELINE_BINDING
Accepted by the
pname parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev. |
static int |
GL_PROGRAM_SEPARABLE
Accepted by the
pname parameter of ProgramParameteri and GetProgramiv. |
static int |
GL_TESS_CONTROL_SHADER_BIT
Accepted by
stages parameter to UseProgramStages. |
static int |
GL_TESS_EVALUATION_SHADER_BIT
Accepted by
stages parameter to UseProgramStages. |
static int |
GL_VERTEX_SHADER_BIT
Accepted by
stages parameter to UseProgramStages. |
| Modifier and Type | Method and Description |
|---|---|
static void |
glActiveShaderProgram(int pipeline,
int program)
Sets the active program object for a program pipeline object.
|
static void |
glBindProgramPipeline(int pipeline)
Binds a program pipeline to the current context.
|
static int |
glCreateShaderProgramv(int type,
java.lang.CharSequence... strings)
Creates a stand-alone program from an array of null-terminated source code strings.
|
static int |
glCreateShaderProgramv(int type,
java.lang.CharSequence string)
Creates a stand-alone program from an array of null-terminated source code strings.
|
static int |
glCreateShaderProgramv(int type,
org.lwjgl.PointerBuffer strings)
Creates a stand-alone program from an array of null-terminated source code strings.
|
static void |
glDeleteProgramPipelines(int pipeline)
Deletes program pipeline objects.
|
static void |
glDeleteProgramPipelines(int[] pipelines)
Array version of:
DeleteProgramPipelines |
static void |
glDeleteProgramPipelines(java.nio.IntBuffer pipelines)
Deletes program pipeline objects.
|
static int |
glGenProgramPipelines()
Reserves program pipeline object names.
|
static void |
glGenProgramPipelines(int[] pipelines)
Array version of:
GenProgramPipelines |
static void |
glGenProgramPipelines(java.nio.IntBuffer pipelines)
Reserves program pipeline object names.
|
static int |
glGetProgramPipelinei(int pipeline,
int pname)
Retrieves properties of a program pipeline object.
|
static java.lang.String |
glGetProgramPipelineInfoLog(int pipeline)
Retrieves the info log string from a program pipeline object.
|
static java.lang.String |
glGetProgramPipelineInfoLog(int pipeline,
int bufSize)
Retrieves the info log string from a program pipeline object.
|
static void |
glGetProgramPipelineInfoLog(int pipeline,
int[] length,
java.nio.ByteBuffer infoLog)
Array version of:
GetProgramPipelineInfoLog |
static void |
glGetProgramPipelineInfoLog(int pipeline,
java.nio.IntBuffer length,
java.nio.ByteBuffer infoLog)
Retrieves the info log string from a program pipeline object.
|
static void |
glGetProgramPipelineiv(int pipeline,
int pname,
int[] params)
Array version of:
GetProgramPipelineiv |
static void |
glGetProgramPipelineiv(int pipeline,
int pname,
java.nio.IntBuffer params)
Retrieves properties of a program pipeline object.
|
static boolean |
glIsProgramPipeline(int pipeline)
Determines if a name corresponds to a program pipeline object.
|
static void |
glProgramParameteri(int program,
int pname,
int value)
Specifies the integer value of a program object parameter.
|
static void |
glProgramUniform1d(int program,
int location,
double x)
Specifies the value of a double uniform variable for a specified program object.
|
static void |
glProgramUniform1dv(int program,
int location,
double[] value)
Array version of:
ProgramUniform1dv |
static void |
glProgramUniform1dv(int program,
int location,
java.nio.DoubleBuffer value)
Specifies the value of a single double uniform variable or a double uniform variable array for a specified program object.
|
static void |
glProgramUniform1f(int program,
int location,
float x)
Specifies the value of a float uniform variable for a specified program object.
|
static void |
glProgramUniform1fv(int program,
int location,
float[] value)
Array version of:
ProgramUniform1fv |
static void |
glProgramUniform1fv(int program,
int location,
java.nio.FloatBuffer value)
Specifies the value of a single float uniform variable or a float uniform variable array for a specified program object.
|
static void |
glProgramUniform1i(int program,
int location,
int x)
Specifies the value of an int uniform variable for a specified program object.
|
static void |
glProgramUniform1iv(int program,
int location,
int[] value)
Array version of:
ProgramUniform1iv |
static void |
glProgramUniform1iv(int program,
int location,
java.nio.IntBuffer value)
Specifies the value of a single float uniform variable or a float uniform variable array for a specified program object.
|
static void |
glProgramUniform1ui(int program,
int location,
int x)
Specifies the value of a uint uniform variable for a specified program object.
|
static void |
glProgramUniform1uiv(int program,
int location,
int[] value)
Array version of:
ProgramUniform1uiv |
static void |
glProgramUniform1uiv(int program,
int location,
java.nio.IntBuffer value)
Specifies the value of a single uint uniform variable or a uint uniform variable array for a specified program object.
|
static void |
glProgramUniform2d(int program,
int location,
double x,
double y)
Specifies the value of a dvec2 uniform variable for a specified program object.
|
static void |
glProgramUniform2dv(int program,
int location,
double[] value)
Array version of:
ProgramUniform2dv |
static void |
glProgramUniform2dv(int program,
int location,
java.nio.DoubleBuffer value)
Specifies the value of a single dvec2 uniform variable or a dvec2 uniform variable array for a specified program object.
|
static void |
glProgramUniform2f(int program,
int location,
float x,
float y)
Specifies the value of a vec2 uniform variable for a specified program object.
|
static void |
glProgramUniform2fv(int program,
int location,
float[] value)
Array version of:
ProgramUniform2fv |
static void |
glProgramUniform2fv(int program,
int location,
java.nio.FloatBuffer value)
Specifies the value of a single vec2 uniform variable or a vec2 uniform variable array for a specified program object.
|
static void |
glProgramUniform2i(int program,
int location,
int x,
int y)
Specifies the value of an ivec2 uniform variable for a specified program object.
|
static void |
glProgramUniform2iv(int program,
int location,
int[] value)
Array version of:
ProgramUniform2iv |
static void |
glProgramUniform2iv(int program,
int location,
java.nio.IntBuffer value)
Specifies the value of a single ivec2 uniform variable or an ivec2 uniform variable array for a specified program object.
|
static void |
glProgramUniform2ui(int program,
int location,
int x,
int y)
Specifies the value of a uvec2 uniform variable for a specified program object.
|
static void |
glProgramUniform2uiv(int program,
int location,
int[] value)
Array version of:
ProgramUniform2uiv |
static void |
glProgramUniform2uiv(int program,
int location,
java.nio.IntBuffer value)
Specifies the value of a single uvec2 uniform variable or a uvec2 uniform variable array for a specified program object.
|
static void |
glProgramUniform3d(int program,
int location,
double x,
double y,
double z)
Specifies the value of a dvec3 uniform variable for a specified program object.
|
static void |
glProgramUniform3dv(int program,
int location,
double[] value)
Array version of:
ProgramUniform3dv |
static void |
glProgramUniform3dv(int program,
int location,
java.nio.DoubleBuffer value)
Specifies the value of a single dvec3 uniform variable or a dvec3 uniform variable array for a specified program object.
|
static void |
glProgramUniform3f(int program,
int location,
float x,
float y,
float z)
Specifies the value of a vec3 uniform variable for a specified program object.
|
static void |
glProgramUniform3fv(int program,
int location,
float[] value)
Array version of:
ProgramUniform3fv |
static void |
glProgramUniform3fv(int program,
int location,
java.nio.FloatBuffer value)
Specifies the value of a single vec3 uniform variable or a vec3 uniform variable array for a specified program object.
|
static void |
glProgramUniform3i(int program,
int location,
int x,
int y,
int z)
Specifies the value of an ivec3 uniform variable for a specified program object.
|
static void |
glProgramUniform3iv(int program,
int location,
int[] value)
Array version of:
ProgramUniform3iv |
static void |
glProgramUniform3iv(int program,
int location,
java.nio.IntBuffer value)
Specifies the value of a single ivec3 uniform variable or an ivec3 uniform variable array for a specified program object.
|
static void |
glProgramUniform3ui(int program,
int location,
int x,
int y,
int z)
Specifies the value of a uvec3 uniform variable for a specified program object.
|
static void |
glProgramUniform3uiv(int program,
int location,
int[] value)
Array version of:
ProgramUniform3uiv |
static void |
glProgramUniform3uiv(int program,
int location,
java.nio.IntBuffer value)
Specifies the value of a single uvec3 uniform variable or a uvec3 uniform variable array for a specified program object.
|
static void |
glProgramUniform4d(int program,
int location,
double x,
double y,
double z,
double w)
Specifies the value of a dvec4 uniform variable for a specified program object.
|
static void |
glProgramUniform4dv(int program,
int location,
double[] value)
Array version of:
ProgramUniform4dv |
static void |
glProgramUniform4dv(int program,
int location,
java.nio.DoubleBuffer value)
Specifies the value of a single dvec4 uniform variable or a dvec4 uniform variable array for a specified program object.
|
static void |
glProgramUniform4f(int program,
int location,
float x,
float y,
float z,
float w)
Specifies the value of a vec4 uniform variable for a specified program object.
|
static void |
glProgramUniform4fv(int program,
int location,
float[] value)
Array version of:
ProgramUniform4fv |
static void |
glProgramUniform4fv(int program,
int location,
java.nio.FloatBuffer value)
Specifies the value of a single vec4 uniform variable or a vec4 uniform variable array for a specified program object.
|
static void |
glProgramUniform4i(int program,
int location,
int x,
int y,
int z,
int w)
Specifies the value of an ivec4 uniform variable for a specified program object.
|
static void |
glProgramUniform4iv(int program,
int location,
int[] value)
Array version of:
ProgramUniform4iv |
static void |
glProgramUniform4iv(int program,
int location,
java.nio.IntBuffer value)
Specifies the value of a single ivec4 uniform variable or an ivec4 uniform variable array for a specified program object.
|
static void |
glProgramUniform4ui(int program,
int location,
int x,
int y,
int z,
int w)
Specifies the value of a uvec4 uniform variable for a specified program object.
|
static void |
glProgramUniform4uiv(int program,
int location,
int[] value)
Array version of:
ProgramUniform4uiv |
static void |
glProgramUniform4uiv(int program,
int location,
java.nio.IntBuffer value)
Specifies the value of a single uvec4 uniform variable or a uvec4 uniform variable array for a specified program object.
|
static void |
glProgramUniformMatrix2dv(int program,
int location,
boolean transpose,
double[] value)
Array version of:
ProgramUniformMatrix2dv |
static void |
glProgramUniformMatrix2dv(int program,
int location,
boolean transpose,
java.nio.DoubleBuffer value)
Specifies the value of a single dmat2 uniform variable or a dmat2 uniform variable array for the current program object.
|
static void |
glProgramUniformMatrix2fv(int program,
int location,
boolean transpose,
float[] value)
Array version of:
ProgramUniformMatrix2fv |
static void |
glProgramUniformMatrix2fv(int program,
int location,
boolean transpose,
java.nio.FloatBuffer value)
Specifies the value of a single mat2 uniform variable or a mat2 uniform variable array for the current program object.
|
static void |
glProgramUniformMatrix2x3dv(int program,
int location,
boolean transpose,
double[] value)
Array version of:
ProgramUniformMatrix2x3dv |
static void |
glProgramUniformMatrix2x3dv(int program,
int location,
boolean transpose,
java.nio.DoubleBuffer value)
Specifies the value of a single dmat2x3 uniform variable or a dmat2x3 uniform variable array for the current program object.
|
static void |
glProgramUniformMatrix2x3fv(int program,
int location,
boolean transpose,
float[] value)
Array version of:
ProgramUniformMatrix2x3fv |
static void |
glProgramUniformMatrix2x3fv(int program,
int location,
boolean transpose,
java.nio.FloatBuffer value)
Specifies the value of a single mat2x3 uniform variable or a mat2x3 uniform variable array for the current program object.
|
static void |
glProgramUniformMatrix2x4dv(int program,
int location,
boolean transpose,
double[] value)
Array version of:
ProgramUniformMatrix2x4dv |
static void |
glProgramUniformMatrix2x4dv(int program,
int location,
boolean transpose,
java.nio.DoubleBuffer value)
Specifies the value of a single dmat2x4 uniform variable or a dmat2x4 uniform variable array for the current program object.
|
static void |
glProgramUniformMatrix2x4fv(int program,
int location,
boolean transpose,
float[] value)
Array version of:
ProgramUniformMatrix2x4fv |
static void |
glProgramUniformMatrix2x4fv(int program,
int location,
boolean transpose,
java.nio.FloatBuffer value)
Specifies the value of a single mat2x4 uniform variable or a mat2x4 uniform variable array for the current program object.
|
static void |
glProgramUniformMatrix3dv(int program,
int location,
boolean transpose,
double[] value)
Array version of:
ProgramUniformMatrix3dv |
static void |
glProgramUniformMatrix3dv(int program,
int location,
boolean transpose,
java.nio.DoubleBuffer value)
Specifies the value of a single dmat3 uniform variable or a dmat3 uniform variable array for the current program object.
|
static void |
glProgramUniformMatrix3fv(int program,
int location,
boolean transpose,
float[] value)
Array version of:
ProgramUniformMatrix3fv |
static void |
glProgramUniformMatrix3fv(int program,
int location,
boolean transpose,
java.nio.FloatBuffer value)
Specifies the value of a single mat3 uniform variable or a mat3 uniform variable array for the current program object.
|
static void |
glProgramUniformMatrix3x2dv(int program,
int location,
boolean transpose,
double[] value)
Array version of:
ProgramUniformMatrix3x2dv |
static void |
glProgramUniformMatrix3x2dv(int program,
int location,
boolean transpose,
java.nio.DoubleBuffer value)
Specifies the value of a single dmat3x2 uniform variable or a dmat3x2 uniform variable array for the current program object.
|
static void |
glProgramUniformMatrix3x2fv(int program,
int location,
boolean transpose,
float[] value)
Array version of:
ProgramUniformMatrix3x2fv |
static void |
glProgramUniformMatrix3x2fv(int program,
int location,
boolean transpose,
java.nio.FloatBuffer value)
Specifies the value of a single mat3x2 uniform variable or a mat3x2 uniform variable array for the current program object.
|
static void |
glProgramUniformMatrix3x4dv(int program,
int location,
boolean transpose,
double[] value)
Array version of:
ProgramUniformMatrix3x4dv |
static void |
glProgramUniformMatrix3x4dv(int program,
int location,
boolean transpose,
java.nio.DoubleBuffer value)
Specifies the value of a single dmat3x4 uniform variable or a dmat3x4 uniform variable array for the current program object.
|
static void |
glProgramUniformMatrix3x4fv(int program,
int location,
boolean transpose,
float[] value)
Array version of:
ProgramUniformMatrix3x4fv |
static void |
glProgramUniformMatrix3x4fv(int program,
int location,
boolean transpose,
java.nio.FloatBuffer value)
Specifies the value of a single mat3x4 uniform variable or a mat3x4 uniform variable array for the current program object.
|
static void |
glProgramUniformMatrix4dv(int program,
int location,
boolean transpose,
double[] value)
Array version of:
ProgramUniformMatrix4dv |
static void |
glProgramUniformMatrix4dv(int program,
int location,
boolean transpose,
java.nio.DoubleBuffer value)
Specifies the value of a single dmat4 uniform variable or a dmat4 uniform variable array for the current program object.
|
static void |
glProgramUniformMatrix4fv(int program,
int location,
boolean transpose,
float[] value)
Array version of:
ProgramUniformMatrix4fv |
static void |
glProgramUniformMatrix4fv(int program,
int location,
boolean transpose,
java.nio.FloatBuffer value)
Specifies the value of a single mat4 uniform variable or a mat4 uniform variable array for the current program object.
|
static void |
glProgramUniformMatrix4x2dv(int program,
int location,
boolean transpose,
double[] value)
Array version of:
ProgramUniformMatrix4x2dv |
static void |
glProgramUniformMatrix4x2dv(int program,
int location,
boolean transpose,
java.nio.DoubleBuffer value)
Specifies the value of a single dmat4x2 uniform variable or a dmat4x2 uniform variable array for the current program object.
|
static void |
glProgramUniformMatrix4x2fv(int program,
int location,
boolean transpose,
float[] value)
Array version of:
ProgramUniformMatrix4x2fv |
static void |
glProgramUniformMatrix4x2fv(int program,
int location,
boolean transpose,
java.nio.FloatBuffer value)
Specifies the value of a single mat4x2 uniform variable or a mat4x2 uniform variable array for the current program object.
|
static void |
glProgramUniformMatrix4x3dv(int program,
int location,
boolean transpose,
double[] value)
Array version of:
ProgramUniformMatrix4x3dv |
static void |
glProgramUniformMatrix4x3dv(int program,
int location,
boolean transpose,
java.nio.DoubleBuffer value)
Specifies the value of a single dmat4x3 uniform variable or a dmat4x3 uniform variable array for the current program object.
|
static void |
glProgramUniformMatrix4x3fv(int program,
int location,
boolean transpose,
float[] value)
Array version of:
ProgramUniformMatrix4x3fv |
static void |
glProgramUniformMatrix4x3fv(int program,
int location,
boolean transpose,
java.nio.FloatBuffer value)
Specifies the value of a single mat4x3 uniform variable or a mat4x3 uniform variable array for the current program object.
|
static void |
glUseProgramStages(int pipeline,
int stages,
int program)
Binds stages of a program object to a program pipeline.
|
static void |
glValidateProgramPipeline(int pipeline)
Validates a program pipeline object against current GL state.
|
static int |
nglCreateShaderProgramv(int type,
int count,
long strings)
Unsafe version of:
CreateShaderProgramv |
static void |
nglDeleteProgramPipelines(int n,
long pipelines)
Unsafe version of:
DeleteProgramPipelines |
static void |
nglGenProgramPipelines(int n,
long pipelines)
Unsafe version of:
GenProgramPipelines |
static void |
nglGetProgramPipelineInfoLog(int pipeline,
int bufSize,
long length,
long infoLog)
Unsafe version of:
GetProgramPipelineInfoLog |
static void |
nglGetProgramPipelineiv(int pipeline,
int pname,
long params)
Unsafe version of:
GetProgramPipelineiv |
static void |
nglProgramUniform1dv(int program,
int location,
int count,
long value)
Unsafe version of:
ProgramUniform1dv |
static void |
nglProgramUniform1fv(int program,
int location,
int count,
long value)
Unsafe version of:
ProgramUniform1fv |
static void |
nglProgramUniform1iv(int program,
int location,
int count,
long value)
Unsafe version of:
ProgramUniform1iv |
static void |
nglProgramUniform1uiv(int program,
int location,
int count,
long value)
Unsafe version of:
ProgramUniform1uiv |
static void |
nglProgramUniform2dv(int program,
int location,
int count,
long value)
Unsafe version of:
ProgramUniform2dv |
static void |
nglProgramUniform2fv(int program,
int location,
int count,
long value)
Unsafe version of:
ProgramUniform2fv |
static void |
nglProgramUniform2iv(int program,
int location,
int count,
long value)
Unsafe version of:
ProgramUniform2iv |
static void |
nglProgramUniform2uiv(int program,
int location,
int count,
long value)
Unsafe version of:
ProgramUniform2uiv |
static void |
nglProgramUniform3dv(int program,
int location,
int count,
long value)
Unsafe version of:
ProgramUniform3dv |
static void |
nglProgramUniform3fv(int program,
int location,
int count,
long value)
Unsafe version of:
ProgramUniform3fv |
static void |
nglProgramUniform3iv(int program,
int location,
int count,
long value)
Unsafe version of:
ProgramUniform3iv |
static void |
nglProgramUniform3uiv(int program,
int location,
int count,
long value)
Unsafe version of:
ProgramUniform3uiv |
static void |
nglProgramUniform4dv(int program,
int location,
int count,
long value)
Unsafe version of:
ProgramUniform4dv |
static void |
nglProgramUniform4fv(int program,
int location,
int count,
long value)
Unsafe version of:
ProgramUniform4fv |
static void |
nglProgramUniform4iv(int program,
int location,
int count,
long value)
Unsafe version of:
ProgramUniform4iv |
static void |
nglProgramUniform4uiv(int program,
int location,
int count,
long value)
Unsafe version of:
ProgramUniform4uiv |
static void |
nglProgramUniformMatrix2dv(int program,
int location,
int count,
boolean transpose,
long value)
Unsafe version of:
ProgramUniformMatrix2dv |
static void |
nglProgramUniformMatrix2fv(int program,
int location,
int count,
boolean transpose,
long value)
Unsafe version of:
ProgramUniformMatrix2fv |
static void |
nglProgramUniformMatrix2x3dv(int program,
int location,
int count,
boolean transpose,
long value)
Unsafe version of:
ProgramUniformMatrix2x3dv |
static void |
nglProgramUniformMatrix2x3fv(int program,
int location,
int count,
boolean transpose,
long value)
Unsafe version of:
ProgramUniformMatrix2x3fv |
static void |
nglProgramUniformMatrix2x4dv(int program,
int location,
int count,
boolean transpose,
long value)
Unsafe version of:
ProgramUniformMatrix2x4dv |
static void |
nglProgramUniformMatrix2x4fv(int program,
int location,
int count,
boolean transpose,
long value)
Unsafe version of:
ProgramUniformMatrix2x4fv |
static void |
nglProgramUniformMatrix3dv(int program,
int location,
int count,
boolean transpose,
long value)
Unsafe version of:
ProgramUniformMatrix3dv |
static void |
nglProgramUniformMatrix3fv(int program,
int location,
int count,
boolean transpose,
long value)
Unsafe version of:
ProgramUniformMatrix3fv |
static void |
nglProgramUniformMatrix3x2dv(int program,
int location,
int count,
boolean transpose,
long value)
Unsafe version of:
ProgramUniformMatrix3x2dv |
static void |
nglProgramUniformMatrix3x2fv(int program,
int location,
int count,
boolean transpose,
long value)
Unsafe version of:
ProgramUniformMatrix3x2fv |
static void |
nglProgramUniformMatrix3x4dv(int program,
int location,
int count,
boolean transpose,
long value)
Unsafe version of:
ProgramUniformMatrix3x4dv |
static void |
nglProgramUniformMatrix3x4fv(int program,
int location,
int count,
boolean transpose,
long value)
Unsafe version of:
ProgramUniformMatrix3x4fv |
static void |
nglProgramUniformMatrix4dv(int program,
int location,
int count,
boolean transpose,
long value)
Unsafe version of:
ProgramUniformMatrix4dv |
static void |
nglProgramUniformMatrix4fv(int program,
int location,
int count,
boolean transpose,
long value)
Unsafe version of:
ProgramUniformMatrix4fv |
static void |
nglProgramUniformMatrix4x2dv(int program,
int location,
int count,
boolean transpose,
long value)
Unsafe version of:
ProgramUniformMatrix4x2dv |
static void |
nglProgramUniformMatrix4x2fv(int program,
int location,
int count,
boolean transpose,
long value)
Unsafe version of:
ProgramUniformMatrix4x2fv |
static void |
nglProgramUniformMatrix4x3dv(int program,
int location,
int count,
boolean transpose,
long value)
Unsafe version of:
ProgramUniformMatrix4x3dv |
static void |
nglProgramUniformMatrix4x3fv(int program,
int location,
int count,
boolean transpose,
long value)
Unsafe version of:
ProgramUniformMatrix4x3fv |
public static final int GL_VERTEX_SHADER_BIT
stages parameter to UseProgramStages.public static final int GL_FRAGMENT_SHADER_BIT
stages parameter to UseProgramStages.public static final int GL_GEOMETRY_SHADER_BIT
stages parameter to UseProgramStages.public static final int GL_TESS_CONTROL_SHADER_BIT
stages parameter to UseProgramStages.public static final int GL_TESS_EVALUATION_SHADER_BIT
stages parameter to UseProgramStages.public static final int GL_ALL_SHADER_BITS
stages parameter to UseProgramStages.public static final int GL_PROGRAM_SEPARABLE
pname parameter of ProgramParameteri and GetProgramiv.public static final int GL_ACTIVE_PROGRAM
type parameter to GetProgramPipelineiv.public static final int GL_PROGRAM_PIPELINE_BINDING
pname parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.public static void glUseProgramStages(int pipeline,
int stages,
int program)
pipeline - the program pipeline object to which to bind stages from programstages - a set of program stages to bind to the program pipeline objectprogram - the program object containing the shader executables to use in pipelinepublic static void glActiveShaderProgram(int pipeline,
int program)
pipeline - the program pipeline object to set the active program object forprogram - the program object to set as the active program pipeline object pipelinepublic static int nglCreateShaderProgramv(int type,
int count,
long strings)
CreateShaderProgramvcount - the number of source code strings in the array stringspublic static int glCreateShaderProgramv(int type,
org.lwjgl.PointerBuffer strings)
glCreateShaderProgram is equivalent (assuming no errors are generated) to:
const GLuint shader = glCreateShader(type);
if (shader) {
glShaderSource(shader, count, strings, NULL);
glCompileShader(shader);
const GLuint program = glCreateProgram();
if (program) {
GLint compiled = GL_FALSE;
glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled);
glProgramParameteri(program, GL_PROGRAM_SEPARABLE, GL_TRUE);
if (compiled) {
glAttachShader(program, shader);
glLinkProgram(program);
glDetachShader(program, shader);
}
// append-shader-info-log-to-program-info-log
}
glDeleteShader(shader);
return program;
} else {
return 0;
}
The program object created by glCreateShaderProgram has its GL_PROGRAM_SEPARABLE status set to GL_TRUE.
type - the type of shader to createstrings - an array of pointers to source code strings from which to create the program objectpublic static int glCreateShaderProgramv(int type,
java.lang.CharSequence... strings)
glCreateShaderProgram is equivalent (assuming no errors are generated) to:
const GLuint shader = glCreateShader(type);
if (shader) {
glShaderSource(shader, count, strings, NULL);
glCompileShader(shader);
const GLuint program = glCreateProgram();
if (program) {
GLint compiled = GL_FALSE;
glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled);
glProgramParameteri(program, GL_PROGRAM_SEPARABLE, GL_TRUE);
if (compiled) {
glAttachShader(program, shader);
glLinkProgram(program);
glDetachShader(program, shader);
}
// append-shader-info-log-to-program-info-log
}
glDeleteShader(shader);
return program;
} else {
return 0;
}
The program object created by glCreateShaderProgram has its GL_PROGRAM_SEPARABLE status set to GL_TRUE.
type - the type of shader to createstrings - an array of pointers to source code strings from which to create the program objectpublic static int glCreateShaderProgramv(int type,
java.lang.CharSequence string)
glCreateShaderProgram is equivalent (assuming no errors are generated) to:
const GLuint shader = glCreateShader(type);
if (shader) {
glShaderSource(shader, count, strings, NULL);
glCompileShader(shader);
const GLuint program = glCreateProgram();
if (program) {
GLint compiled = GL_FALSE;
glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled);
glProgramParameteri(program, GL_PROGRAM_SEPARABLE, GL_TRUE);
if (compiled) {
glAttachShader(program, shader);
glLinkProgram(program);
glDetachShader(program, shader);
}
// append-shader-info-log-to-program-info-log
}
glDeleteShader(shader);
return program;
} else {
return 0;
}
The program object created by glCreateShaderProgram has its GL_PROGRAM_SEPARABLE status set to GL_TRUE.
type - the type of shader to createpublic static void glBindProgramPipeline(int pipeline)
pipeline - the name of the pipeline object to bind to the contextpublic static void nglDeleteProgramPipelines(int n,
long pipelines)
DeleteProgramPipelinesn - the number of program pipeline objects to deletepublic static void glDeleteProgramPipelines(java.nio.IntBuffer pipelines)
pipelines - an array of names of program pipeline objects to deletepublic static void glDeleteProgramPipelines(int pipeline)
public static void nglGenProgramPipelines(int n,
long pipelines)
GenProgramPipelinesn - the number of program pipeline object names to reservepublic static void glGenProgramPipelines(java.nio.IntBuffer pipelines)
pipelines - an array of into which the reserved names will be writtenpublic static int glGenProgramPipelines()
public static boolean glIsProgramPipeline(int pipeline)
pipeline - a value that may be the name of a program pipeline objectpublic static void glProgramParameteri(int program,
int pname,
int value)
program - the name of a program object whose parameter to modifypname - the name of the parameter to modify. One of:PROGRAM_BINARY_RETRIEVABLE_HINT | PROGRAM_SEPARABLE |
value - the new value of the parameter specified by pname for programpublic static void nglGetProgramPipelineiv(int pipeline,
int pname,
long params)
GetProgramPipelineivpublic static void glGetProgramPipelineiv(int pipeline,
int pname,
java.nio.IntBuffer params)
pipeline - the name of a program pipeline object whose parameter retrievepname - the name of the parameter to retrieve. One of:ACTIVE_PROGRAM | INFO_LOG_LENGTH | VERTEX_SHADER | FRAGMENT_SHADER | GEOMETRY_SHADER |
TESS_CONTROL_SHADER | TESS_EVALUATION_SHADER |
params - a variable into which will be written the value or values of pname for pipelinepublic static int glGetProgramPipelinei(int pipeline,
int pname)
pipeline - the name of a program pipeline object whose parameter retrievepname - the name of the parameter to retrieve. One of:ACTIVE_PROGRAM | INFO_LOG_LENGTH | VERTEX_SHADER | FRAGMENT_SHADER | GEOMETRY_SHADER |
TESS_CONTROL_SHADER | TESS_EVALUATION_SHADER |
public static void glProgramUniform1i(int program,
int location,
int x)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedx - the uniform x valuepublic static void glProgramUniform2i(int program,
int location,
int x,
int y)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedx - the uniform x valuey - the uniform y valuepublic static void glProgramUniform3i(int program,
int location,
int x,
int y,
int z)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedx - the uniform x valuey - the uniform y valuez - the uniform z valuepublic static void glProgramUniform4i(int program,
int location,
int x,
int y,
int z,
int w)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedx - the uniform x valuey - the uniform y valuez - the uniform z valuew - the uniform w valuepublic static void glProgramUniform1ui(int program,
int location,
int x)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedx - the uniform x valuepublic static void glProgramUniform2ui(int program,
int location,
int x,
int y)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedx - the uniform x valuey - the uniform y valuepublic static void glProgramUniform3ui(int program,
int location,
int x,
int y,
int z)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedx - the uniform x valuey - the uniform y valuez - the uniform z valuepublic static void glProgramUniform4ui(int program,
int location,
int x,
int y,
int z,
int w)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedx - the uniform x valuey - the uniform y valuez - the uniform z valuew - the uniform w valuepublic static void glProgramUniform1f(int program,
int location,
float x)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedx - the uniform x valuepublic static void glProgramUniform2f(int program,
int location,
float x,
float y)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedx - the uniform x valuey - the uniform y valuepublic static void glProgramUniform3f(int program,
int location,
float x,
float y,
float z)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedx - the uniform x valuey - the uniform y valuez - the uniform z valuepublic static void glProgramUniform4f(int program,
int location,
float x,
float y,
float z,
float w)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedx - the uniform x valuey - the uniform y valuez - the uniform z valuew - the uniform w valuepublic static void glProgramUniform1d(int program,
int location,
double x)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedx - the uniform x valuepublic static void glProgramUniform2d(int program,
int location,
double x,
double y)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedx - the uniform x valuey - the uniform y valuepublic static void glProgramUniform3d(int program,
int location,
double x,
double y,
double z)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedx - the uniform x valuey - the uniform y valuez - the uniform z valuepublic static void glProgramUniform4d(int program,
int location,
double x,
double y,
double z,
double w)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedx - the uniform x valuey - the uniform y valuez - the uniform z valuew - the uniform w valuepublic static void nglProgramUniform1iv(int program,
int location,
int count,
long value)
ProgramUniform1ivcount - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.public static void glProgramUniform1iv(int program,
int location,
java.nio.IntBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedvalue - an array of count values that will be used to update the specified uniform variablepublic static void nglProgramUniform2iv(int program,
int location,
int count,
long value)
ProgramUniform2ivcount - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.public static void glProgramUniform2iv(int program,
int location,
java.nio.IntBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedvalue - an array of count values that will be used to update the specified uniform variablepublic static void nglProgramUniform3iv(int program,
int location,
int count,
long value)
ProgramUniform3ivcount - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.public static void glProgramUniform3iv(int program,
int location,
java.nio.IntBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedvalue - an array of count values that will be used to update the specified uniform variablepublic static void nglProgramUniform4iv(int program,
int location,
int count,
long value)
ProgramUniform4ivcount - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.public static void glProgramUniform4iv(int program,
int location,
java.nio.IntBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedvalue - an array of count values that will be used to update the specified uniform variablepublic static void nglProgramUniform1uiv(int program,
int location,
int count,
long value)
ProgramUniform1uivcount - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.public static void glProgramUniform1uiv(int program,
int location,
java.nio.IntBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedvalue - an array of count values that will be used to update the specified uniform variablepublic static void nglProgramUniform2uiv(int program,
int location,
int count,
long value)
ProgramUniform2uivcount - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.public static void glProgramUniform2uiv(int program,
int location,
java.nio.IntBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedvalue - an array of count values that will be used to update the specified uniform variablepublic static void nglProgramUniform3uiv(int program,
int location,
int count,
long value)
ProgramUniform3uivcount - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.public static void glProgramUniform3uiv(int program,
int location,
java.nio.IntBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedvalue - an array of count values that will be used to update the specified uniform variablepublic static void nglProgramUniform4uiv(int program,
int location,
int count,
long value)
ProgramUniform4uivcount - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.public static void glProgramUniform4uiv(int program,
int location,
java.nio.IntBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedvalue - an array of count values that will be used to update the specified uniform variablepublic static void nglProgramUniform1fv(int program,
int location,
int count,
long value)
ProgramUniform1fvcount - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.public static void glProgramUniform1fv(int program,
int location,
java.nio.FloatBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedvalue - an array of count values that will be used to update the specified uniform variablepublic static void nglProgramUniform2fv(int program,
int location,
int count,
long value)
ProgramUniform2fvcount - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.public static void glProgramUniform2fv(int program,
int location,
java.nio.FloatBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedvalue - an array of count values that will be used to update the specified uniform variablepublic static void nglProgramUniform3fv(int program,
int location,
int count,
long value)
ProgramUniform3fvcount - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.public static void glProgramUniform3fv(int program,
int location,
java.nio.FloatBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedvalue - an array of count values that will be used to update the specified uniform variablepublic static void nglProgramUniform4fv(int program,
int location,
int count,
long value)
ProgramUniform4fvcount - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.public static void glProgramUniform4fv(int program,
int location,
java.nio.FloatBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedvalue - an array of count values that will be used to update the specified uniform variablepublic static void nglProgramUniform1dv(int program,
int location,
int count,
long value)
ProgramUniform1dvcount - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.public static void glProgramUniform1dv(int program,
int location,
java.nio.DoubleBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedvalue - an array of count values that will be used to update the specified uniform variablepublic static void nglProgramUniform2dv(int program,
int location,
int count,
long value)
ProgramUniform2dvcount - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.public static void glProgramUniform2dv(int program,
int location,
java.nio.DoubleBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedvalue - an array of count values that will be used to update the specified uniform variablepublic static void nglProgramUniform3dv(int program,
int location,
int count,
long value)
ProgramUniform3dvcount - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.public static void glProgramUniform3dv(int program,
int location,
java.nio.DoubleBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedvalue - an array of count values that will be used to update the specified uniform variablepublic static void nglProgramUniform4dv(int program,
int location,
int count,
long value)
ProgramUniform4dvcount - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.public static void glProgramUniform4dv(int program,
int location,
java.nio.DoubleBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedvalue - an array of count values that will be used to update the specified uniform variablepublic static void nglProgramUniformMatrix2fv(int program,
int location,
int count,
boolean transpose,
long value)
ProgramUniformMatrix2fvcount - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.public static void glProgramUniformMatrix2fv(int program,
int location,
boolean transpose,
java.nio.FloatBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedtranspose - whether to transpose the matrix as the values are loaded into the uniform variablevalue - an array of count values that will be used to update the specified uniform matrix variablepublic static void nglProgramUniformMatrix3fv(int program,
int location,
int count,
boolean transpose,
long value)
ProgramUniformMatrix3fvcount - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.public static void glProgramUniformMatrix3fv(int program,
int location,
boolean transpose,
java.nio.FloatBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedtranspose - whether to transpose the matrix as the values are loaded into the uniform variablevalue - an array of count values that will be used to update the specified uniform matrix variablepublic static void nglProgramUniformMatrix4fv(int program,
int location,
int count,
boolean transpose,
long value)
ProgramUniformMatrix4fvcount - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.public static void glProgramUniformMatrix4fv(int program,
int location,
boolean transpose,
java.nio.FloatBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedtranspose - whether to transpose the matrix as the values are loaded into the uniform variablevalue - an array of count values that will be used to update the specified uniform matrix variablepublic static void nglProgramUniformMatrix2dv(int program,
int location,
int count,
boolean transpose,
long value)
ProgramUniformMatrix2dvcount - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.public static void glProgramUniformMatrix2dv(int program,
int location,
boolean transpose,
java.nio.DoubleBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedtranspose - whether to transpose the matrix as the values are loaded into the uniform variablevalue - an array of count values that will be used to update the specified uniform matrix variablepublic static void nglProgramUniformMatrix3dv(int program,
int location,
int count,
boolean transpose,
long value)
ProgramUniformMatrix3dvcount - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.public static void glProgramUniformMatrix3dv(int program,
int location,
boolean transpose,
java.nio.DoubleBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedtranspose - whether to transpose the matrix as the values are loaded into the uniform variablevalue - an array of count values that will be used to update the specified uniform matrix variablepublic static void nglProgramUniformMatrix4dv(int program,
int location,
int count,
boolean transpose,
long value)
ProgramUniformMatrix4dvcount - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.public static void glProgramUniformMatrix4dv(int program,
int location,
boolean transpose,
java.nio.DoubleBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedtranspose - whether to transpose the matrix as the values are loaded into the uniform variablevalue - an array of count values that will be used to update the specified uniform matrix variablepublic static void nglProgramUniformMatrix2x3fv(int program,
int location,
int count,
boolean transpose,
long value)
ProgramUniformMatrix2x3fvcount - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.public static void glProgramUniformMatrix2x3fv(int program,
int location,
boolean transpose,
java.nio.FloatBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedtranspose - whether to transpose the matrix as the values are loaded into the uniform variablevalue - an array of count values that will be used to update the specified uniform matrix variablepublic static void nglProgramUniformMatrix3x2fv(int program,
int location,
int count,
boolean transpose,
long value)
ProgramUniformMatrix3x2fvcount - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.public static void glProgramUniformMatrix3x2fv(int program,
int location,
boolean transpose,
java.nio.FloatBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedtranspose - whether to transpose the matrix as the values are loaded into the uniform variablevalue - an array of count values that will be used to update the specified uniform matrix variablepublic static void nglProgramUniformMatrix2x4fv(int program,
int location,
int count,
boolean transpose,
long value)
ProgramUniformMatrix2x4fvcount - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.public static void glProgramUniformMatrix2x4fv(int program,
int location,
boolean transpose,
java.nio.FloatBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedtranspose - whether to transpose the matrix as the values are loaded into the uniform variablevalue - an array of count values that will be used to update the specified uniform matrix variablepublic static void nglProgramUniformMatrix4x2fv(int program,
int location,
int count,
boolean transpose,
long value)
ProgramUniformMatrix4x2fvcount - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.public static void glProgramUniformMatrix4x2fv(int program,
int location,
boolean transpose,
java.nio.FloatBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedtranspose - whether to transpose the matrix as the values are loaded into the uniform variablevalue - an array of count values that will be used to update the specified uniform matrix variablepublic static void nglProgramUniformMatrix3x4fv(int program,
int location,
int count,
boolean transpose,
long value)
ProgramUniformMatrix3x4fvcount - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.public static void glProgramUniformMatrix3x4fv(int program,
int location,
boolean transpose,
java.nio.FloatBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedtranspose - whether to transpose the matrix as the values are loaded into the uniform variablevalue - an array of count values that will be used to update the specified uniform matrix variablepublic static void nglProgramUniformMatrix4x3fv(int program,
int location,
int count,
boolean transpose,
long value)
ProgramUniformMatrix4x3fvcount - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.public static void glProgramUniformMatrix4x3fv(int program,
int location,
boolean transpose,
java.nio.FloatBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedtranspose - whether to transpose the matrix as the values are loaded into the uniform variablevalue - an array of count values that will be used to update the specified uniform matrix variablepublic static void nglProgramUniformMatrix2x3dv(int program,
int location,
int count,
boolean transpose,
long value)
ProgramUniformMatrix2x3dvcount - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.public static void glProgramUniformMatrix2x3dv(int program,
int location,
boolean transpose,
java.nio.DoubleBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedtranspose - whether to transpose the matrix as the values are loaded into the uniform variablevalue - an array of count values that will be used to update the specified uniform matrix variablepublic static void nglProgramUniformMatrix3x2dv(int program,
int location,
int count,
boolean transpose,
long value)
ProgramUniformMatrix3x2dvcount - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.public static void glProgramUniformMatrix3x2dv(int program,
int location,
boolean transpose,
java.nio.DoubleBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedtranspose - whether to transpose the matrix as the values are loaded into the uniform variablevalue - an array of count values that will be used to update the specified uniform matrix variablepublic static void nglProgramUniformMatrix2x4dv(int program,
int location,
int count,
boolean transpose,
long value)
ProgramUniformMatrix2x4dvcount - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.public static void glProgramUniformMatrix2x4dv(int program,
int location,
boolean transpose,
java.nio.DoubleBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedtranspose - whether to transpose the matrix as the values are loaded into the uniform variablevalue - an array of count values that will be used to update the specified uniform matrix variablepublic static void nglProgramUniformMatrix4x2dv(int program,
int location,
int count,
boolean transpose,
long value)
ProgramUniformMatrix4x2dvcount - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.public static void glProgramUniformMatrix4x2dv(int program,
int location,
boolean transpose,
java.nio.DoubleBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedtranspose - whether to transpose the matrix as the values are loaded into the uniform variablevalue - an array of count values that will be used to update the specified uniform matrix variablepublic static void nglProgramUniformMatrix3x4dv(int program,
int location,
int count,
boolean transpose,
long value)
ProgramUniformMatrix3x4dvcount - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.public static void glProgramUniformMatrix3x4dv(int program,
int location,
boolean transpose,
java.nio.DoubleBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedtranspose - whether to transpose the matrix as the values are loaded into the uniform variablevalue - an array of count values that will be used to update the specified uniform matrix variablepublic static void nglProgramUniformMatrix4x3dv(int program,
int location,
int count,
boolean transpose,
long value)
ProgramUniformMatrix4x3dvcount - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.public static void glProgramUniformMatrix4x3dv(int program,
int location,
boolean transpose,
java.nio.DoubleBuffer value)
program - the handle of the program containing the uniform variable to be modifiedlocation - the location of the uniform variable to be modifiedtranspose - whether to transpose the matrix as the values are loaded into the uniform variablevalue - an array of count values that will be used to update the specified uniform matrix variablepublic static void glValidateProgramPipeline(int pipeline)
pipeline - the name of a program pipeline object to validatepublic static void nglGetProgramPipelineInfoLog(int pipeline,
int bufSize,
long length,
long infoLog)
GetProgramPipelineInfoLogbufSize - the maximum number of characters, including the null terminator, that may be written into infoLogpublic static void glGetProgramPipelineInfoLog(int pipeline,
@Nullable
java.nio.IntBuffer length,
java.nio.ByteBuffer infoLog)
pipeline - the name of a program pipeline object from which to retrieve the info loglength - a variable into which will be written the number of characters written into infoLoginfoLog - an array of characters into which will be written the info log for pipelinepublic static java.lang.String glGetProgramPipelineInfoLog(int pipeline,
int bufSize)
pipeline - the name of a program pipeline object from which to retrieve the info logbufSize - the maximum number of characters, including the null terminator, that may be written into infoLogpublic static java.lang.String glGetProgramPipelineInfoLog(int pipeline)
pipeline - the name of a program pipeline object from which to retrieve the info logpublic static void glDeleteProgramPipelines(int[] pipelines)
DeleteProgramPipelinespublic static void glGenProgramPipelines(int[] pipelines)
GenProgramPipelinespublic static void glGetProgramPipelineiv(int pipeline,
int pname,
int[] params)
GetProgramPipelineivpublic static void glProgramUniform1iv(int program,
int location,
int[] value)
ProgramUniform1ivpublic static void glProgramUniform2iv(int program,
int location,
int[] value)
ProgramUniform2ivpublic static void glProgramUniform3iv(int program,
int location,
int[] value)
ProgramUniform3ivpublic static void glProgramUniform4iv(int program,
int location,
int[] value)
ProgramUniform4ivpublic static void glProgramUniform1uiv(int program,
int location,
int[] value)
ProgramUniform1uivpublic static void glProgramUniform2uiv(int program,
int location,
int[] value)
ProgramUniform2uivpublic static void glProgramUniform3uiv(int program,
int location,
int[] value)
ProgramUniform3uivpublic static void glProgramUniform4uiv(int program,
int location,
int[] value)
ProgramUniform4uivpublic static void glProgramUniform1fv(int program,
int location,
float[] value)
ProgramUniform1fvpublic static void glProgramUniform2fv(int program,
int location,
float[] value)
ProgramUniform2fvpublic static void glProgramUniform3fv(int program,
int location,
float[] value)
ProgramUniform3fvpublic static void glProgramUniform4fv(int program,
int location,
float[] value)
ProgramUniform4fvpublic static void glProgramUniform1dv(int program,
int location,
double[] value)
ProgramUniform1dvpublic static void glProgramUniform2dv(int program,
int location,
double[] value)
ProgramUniform2dvpublic static void glProgramUniform3dv(int program,
int location,
double[] value)
ProgramUniform3dvpublic static void glProgramUniform4dv(int program,
int location,
double[] value)
ProgramUniform4dvpublic static void glProgramUniformMatrix2fv(int program,
int location,
boolean transpose,
float[] value)
ProgramUniformMatrix2fvpublic static void glProgramUniformMatrix3fv(int program,
int location,
boolean transpose,
float[] value)
ProgramUniformMatrix3fvpublic static void glProgramUniformMatrix4fv(int program,
int location,
boolean transpose,
float[] value)
ProgramUniformMatrix4fvpublic static void glProgramUniformMatrix2dv(int program,
int location,
boolean transpose,
double[] value)
ProgramUniformMatrix2dvpublic static void glProgramUniformMatrix3dv(int program,
int location,
boolean transpose,
double[] value)
ProgramUniformMatrix3dvpublic static void glProgramUniformMatrix4dv(int program,
int location,
boolean transpose,
double[] value)
ProgramUniformMatrix4dvpublic static void glProgramUniformMatrix2x3fv(int program,
int location,
boolean transpose,
float[] value)
ProgramUniformMatrix2x3fvpublic static void glProgramUniformMatrix3x2fv(int program,
int location,
boolean transpose,
float[] value)
ProgramUniformMatrix3x2fvpublic static void glProgramUniformMatrix2x4fv(int program,
int location,
boolean transpose,
float[] value)
ProgramUniformMatrix2x4fvpublic static void glProgramUniformMatrix4x2fv(int program,
int location,
boolean transpose,
float[] value)
ProgramUniformMatrix4x2fvpublic static void glProgramUniformMatrix3x4fv(int program,
int location,
boolean transpose,
float[] value)
ProgramUniformMatrix3x4fvpublic static void glProgramUniformMatrix4x3fv(int program,
int location,
boolean transpose,
float[] value)
ProgramUniformMatrix4x3fvpublic static void glProgramUniformMatrix2x3dv(int program,
int location,
boolean transpose,
double[] value)
ProgramUniformMatrix2x3dvpublic static void glProgramUniformMatrix3x2dv(int program,
int location,
boolean transpose,
double[] value)
ProgramUniformMatrix3x2dvpublic static void glProgramUniformMatrix2x4dv(int program,
int location,
boolean transpose,
double[] value)
ProgramUniformMatrix2x4dvpublic static void glProgramUniformMatrix4x2dv(int program,
int location,
boolean transpose,
double[] value)
ProgramUniformMatrix4x2dvpublic static void glProgramUniformMatrix3x4dv(int program,
int location,
boolean transpose,
double[] value)
ProgramUniformMatrix3x4dvpublic static void glProgramUniformMatrix4x3dv(int program,
int location,
boolean transpose,
double[] value)
ProgramUniformMatrix4x3dvpublic static void glGetProgramPipelineInfoLog(int pipeline,
@Nullable
int[] length,
java.nio.ByteBuffer infoLog)
GetProgramPipelineInfoLogCopyright LWJGL. All Rights Reserved. License terms.