Function
Coglprogram_set_uniform_matrix
deprecated: 1.16 since: 13
Declaration [src]
void
cogl_program_set_uniform_matrix (
CoglHandle program,
int uniform_location,
int dimensions,
int count,
gboolean transpose,
const float* value
)
Description [src]
Changes the value of a matrix uniform, or uniform array in the
given linked program
.
Available since: 13
Deprecated since: 1.16
Use CoglSnippet
api instead.
Parameters
program
-
Type:
CoglHandle
A
CoglHandle
for a linked program. uniform_location
-
Type:
int
The uniform location retrieved from cogl_program_get_uniform_location().
dimensions
-
Type:
int
The dimensions of the matrix. So for for example pass 2 for a 2x2 matrix or 3 for 3x3.
count
-
Type:
int
For uniform arrays this is the array length otherwise just pass 1
transpose
-
Type:
gboolean
Whether to transpose the matrix when setting the uniform.
value
-
Type: An array of
float
The new value of the uniform.
The length of the array is specified in the count
argument.The data is owned by the caller of the function.