Method

ClutterShaderEffectset_uniform_float

Declaration [src]

void
clutter_shader_effect_set_uniform_float (
  ClutterShaderEffect* effect,
  const gchar* name,
  int n_components,
  int total_count,
  const gfloat* value
)

Description [src]

Sets a uniform with a float array value. This is a convenience wrapper around clutter_shader_effect_set_uniform() usable from languages that do not support variadic arguments.

Parameters

name

Type: const gchar*

The name of the uniform to set.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
n_components

Type: int

The number of components in the uniform (eg. 3 for a vec3).

total_count

Type: int

The total number of floats in value.

value

Type: An array of gfloat

The array of floats to set uniform.

The length of the array is specified in the total_count argument.
The data is owned by the caller of the method.