Function
CoglTexturenew_from_bitmap
Declaration [src]
CoglTexture*
cogl_texture_new_from_bitmap (
CoglBitmap* bitmap,
CoglTextureFlags flags,
CoglPixelFormat internal_format
)
Description [src]
Creates a CoglTexture from a CoglBitmap.
| Available since: | 1.0 |
| Deprecated since: | 1.18 |
Use specific constructors such as
| |
Parameters
bitmap |
CoglBitmap |
A |
|
| The data is owned by the caller of the function. | |
flags |
CoglTextureFlags |
Optional flags for the texture, or |
|
internal_format |
CoglPixelFormat |
The |
Return value
| Returns: | CoglTexture |
A newly created |
|
| The caller of the function takes ownership of the data, and is responsible for freeing it. |