Shader
Object Hierarchy:
Cogl.Shader
Cogl.Shader
Cogl.Shader
Cogl.Handle
Cogl.Handle
Cogl.Handle->Cogl.Shader
Description:
[
CCode ( cname =
"CoglHandle" , ref_function =
"cogl_shader_ref" , unref_function =
"cogl_shader_unref" ) ]
[
Compact ]
public class Shader :
Handle
Content:
Creation methods:
public Shader (ShaderType shader_type)
Create a new shader handle, use
source to set the source code to be used on it.
Methods:
public void compile ()
Compiles the shader, no return value, but the shader is now ready for
linking into a program.
public string get_info_log ()
Retrieves the information log for a coglobject, can be used in
conjunction with cogl_shader_get_parameteriv
to retrieve the compiler warnings/error messages that caused a shader to not
compile correctly, mainly useful for debugging purposes.
public ShaderType get_type ()
public bool is_compiled ()
public void source (string source)
Replaces the current source associated with a shader with a new one.
Inherited Members:
All known members inherited from class Cogl.Handle