Function
Coglprogram_set_uniform_float
deprecated: 1.16 since: 13
Declaration [src]
void
cogl_program_set_uniform_float (
CoglHandle program,
int uniform_location,
int n_components,
int count,
const float* value
)
Description [src]
Changes the value of a float vector uniform, or uniform array for
the given linked program.
Available since: 13
Deprecated since: 1.16
Use CoglSnippet api instead.
Parameters
program-
Type:
CoglHandleA
CoglHandlefor a linked program. uniform_location-
Type:
intThe uniform location retrieved from cogl_program_get_uniform_location().
n_components-
Type:
intThe number of components for the uniform. For example with glsl you’d use 3 for a vec3 or 4 for a vec4.
count-
Type:
intFor uniform arrays this is the array length otherwise just pass 1
value-
Type: An array of
floatThe new value of the uniform[s].
The length of the array is specified in the countargument.The data is owned by the caller of the function.