Shader


Description:

[ CCode ( cname = "cogl_create_shader" , has_construct_function = false , type = "CoglHandle*" ) ]
public Shader (ShaderType shader_type)

Create a new shader handle, use source to set the source code to be used on it.

Note:

Use CoglSnippet api

Parameters:

shader_type

COGL_SHADER_TYPE_VERTEX or COGL_SHADER_TYPE_FRAGMENT.

Returns:

a new shader handle.