diff options
Diffstat (limited to 'cubedbus.h')
-rw-r--r-- | cubedbus.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/cubedbus.h b/cubedbus.h new file mode 100644 index 0000000..8fa9adf --- /dev/null +++ b/cubedbus.h @@ -0,0 +1,46 @@ +#include <stdbool.h> +#include <unistd.h> +#include <stdio.h> +#include <stdlib.h> + +#include "cubedbus-types.h" + +#include <compiz-core.h> + +typedef struct _CubedbusObject CubedbusObject; +typedef struct _CubedbusColourObject CubedbusColourObject; +typedef struct _CubedbusTextureObject CubedbusTextureObject; + +static bool cubedbusDrawColourObject (CubedbusObject *obj); +static bool cubedbusDrawTextureObject (CubedbusObject *obj); + + +/* Struct containing pointer to data struct and pointer to function to draw */ + +struct _CubedbusObject +{ + int type; + char *name; + + bool (*func) (CubedbusObject *obj); + void *data; + + CubedbusObject *next; + CubedbusObject *prev; +}; + + +/* Structs for data for each type */ + +struct _CubedbusColourObject +{ +GLuint dList; +bool order; +float rotate[4], translate[3], scale[3]; +}; + +struct _CubedbusTextureObject +{ +GLuint dList; +}; + |