use


Description:

public void use ()

Activate a specific shader program replacing that part of the GL rendering pipeline, if passed in COGL_INVALID_HANDLE the default behavior of GL is reinstated.

Note:

Use CoglSnippet api

This function affects the global state of the current Cogl context. It is much more efficient to attach the shader to a specific material used for rendering instead by calling set_user_program.

Parameters:

handle

a VertexBufferIndices for a shader program or COGL_INVALID_HANDLE.