summaryrefslogtreecommitdiff
path: root/cogl/cogl-bitmap-private.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2012-09-19 21:59:19 +0100
committerRobert Bragg <robert@linux.intel.com>2013-01-22 17:47:59 +0000
commitbcf6a61d0b23a8ca6b1038cd54c8595306d3a34c (patch)
tree214acd8735f99b60350af77106866f2471d86deb /cogl/cogl-bitmap-private.h
parent91a02e9107993e5e947f71d2af79d6bf9080a549 (diff)
downloadcogl-bcf6a61d0b23a8ca6b1038cd54c8595306d3a34c.tar.gz
Give buffer/bitmap bind functions gl infix
The buffer and bitmap _bind() functions are GL specific so to clarify that, this patch adds a _gl infix to these functions, though it doesn't yet move the implementations out into gl specific files. Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit 6371fbb9637d88ff187dfb6c4bcd18468ba44d19)
Diffstat (limited to 'cogl/cogl-bitmap-private.h')
-rw-r--r--cogl/cogl-bitmap-private.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/cogl/cogl-bitmap-private.h b/cogl/cogl-bitmap-private.h
index e0cf11d1..66104606 100644
--- a/cogl/cogl-bitmap-private.h
+++ b/cogl/cogl-bitmap-private.h
@@ -169,18 +169,21 @@ void
_cogl_bitmap_unmap (CoglBitmap *bitmap);
/* These two are replacements for map and unmap that should used when
- the pointer is going to be passed to GL for pixel packing or
- unpacking. The address might not be valid for reading if the bitmap
- was created with new_from_buffer but it will however be good to
- pass to glTexImage2D for example. The access should be READ for
- unpacking and WRITE for packing. It can not be both */
+ * the pointer is going to be passed to GL for pixel packing or
+ * unpacking. The address might not be valid for reading if the bitmap
+ * was created with new_from_buffer but it will however be good to
+ * pass to glTexImage2D for example. The access should be READ for
+ * unpacking and WRITE for packing. It can not be both
+ *
+ * TODO: split this bind/unbind functions out into a GL specific file
+ */
uint8_t *
-_cogl_bitmap_bind (CoglBitmap *bitmap,
- CoglBufferAccess access,
- CoglBufferMapHint hints);
+_cogl_bitmap_gl_bind (CoglBitmap *bitmap,
+ CoglBufferAccess access,
+ CoglBufferMapHint hints);
void
-_cogl_bitmap_unbind (CoglBitmap *bitmap);
+_cogl_bitmap_gl_unbind (CoglBitmap *bitmap);
CoglContext *
_cogl_bitmap_get_context (CoglBitmap *bitmap);