set_region


Description:

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.

Note:

The region set can't be larger than the source data

Parameters:

this

a CoglTexture.

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 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