Constructor
CoglBitmapnew_with_size
Declaration [src]
CoglBitmap*
cogl_bitmap_new_with_size (
CoglContext* context,
unsigned int width,
unsigned int height,
CoglPixelFormat format
)
Description [src]
Creates a new CoglBitmap
with the given width, height and format.
The initial contents of the bitmap are undefined.
The data for the bitmap will be stored in a newly created
CoglPixelBuffer
. You can get a pointer to the pixel buffer using
cogl_bitmap_get_buffer(). The CoglBuffer
API can then be
used to fill the bitmap with data.
Stability: | Unstable |
Available since: | 1.10 |
This constructor is not directly available to language bindings |
Parameters
context |
CoglContext |
A |
|
The data is owned by the caller of the function. | |
width |
unsigned int |
Width of the bitmap in pixels. |
|
height |
unsigned int |
Height of the bitmap in pixels. |
|
format |
CoglPixelFormat |
The format of the pixels the array will store. |
Return value
Returns: | CoglBitmap |
A |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |