Cogl.Texture.prototype.set_region
function set_region(src_x: Number(gint), src_y: Number(gint), dst_x: Number(gint), dst_y: Number(gint), dst_width: Number(guint), dst_height: Number(guint), width: Number(gint), height: Number(gint), format: Cogl.PixelFormat, rowstride: Number(guint), data: Number(guint8)): Cogl.Bool { // Gjs wrapper for cogl_texture_set_region() }
Sets the pixels in a rectangular subregion of texture from an in-memory buffer containing pixel data.
<note>The region set can't be larger than the source data</note>
- src_x
upper left coordinate to use from source data.
- src_y
upper left coordinate to use from source data.
- dst_x
upper left destination horizontal coordinate.
- dst_y
upper left destination vertical coordinate.
- dst_width
width of destination region to write. (Must be less than or equal to width)
- dst_height
height of destination region to write. (Must be less than or equal to height)
- width
width of source data buffer.
- height
height of source data buffer.
- format
the Cogl.PixelFormat used in the source buffer.
- rowstride
rowstride of source buffer (computed from width if none specified)
- data
the actual pixel data.
- Returns
true if the subregion upload was successful, and false otherwise