Function
CoglTexturenew_from_bitmap
deprecated: 1.18 since: 1.0
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
cogl_texture_2d_new_from_bitmap()
Parameters
bitmap-
Type:
CoglBitmapA
CoglBitmappointer.The data is owned by the caller of the function. flags-
Type:
CoglTextureFlagsOptional flags for the texture, or
COGL_TEXTURE_NONE. internal_format-
Type:
CoglPixelFormatThe
CoglPixelFormatto use for the GPU storage of the texture.
Return value
Type: CoglTexture
A newly created CoglTexture or
NULL on failure.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |