CoglObject: Adds a COGL_OBJECT macro for casting
This adds a convenience COGL_OBJECT macro for casting CoglObject subclasses to (CoglObject *) pointers.
This commit is contained in:
parent
5af3ead3a2
commit
d02d40bf61
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,8 @@
|
|||
|
||||
typedef struct _CoglObject CoglObject;
|
||||
|
||||
#define COGL_OBJECT(X) ((CoglObject *)X)
|
||||
|
||||
/**
|
||||
* CoglUserDataKey:
|
||||
* @unused: ignored.
|
||||
|
|
Loading…
Add table
Reference in a new issue