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:
parent
1397a2da19
commit
7114588884
@ -48,6 +48,8 @@ G_BEGIN_DECLS
|
||||
* FIXME
|
||||
*/
|
||||
|
||||
#define COGL_ATTRIBUTE_BUFFER(buffer) ((CoglAttributeBuffer *)(buffer))
|
||||
|
||||
/**
|
||||
* cogl_attribute_buffer_new:
|
||||
* @context: A #CoglContext
|
||||
|
@ -43,6 +43,8 @@ G_BEGIN_DECLS
|
||||
* FIXME
|
||||
*/
|
||||
|
||||
#define COGL_INDEX_BUFFER(buffer) ((CoglIndexBuffer*) buffer)
|
||||
|
||||
typedef struct _CoglIndexBuffer CoglIndexBuffer;
|
||||
|
||||
/**
|
||||
|
@ -35,8 +35,6 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define COGL_PIXEL_BUFFER(array) ((CoglPixelBuffer *)(array))
|
||||
|
||||
struct _CoglPixelBuffer
|
||||
{
|
||||
CoglBuffer _parent;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user