GObject.Object
Clutter.Shader
Import line: | Clutter = imports.gi.Clutter; |
GIR File: | Clutter-1.0.gir |
C documentation: | ClutterShader |
Class : | Shader |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
compiled : Boolean
read only
Whether the shader is compiled and linked, ready for use in the GL context.
Whether the shader is compiled and linked, ready for use in the GL context.
|
Clutter.Shader | |
enabled : Boolean
Whether the shader is currently used in the GL rendering pipeline.
Whether the shader is currently used in the GL rendering pipeline.
|
Clutter.Shader | |
fragment_source : String
GLSL source code for the fragment shader part of the shader program.
GLSL source code for the fragment shader part of the shader program.
|
Clutter.Shader | |
parent : GObject.Object
read only
|
Clutter.Shader | |
priv : Clutter.ShaderPrivate
read only
|
Clutter.Shader | |
vertex_source : String
GLSL source code for the vertex shader part of the shader program, if any
GLSL source code for the vertex shader part of the shader program, if any
|
Clutter.Shader |
Method / Constructor | Defined By | |
---|---|---|
new Clutter.Shader
(Object properties)
Create a new Clutter.Shader
Create a new Clutter.Shader
|
||
compile
()
:
Boolean
Compiles and links GLSL sources set for vertex and fragment shaders for a ClutterShader.
Compiles and links GLSL sources set for vertex and fragment shaders for a ClutterShader. If the compilation fails and a GError return location is provided the error will contain the errors from the compiler, if any.
|
Clutter.Shader | |
get_cogl_fragment_shader
()
:
void*
Retrieves the underlying CoglHandle for the fragment shader.
Retrieves the underlying CoglHandle for the fragment shader.
|
Clutter.Shader | |
get_cogl_program
()
:
void*
Retrieves the underlying CoglHandle for the shader program.
Retrieves the underlying CoglHandle for the shader program.
|
Clutter.Shader | |
get_cogl_vertex_shader
()
:
void*
Retrieves the underlying CoglHandle for the vertex shader.
Retrieves the underlying CoglHandle for the vertex shader.
|
Clutter.Shader | |
get_fragment_source
()
:
String
Query the current GLSL fragment source set on shader.
Query the current GLSL fragment source set on shader. ClutterShader object or NULL. The returned string is owned by the shader object and should never be modified or freed
|
Clutter.Shader | |
get_is_enabled
()
:
Boolean
Checks whether shader is enabled.
Checks whether shader is enabled.
|
Clutter.Shader | |
get_vertex_source
()
:
String
Query the current GLSL vertex source set on shader.
Query the current GLSL vertex source set on shader. ClutterShader object or NULL. The returned string is owned by the shader object and should never be modified or freed
|
Clutter.Shader | |
is_compiled
()
:
Boolean
Checks whether shader is is currently compiled, linked and bound to the GL context.
Checks whether shader is is currently compiled, linked and bound to the GL context.
|
Clutter.Shader | |
release
()
:
none
Frees up any GL context resources held by the shader.
Frees up any GL context resources held by the shader.
|
Clutter.Shader | |
Clutter.Shader | ||
set_is_enabled
(Boolean enabled)
:
none
Enables a shader.
Enables a shader. This function will attempt to compile and link the shader, if it isn't already. When enabled is FALSE the default state of the GL pipeline will be used instead.
|
Clutter.Shader | |
Sets a user configurable variable in the GLSL shader programs attached to a ClutterShader.
Sets a user configurable variable in the GLSL shader programs attached to a ClutterShader.
|
Clutter.Shader | |
Clutter.Shader |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Clutter.Actor
Method |
Sets the ClutterShader to be used when rendering self.
|
Clutter.Actor
Method |
get_shader
()
:
Clutter.Shader
Queries the currently set ClutterShader on self.
|