[cogl/wip/pbo-read-pixels: 15/18] Add the missing cast macros for some buffer objects
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/pbo-read-pixels: 15/18] Add the missing cast macros for some buffer objects
- Date: Fri, 2 Mar 2012 18:12:16 +0000 (UTC)
commit 7487777039898d0b5002b7be4361d6cd25f6e69c
Author: Neil Roberts <neil linux intel com>
Date: Sat Feb 25 20:27:21 2012 +0000
Add the missing cast macros for some buffer objects
CoglPixelBuffer, CoglAttributeBuffer and CoglIndexBuffer were missing
public cast macros.
cogl/cogl-attribute-buffer.h | 2 ++
cogl/cogl-index-buffer.h | 2 ++
cogl/cogl-pixel-buffer-private.h | 2 --
cogl/cogl-pixel-buffer.h | 2 ++
4 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/cogl/cogl-attribute-buffer.h b/cogl/cogl-attribute-buffer.h
index aa180ef..492ba21 100644
--- a/cogl/cogl-attribute-buffer.h
+++ b/cogl/cogl-attribute-buffer.h
@@ -48,6 +48,8 @@ G_BEGIN_DECLS
* FIXME
*/
+#define COGL_ATTRIBUTE_BUFFER(buffer) ((CoglAttributeBuffer *)(buffer))
+
/**
* cogl_attribute_buffer_new:
* @context: A #CoglContext
diff --git a/cogl/cogl-index-buffer.h b/cogl/cogl-index-buffer.h
index e57bcd1..2e64ab3 100644
--- a/cogl/cogl-index-buffer.h
+++ b/cogl/cogl-index-buffer.h
@@ -43,6 +43,8 @@ G_BEGIN_DECLS
* FIXME
*/
+#define COGL_INDEX_BUFFER(buffer) ((CoglIndexBuffer*) buffer)
+
typedef struct _CoglIndexBuffer CoglIndexBuffer;
/**
diff --git a/cogl/cogl-pixel-buffer-private.h b/cogl/cogl-pixel-buffer-private.h
index 80ceee0..5db2a27 100644
--- a/cogl/cogl-pixel-buffer-private.h
+++ b/cogl/cogl-pixel-buffer-private.h
@@ -35,8 +35,6 @@
G_BEGIN_DECLS
-#define COGL_PIXEL_BUFFER(array) ((CoglPixelBuffer *)(array))
-
struct _CoglPixelBuffer
{
CoglBuffer _parent;
diff --git a/cogl/cogl-pixel-buffer.h b/cogl/cogl-pixel-buffer.h
index 3a20761..49bd603 100644
--- a/cogl/cogl-pixel-buffer.h
+++ b/cogl/cogl-pixel-buffer.h
@@ -44,6 +44,8 @@ G_BEGIN_DECLS
* any of the symbols dissapear at a later date.
*/
+#define COGL_PIXEL_BUFFER(buffer) ((CoglPixelBuffer *)(buffer))
+
#define cogl_pixel_buffer_new cogl_pixel_buffer_new_EXP
#define cogl_pixel_buffer_new_with_size cogl_pixel_buffer_new_with_size_EXP
#define cogl_is_pixel_buffer cogl_is_pixel_buffer_EXP
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]