Rechercher une page de manuel
Clutter::Texture.3pm
Langue: en
Version: 2008-02-20 (mandriva - 01/05/08)
Section: 3 (Bibliothèques de fonctions)
NAME
Clutter::TextureHIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Clutter::Actor +----Clutter::Texture
INTERFACES
Glib::Object::_Unregistered::ClutterScriptable
METHODS
actor = Clutter::Texture->new ($pixbuf=undef, $actor=undef)
actor = Clutter::Texture->new ($pixbuf=undef, $actor=undef)
-
- •
- $pixbuf (Gtk2::Gdk::Pixbuf or undef)
- •
- $actor (Clutter::Actor or undef)
(width, height) = $texture->get_base_size
(width, height) = $texture->get_base_size
boolean = $texture->set_from_rgb_data ($data, $has_alpha, $width, $height, $rowstride, $bpp, $flags)
boolean = $texture->set_from_rgb_data ($data, $has_alpha, $width, $height, $rowstride, $bpp, $flags)
-
- •
- $data (scalar)
- •
- $has_alpha (boolean)
- •
- $width (integer)
- •
- $height (integer)
- •
- $rowstride (integer)
- •
- $bpp (integer)
- •
- $flags (Clutter::TextureFlags)
May croak with a Glib::Error in $@ on failure.
boolean = $texture->set_from_yuv_data ($data, $width, $height, $flags)
boolean = $texture->set_from_yuv_data ($data, $width, $height, $flags)
-
- •
- $data (scalar)
- •
- $width (integer)
- •
- $height (integer)
- •
- $flags (Clutter::TextureFlags)
May croak with a Glib::Error in $@ on failure.
boolean = $texture->has_generated_tiles
boolean = $texture->has_generated_tiles
boolean = $texture->is_tiled
boolean = $texture->is_tiled
(n_x_tiles, n_y_tiles) = $texture->get_n_tiles
(n_x_tiles, n_y_tiles) = $texture->get_n_tiles
pixbuf or undef = $texture->get_pixbuf
pixbuf or undef = $texture->get_pixbuf
$texture->set_pixbuf ($pixbuf)
$texture->set_pixbuf ($pixbuf)
-
- •
- $pixbuf (Gtk2::Gdk::Pixbuf)
(pos, size, waste) = $texture->get_x_tile_detail ($x_index)
(pos, size, waste) = $texture->get_x_tile_detail ($x_index)
-
- •
- $x_index (integer)
(pos, size, waste) = $texture->get_y_tile_detail ($y_index)
(pos, size, waste) = $texture->get_y_tile_detail ($y_index)
-
- •
- $y_index (integer)
PROPERTIES
- 'filter-quality' (integer : readable / writable / private)
- Values 0 and 1 current only supported, with 0 being lower quality but fast, 1 being better quality but slower. ( Currently just maps to GL_NEAREST / GL_LINEAR )
- 'pixbuf' (Gtk2::Gdk::Pixbuf : readable / writable / private)
- Pixbuf source for Texture.
- 'pixel-format' (integer : readable)
- GL texture pixel format used
- 'pixel-type' (integer : readable)
- GL texture pixel type used
- 'repeat-x' (boolean : readable / writable / private)
- Reapeat underlying pixbuf rather than scale in x direction. Currently ignored
- 'repeat-y' (boolean : readable / writable / private)
- Reapeat underlying pixbuf rather than scale in y direction. Currently ignored
- 'sync-size' (boolean : readable / writable / private)
- Auto sync size of actor to underlying pixbuf dimensions
- 'tile-waste' (integer : readable / writable / construct-only / private)
- Max wastage dimension of a texture when using tiled textures. Bigger values use less textures, smaller values less texture memory.
- 'tiled' (boolean : readable / writable / construct-only / private)
- Enables the use of tiled GL textures to more efficiently use available texture memory
SIGNALS
- size-change (Clutter::Texture, integer, integer)
- pixbuf-change (Clutter::Texture)
ENUMS AND FLAGS
flags Clutter::TextureFlags
- •
- 'rgb-flag-bgr' / 'CLUTTER_TEXTURE_RGB_FLAG_BGR'
- •
- 'rgb-flag-premult' / 'CLUTTER_TEXTURE_RGB_FLAG_PREMULT'
- •
- 'yuv-flag-yuv2' / 'CLUTTER_TEXTURE_YUV_FLAG_YUV2'
SEE ALSO
Clutter, Glib::Object, Glib::InitiallyUnowned, Clutter::ActorCOPYRIGHT
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.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre