Add the missing cast macros for some buffer objects

CoglPixelBuffer, CoglAttributeBuffer and CoglIndexBuffer were missing
public cast macros.

Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
Neil Roberts 2012-02-25 20:27:21 +00:00
parent 1397a2da19
commit 7114588884
4 changed files with 6 additions and 2 deletions

View File

@ -48,6 +48,8 @@ G_BEGIN_DECLS
* FIXME * FIXME
*/ */
#define COGL_ATTRIBUTE_BUFFER(buffer) ((CoglAttributeBuffer *)(buffer))
/** /**
* cogl_attribute_buffer_new: * cogl_attribute_buffer_new:
* @context: A #CoglContext * @context: A #CoglContext

View File

@ -43,6 +43,8 @@ G_BEGIN_DECLS
* FIXME * FIXME
*/ */
#define COGL_INDEX_BUFFER(buffer) ((CoglIndexBuffer*) buffer)
typedef struct _CoglIndexBuffer CoglIndexBuffer; typedef struct _CoglIndexBuffer CoglIndexBuffer;
/** /**

View File

@ -35,8 +35,6 @@
G_BEGIN_DECLS G_BEGIN_DECLS
#define COGL_PIXEL_BUFFER(array) ((CoglPixelBuffer *)(array))
struct _CoglPixelBuffer struct _CoglPixelBuffer
{ {
CoglBuffer _parent; CoglBuffer _parent;

View File

@ -44,6 +44,8 @@ G_BEGIN_DECLS
* any of the symbols dissapear at a later date. * 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 cogl_pixel_buffer_new_EXP
#define cogl_pixel_buffer_new_with_size cogl_pixel_buffer_new_with_size_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 #define cogl_is_pixel_buffer cogl_is_pixel_buffer_EXP