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

Stability:Unstable
Available since:1.8

Parameters

src_x int
 

Upper left coordinate to use from the source bitmap.

src_y int
 

Upper left coordinate to use from the source bitmap.

dst_x int
 

Upper left destination horizontal coordinate.

dst_y int
 

Upper left destination vertical coordinate.

dst_width unsigned int
 

Width of destination region to write. (Must be less than or equal to the bitmap width)

dst_height unsigned int
 

Height of destination region to write. (Must be less than or equal to the bitmap height)

bitmap CoglBitmap
 

The source bitmap to read from.

 The data is owned by the caller of the function.

Return value

Returns: gboolean
 

TRUE if the subregion upload was successful, and FALSE otherwise.