set_uniform_1i


Description:

public void set_uniform_1i (int uniform_location, int value)

Sets a new value for the uniform at uniform_location.

If this pipeline has a user program attached and is later used as a source for drawing, the given value will be assigned to the uniform which can be accessed from the shader's source. The value for uniform_location should be retrieved from the string name of the uniform by calling get_uniform_location.

This function should be used to set uniforms that are of type int. It can also be used to set a single member of a int array uniform or a sampler uniform.

Parameters:

this

A Pipeline object

uniform_location

The uniform's location identifier

value

The new value for the uniform