Texture
Object Hierarchy:
Description:
[
CCode ( cname =
"CoglHandle" , ref_function =
"cogl_texture_ref" , unref_function =
"cogl_texture_unref" ) ]
[
Compact ]
public class Texture :
Handle
Content:
Creation methods:
- public Texture.from_bitmap (Bitmap bmp_handle, TextureFlags flags, PixelFormat internal_format)
- public Texture.from_data (uint width, uint height, TextureFlags flags, PixelFormat format, PixelFormat internal_format, uint rowstride, uchar[] data)
- public Texture.from_file (string filename, TextureFlags flags, PixelFormat internal_format) throws Error
- public Texture.from_sub_texture (Texture full_texture, int sub_x, int sub_y, int sub_width, int sub_height)
- public Texture.with_size (uint width, uint height, TextureFlags flags, PixelFormat internal_format)
Methods:
- public int get_data (PixelFormat format, uint rowstride, uint8[] data)
Copies the pixel data from a cogl texture to system memory.
- public PixelFormat get_format ()
- public uint get_height ()
Queries the height of a cogl texture.
- public int get_max_waste ()
Queries the maximum wasted (unused) pixels in one dimension of a GPU side
texture.
- public uint get_rowstride ()
- public uint get_width ()
Queries the width of a cogl texture.
- public bool is_sliced ()
Queries if a texture is sliced (stored as multiple GPU side tecture
objects).
- public bool set_region (int src_x, int src_y, int dst_x, int dst_y, uint dst_width, uint dst_height, int width, int height, PixelFormat format, uint rowstride, uint8[] data)
Sets the pixels in a rectangular subregion of
this from an in-memory buffer containing pixel data.
Inherited Members:
All known members inherited from class Cogl.Handle