Top | ![]() |
![]() |
![]() |
![]() |
CoglBitmap * | cogl_bitmap_new_from_file () |
gboolean | cogl_bitmap_get_size_from_file () |
gboolean | cogl_is_bitmap () |
#define | COGL_BITMAP_ERROR |
Cogl allows loading image data into memory as CoglBitmaps without loading them immediately into GPU textures.
CoglBitmap is available since Cogl 1.0
CoglBitmap * cogl_bitmap_new_from_file (const char *filename
,GError **error
);
Loads an image file from disk. This function can be safely called from within a thread.
Since 1.0
gboolean cogl_bitmap_get_size_from_file (const char *filename
,int *width
,int *height
);
Parses an image file enough to extract the width and height of the bitmap.
filename |
the file to check |
|
width |
return location for the bitmap width, or |
[out] |
height |
return location for the bitmap height, or |
[out] |
Since 1.0
gboolean
cogl_is_bitmap (CoglHandle handle
);
Checks whether handle
is a CoglHandle for a bitmap
Since 1.0
Error codes that can be thrown when performing bitmap
operations. Note that gdk_pixbuf_new_from_file()
can also throw
errors directly from the underlying image loading library. For
example, if GdkPixbuf is used then errors GdkPixbufErrors
will be used directly.
Since 1.4