Method
CoglTextureset_region
Declaration [src]
gboolean
cogl_texture_set_region (
CoglTexture* texture,
int src_x,
int src_y,
int dst_x,
int dst_y,
unsigned int dst_width,
unsigned int dst_height,
int width,
int height,
CoglPixelFormat format,
unsigned int rowstride,
const uint8_t* data
)
Description [src]
Sets the pixels in a rectangular subregion of texture from an in-memory
buffer containing pixel data.
The region set can’t be larger than the source data.
Parameters
src_x-
Type:
intUpper left coordinate to use from source data.
src_y-
Type:
intUpper left coordinate to use from source data.
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
width). dst_height-
Type:
unsigned intHeight of destination region to write. (Must be less than or equal to
height). width-
Type:
intWidth of source data buffer.
height-
Type:
intHeight of source data buffer.
format-
Type:
CoglPixelFormatThe
CoglPixelFormatused in the source buffer. rowstride-
Type:
unsigned intRowstride of source buffer (computed from width if none specified).
data-
Type: An array of
uint8_tThe actual pixel data.
The data is owned by the caller of the method.