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.
Parameters
- buffer
- 
            Type: CoglBufferA CoglBuffercontaining image data.The data is owned by the caller of the function. 
- format
- 
            Type: CoglPixelFormatThe CoglPixelFormatdefining the format of the image data in the givenbuffer.
- width
- 
            Type: intThe width of the image data in the given buffer.
- height
- 
            Type: intThe height of the image data in the given buffer.
- rowstride
- 
            Type: intThe rowstride in bytes of the image data in the given buffer.
- offset
- 
            Type: intThe offset into the given bufferto the first pixel that should be considered part of theCoglBitmap.
Return value
Type: CoglBitmap
A CoglBitmap encapsulating the given buffer.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |