Clutter::Shader.3pm

Langue: en

Version: 2008-02-20 (mandriva - 01/05/08)

Section: 3 (Bibliothèques de fonctions)

NAME

Clutter::Shader

HIERARCHY

   Glib::Object
   +----Clutter::Shader
 
 

METHODS


shader = Clutter::Shader->new


boolean = $shader->bind


boolean = $shader->bind

May croak with a Glib::Error in $@ on failure.

string = $shader->get_fragment_source


string = $shader->get_fragment_source


$shader->set_fragment_source ($source)


$shader->set_fragment_source ($source)

$source (string)

boolean = $shader->is_bound


boolean = $shader->is_bound


boolean = $shader->get_is_enabled


boolean = $shader->get_is_enabled


$shader->set_is_enabled ($enabled)


$shader->set_is_enabled ($enabled)

$enabled (boolean)

$shader->release


$shader->release


$shader->set_uniform_1f ($name, $value)


$shader->set_uniform_1f ($name, $value)

$name (string)
$value (double)

string = $shader->get_vertex_source


string = $shader->get_vertex_source


$shader->set_vertex_source ($source)


$shader->set_vertex_source ($source)

$source (string)

PROPERTIES

'bound' (boolean : readable / private)
Whether the shader is bound
'enabled' (boolean : readable / writable / private)
Whether the shader is enabled
'fragment-source' (string : readable / writable / private)
Source of fragment shader
'vertex-source' (string : readable / writable / private)
Source of vertex shader

SEE ALSO

Clutter, Glib::Object Copyright (C) 2006 OpenedHand Ltd.

This module is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Library version 2.1, or under the terms of the Artistic License. See Clutter for the full copyright notice.