get_uniform_location


Description:

public int get_uniform_location (string uniform_name)

Retrieve the location (offset) of a uniform variable in a shader program, a uniform is a variable that is constant for all vertices/fragments for a shader object and is possible to modify as an external parameter.

Note:

Use CoglSnippet api instead

Parameters:

uniform_name

the name of a uniform.

handle

a VertexBufferIndices for a shader program.

Returns:

the offset of a uniform in a specified program. This uniform can be set using uniform_1f when the program is in use.