- public Bool allocate () throws Error
Explicitly allocates the storage for the given
this which allows you to be sure that there is enough memory for the texture and if not then the
error can be handled gracefully.
- public TextureComponents get_components ()
Queries what components the given this
stores internally as set via set_components.
- public int get_data (PixelFormat format, uint rowstride, uint8 data)
Copies the pixel data from a cogl texture to system memory.
- public Bool get_gl_texture (out uint out_gl_handle, out uint out_gl_target)
Queries the GL handles for a GPU side texture through its
Texture.
- 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 Bool get_premultiplied ()
Queries the pre-multiplied alpha status for internally stored red,
green and blue components for the given this as set by
set_premultiplied.
- 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 void set_components (TextureComponents components)
Affects the internal storage format for this texture by specifying
what components will be required for sampling later.
- public Bool set_data (PixelFormat format, int rowstride, uint8 data, int level) throws Error
texture
a Texture.
- public void set_premultiplied (Bool premultiplied)
Affects the internal storage format for this texture by specifying
whether red, green and blue color components should be stored as pre-multiplied alpha values.
- 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.
- public Bool set_region_from_bitmap (int src_x, int src_y, int dst_x, int dst_y, uint dst_width, uint dst_height, Bitmap bitmap)
Copies a specified source region from bitmap
to the
position (src_x
, src_y
) of the given destination texture handle
.