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
e7c800dacc
commit
2ce0cf3861
@ -27,6 +27,8 @@
|
||||
|
||||
typedef struct _CoglObject CoglObject;
|
||||
|
||||
#define COGL_OBJECT(X) ((CoglObject *)X)
|
||||
|
||||
/**
|
||||
* CoglUserDataKey:
|
||||
* @unused: ignored.
|
||||
|
Loading…
Reference in New Issue
Block a user