Cogl.Texture.new_from_bitmap
Description: Reference for Cogl.Texture.new_from_bitmap

### Function

# Cogl Texturenew_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 `cogl_texture_2d_new_from_bitmap()`

#### Parameters

`bitmap` | `CoglBitmap`
| A `CoglBitmap` pointer.
| The data is owned by the caller of the function.
`flags` | `CoglTextureFlags`
| Optional flags for the texture, or `COGL_TEXTURE_NONE`.
`internal_format` | `CoglPixelFormat`
| The `CoglPixelFormat` to use for the GPU storage of the texture.

#### Return value

Returns: | `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.