Reference

Clutter::Shader(3pm)

Programmable pipeline abstraction

NAME

Clutter::Shader - Programmable pipeline abstraction

DESCRIPTION

Clutter::Shader is an object providing an abstraction over the OpenGL programmable pipeline. By using Clutter::Shader instances it is possible to override the drawing pipeline by using small programs also known as "shaders".

HIERARCHY

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

METHODS

shader = Clutter::Shader->new

boolean = $shader->compile

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

string = $shader->get_fragment_source

$shader->set_fragment_source ($source)

•

$source (string)

boolean = $shader->is_compiled

boolean = $shader->get_is_enabled

$shader->set_is_enabled ($enabled)

•

$enabled (boolean)

$shader->release

string = $shader->get_vertex_source

$shader->set_vertex_source ($source)

•

$source (string)

PROPERTIES

'compiled' (boolean : readable / private)

Whether the shader is compiled and linked

'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

Copyright (C) 2006, 2007, 2008 OpenedHand Ltd

Copyright (C) 2009 Intel Corporation

This module is free software; you can redistribute it and/or modify it under the terms of either:

•

the GNU Lesser General Public Library version 2.1; or

•

the Artistic License, version 2.0.

See Clutter for the full copyright notice.

History