Constructor
CoglBitmapnew_from_buffer
Declaration [src]
CoglBitmap*
cogl_bitmap_new_from_buffer (
CoglBuffer* buffer,
CoglPixelFormat format,
int width,
int height,
int rowstride,
int offset
)
Description [src]
Wraps some image data that has been uploaded into a CoglBuffer as
a CoglBitmap. The data is not copied in this process.
| Stability: | Unstable |
| Available since: | 1.8 |
| This constructor is not directly available to language bindings |
Parameters
buffer |
CoglBuffer* |
A |
|
| The data is owned by the caller of the function. | |
format |
CoglPixelFormat |
The |
|
width |
int |
The width of the image data in the given |
|
height |
int |
The height of the image data in the given |
|
rowstride |
int |
The rowstride in bytes of the image data in the given |
|
offset |
int |
The offset into the given |
Return value
| Returns: | CoglBitmap |
A |
|
| The caller of the function takes ownership of the data, and is responsible for freeing it. |