|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
GLSL uniform data wrapper encapsulating data to be uploaded to the GPU as a uniform. More...
Public Member Functions | |
| GLUniformData (final String name, final int val) | |
| int atom More... | |
| GLUniformData (final String name, final float val) | |
| float atom More... | |
| GLUniformData (final String name, final int components, final IntBuffer data) | |
| Multiple IntBuffer Vector. More... | |
| GLUniformData (final String name, final int components, final FloatBuffer data) | |
| Multiple FloatBuffer Vector. More... | |
| GLUniformData (final String name, final int components, final SyncBuffer syncBuffer) | |
| Multiple IntBuffer or FloatBuffer Vector. More... | |
| GLUniformData (final String name, final int rows, final int columns, final FloatBuffer data) | |
| Multiple FloatBuffer Matrix. More... | |
| GLUniformData (final String name, final int rows, final int columns, final SyncBuffer syncBuffer) | |
| Multiple FloatBuffer Matrix. More... | |
| GLUniformData | setData (final int data) |
| GLUniformData | setData (final float data) |
| GLUniformData | setData (final IntBuffer data) |
| GLUniformData | setData (final FloatBuffer data) |
| GLUniformData | setData (final SyncBuffer syncedBuffer) |
| int | intValue () |
| float | floatValue () |
| IntBuffer | intBufferValue () |
| FloatBuffer | floatBufferValue () |
| StringBuilder | toString (StringBuilder sb) |
| String | toString () |
| String | getName () |
| Return the uniform name as used in the shader. More... | |
| int | getLocation () |
| int | setLocation (final int location) |
| Sets the given location of the shader uniform. More... | |
| int | setLocation (final GL2ES2 gl, final int program) |
Retrieves the location of the shader uniform with getName() from the linked shader program. More... | |
| Object | getObject () |
| Returns the data object. More... | |
| Buffer | getBuffer () |
| Returns the data buffer. More... | |
| boolean | isMatrix () |
| boolean | isBuffer () |
| int | count () |
| int | components () |
| int | rows () |
| int | columns () |
Static Public Member Functions | |
| static GLUniformData | creatEmptyVector (final String name, final int components) |
| static GLUniformData | creatEmptyMatrix (final String name, final int rows, final int columns) |
GLSL uniform data wrapper encapsulating data to be uploaded to the GPU as a uniform.
Definition at line 42 of file GLUniformData.java.
| com.jogamp.opengl.GLUniformData.GLUniformData | ( | final String | name, |
| final int | val | ||
| ) |
int atom
Number of objects is 1
| name | the uniform name as used in the shader |
Definition at line 51 of file GLUniformData.java.
| com.jogamp.opengl.GLUniformData.GLUniformData | ( | final String | name, |
| final float | val | ||
| ) |
float atom
Number of objects is 1
| name | the uniform name as used in the shader |
Definition at line 62 of file GLUniformData.java.
| com.jogamp.opengl.GLUniformData.GLUniformData | ( | final String | name, |
| final int | components, | ||
| final IntBuffer | data | ||
| ) |
Multiple IntBuffer Vector.
Number of objects is calculated by data.limit()/components
| name | the uniform name as used in the shader |
| components | number of elements of one object, ie 4 for GL_FLOAT_VEC4, |
| data | the data |
Definition at line 75 of file GLUniformData.java.
| com.jogamp.opengl.GLUniformData.GLUniformData | ( | final String | name, |
| final int | components, | ||
| final FloatBuffer | data | ||
| ) |
Multiple FloatBuffer Vector.
Number of objects is calculated by data.limit()/components
| name | the uniform name as used in the shader |
| components | number of elements of one object, ie 4 for GL_FLOAT_VEC4, |
| data | the underlying data |
Definition at line 88 of file GLUniformData.java.
| com.jogamp.opengl.GLUniformData.GLUniformData | ( | final String | name, |
| final int | components, | ||
| final SyncBuffer | syncBuffer | ||
| ) |
Multiple IntBuffer or FloatBuffer Vector.
Number of objects is calculated by data.limit()/components
| name | the uniform name as used in the shader |
| components | number of elements of one object, ie 4 for GL_FLOAT_VEC4, |
| syncBuffer | SyncBuffer providing SyncAction and Buffer, allowing to sync the buffer with the underlying data, see getBuffer() |
Definition at line 101 of file GLUniformData.java.
| com.jogamp.opengl.GLUniformData.GLUniformData | ( | final String | name, |
| final int | rows, | ||
| final int | columns, | ||
| final FloatBuffer | data | ||
| ) |
Multiple FloatBuffer Matrix.
Number of objects is calculated by data.limit()/(rows*columns)
| name | the uniform name as used in the shader |
| rows | the matrix rows |
| column | the matrix column |
| data | the underlying data |
Definition at line 127 of file GLUniformData.java.
| com.jogamp.opengl.GLUniformData.GLUniformData | ( | final String | name, |
| final int | rows, | ||
| final int | columns, | ||
| final SyncBuffer | syncBuffer | ||
| ) |
Multiple FloatBuffer Matrix.
Number of objects is calculated by data.limit()/(rows*columns)
| name | the uniform name as used in the shader |
| rows | the matrix rows |
| column | the matrix column |
| syncBuffer | SyncBuffer providing SyncAction and Buffer, allowing to sync the buffer with the underlying data, see getBuffer() |
Definition at line 141 of file GLUniformData.java.
| int com.jogamp.opengl.GLUniformData.columns | ( | ) |
Definition at line 317 of file GLUniformData.java.
| int com.jogamp.opengl.GLUniformData.components | ( | ) |
| int com.jogamp.opengl.GLUniformData.count | ( | ) |
Definition at line 314 of file GLUniformData.java.
|
static |
Definition at line 113 of file GLUniformData.java.
|
static |
Definition at line 109 of file GLUniformData.java.
| FloatBuffer com.jogamp.opengl.GLUniformData.floatBufferValue | ( | ) |
Definition at line 155 of file GLUniformData.java.
| float com.jogamp.opengl.GLUniformData.floatValue | ( | ) |
Definition at line 153 of file GLUniformData.java.
| Buffer com.jogamp.opengl.GLUniformData.getBuffer | ( | ) |
Returns the data buffer.
In case a SyncAction has been set, it is invoked to synchronize the buffer with the underlying data before returning the buffer.
Definition at line 304 of file GLUniformData.java.
| int com.jogamp.opengl.GLUniformData.getLocation | ( | ) |
| String com.jogamp.opengl.GLUniformData.getName | ( | ) |
Return the uniform name as used in the shader.
Definition at line 254 of file GLUniformData.java.
| Object com.jogamp.opengl.GLUniformData.getObject | ( | ) |
Returns the data object.
In case a SyncAction has been set, it is invoked to synchronize the object with the underlying data before returning the object.
Definition at line 288 of file GLUniformData.java.
| IntBuffer com.jogamp.opengl.GLUniformData.intBufferValue | ( | ) |
Definition at line 154 of file GLUniformData.java.
| int com.jogamp.opengl.GLUniformData.intValue | ( | ) |
| boolean com.jogamp.opengl.GLUniformData.isBuffer | ( | ) |
| boolean com.jogamp.opengl.GLUniformData.isMatrix | ( | ) |
| int com.jogamp.opengl.GLUniformData.rows | ( | ) |
Definition at line 316 of file GLUniformData.java.
| GLUniformData com.jogamp.opengl.GLUniformData.setData | ( | final float | data | ) |
Definition at line 146 of file GLUniformData.java.
| GLUniformData com.jogamp.opengl.GLUniformData.setData | ( | final FloatBuffer | data | ) |
Definition at line 149 of file GLUniformData.java.
| GLUniformData com.jogamp.opengl.GLUniformData.setData | ( | final int | data | ) |
| GLUniformData com.jogamp.opengl.GLUniformData.setData | ( | final IntBuffer | data | ) |
Definition at line 148 of file GLUniformData.java.
| GLUniformData com.jogamp.opengl.GLUniformData.setData | ( | final SyncBuffer | syncedBuffer | ) |
| int com.jogamp.opengl.GLUniformData.setLocation | ( | final GL2ES2 | gl, |
| final int | program | ||
| ) |
Retrieves the location of the shader uniform with getName() from the linked shader program.
No validation is performed within the implementation.
| gl | |
| program |
Definition at line 274 of file GLUniformData.java.
| int com.jogamp.opengl.GLUniformData.setLocation | ( | final int | location | ) |
Sets the given location of the shader uniform.
Definition at line 262 of file GLUniformData.java.
| String com.jogamp.opengl.GLUniformData.toString | ( | ) |
Definition at line 184 of file GLUniformData.java.
| StringBuilder com.jogamp.opengl.GLUniformData.toString | ( | StringBuilder | sb | ) |