mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 03:20:46 -05:00
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
|
* FIXME
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define COGL_ATTRIBUTE_BUFFER(buffer) ((CoglAttributeBuffer *)(buffer))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* cogl_attribute_buffer_new:
|
* cogl_attribute_buffer_new:
|
||||||
* @context: A #CoglContext
|
* @context: A #CoglContext
|
||||||
|
@ -43,6 +43,8 @@ G_BEGIN_DECLS
|
|||||||
* FIXME
|
* FIXME
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define COGL_INDEX_BUFFER(buffer) ((CoglIndexBuffer*) buffer)
|
||||||
|
|
||||||
typedef struct _CoglIndexBuffer CoglIndexBuffer;
|
typedef struct _CoglIndexBuffer CoglIndexBuffer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user