Method
CoglTextureget_data
Declaration [src]
int
cogl_texture_get_data (
CoglTexture* texture,
CoglPixelFormat format,
unsigned int rowstride,
uint8_t* data
)
Description [src]
Copies the pixel data from a cogl texture to system memory.
cogl_texture_get_rowstride()
as the
rowstride
argument, the rowstride should be the rowstride you
want for the destination data
buffer not the rowstride of the
source texture
Parameters
format |
CoglPixelFormat |
The |
|
rowstride |
unsigned int |
The rowstride of |
|
data |
An array of uint8_t |
Memory location to write the |
|
The argument can be NULL . | |
The data is owned by the caller of the function. |