diff options
author | Neil Roberts <neil@linux.intel.com> | 2012-02-25 20:18:05 +0000 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2012-03-05 18:47:52 +0000 |
commit | 1397a2da1992c50ed82f4e31a54c6401a0a3371c (patch) | |
tree | 780eadb8e7e172533fa5b1427ac489fc8bcf70e4 /cogl/cogl-bitmap.h | |
parent | 3700cc26a58cbf6ba255506b85acc9d93348a1fb (diff) | |
download | cogl-1397a2da1992c50ed82f4e31a54c6401a0a3371c.tar.gz |
Make _cogl_bitmap_get_{width,height,format,rowstride} public
This are now marked as public experimental
Reviewed-by: Robert Bragg <robert@linux.intel.com>
Diffstat (limited to 'cogl/cogl-bitmap.h')
-rw-r--r-- | cogl/cogl-bitmap.h | 48 |
1 files changed, 47 insertions, 1 deletions
diff --git a/cogl/cogl-bitmap.h b/cogl/cogl-bitmap.h index 87534d98..934715ce 100644 --- a/cogl/cogl-bitmap.h +++ b/cogl/cogl-bitmap.h @@ -128,7 +128,53 @@ cogl_bitmap_new_with_size (CoglContext *context, unsigned int height, CoglPixelFormat format); -#endif +/** + * cogl_bitmap_get_format: + * @bitmap: A #CoglBitmap + * + * Return value: the #CoglPixelFormat that the data for the bitmap is in. + * Since: 1.10 + * Stability: unstable + */ +CoglPixelFormat +cogl_bitmap_get_format (CoglBitmap *bitmap); + +/** + * cogl_bitmap_get_width: + * @bitmap: A #CoglBitmap + * + * Return value: the width of the bitmap + * Since: 1.10 + * Stability: unstable + */ +int +cogl_bitmap_get_width (CoglBitmap *bitmap); + +/** + * cogl_bitmap_get_height: + * @bitmap: A #CoglBitmap + * + * Return value: the height of the bitmap + * Since: 1.10 + * Stability: unstable + */ +int +cogl_bitmap_get_height (CoglBitmap *bitmap); + +/** + * cogl_bitmap_get_rowstride: + * @bitmap: A #CoglBitmap + * + * Return value: the rowstride of the bitmap. This is the number of + * bytes between the address of start of one row to the address of the + * next row in the image. + * Since: 1.10 + * Stability: unstable + */ +int +cogl_bitmap_get_rowstride (CoglBitmap *bitmap); + +#endif /* COGL_ENABLE_EXPERIMENTAL_API */ /** * cogl_bitmap_get_size_from_file: |