[ 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.
Use CoglSnippet api
| shader_type |
COGL_SHADER_TYPE_VERTEX or COGL_SHADER_TYPE_FRAGMENT. |
|
a new shader handle. |