Method
CoglTextureset_region_from_bitmap
Declaration [src]
gboolean
cogl_texture_set_region_from_bitmap (
CoglTexture* texture,
int src_x,
int src_y,
int dst_x,
int dst_y,
unsigned int dst_width,
unsigned int dst_height,
CoglBitmap* bitmap
)
Description [src]
Copies a specified source region from bitmap to the position (src_x, src_y) of the given destination texture handle.
The region updated can’t be larger than the source bitmap.
Parameters
src_x-
Type:
intUpper left coordinate to use from the source bitmap.
src_y-
Type:
intUpper left coordinate to use from the source bitmap.
dst_x-
Type:
intUpper left destination horizontal coordinate.
dst_y-
Type:
intUpper left destination vertical coordinate.
dst_width-
Type:
unsigned intWidth of destination region to write. (Must be less than or equal to the bitmap width).
dst_height-
Type:
unsigned intHeight of destination region to write. (Must be less than or equal to the bitmap height).
bitmap-
Type:
CoglBitmapThe source bitmap to read from.
The data is owned by the caller of the method.