summaryrefslogtreecommitdiff
path: root/cubedbus.h
diff options
context:
space:
mode:
authorJoel Bosveld <joel@JOEL-UBUNTU.(none)>2007-11-14 14:14:26 +0900
committerJoel Bosveld <joel@JOEL-UBUNTU.(none)>2007-11-14 14:14:26 +0900
commit2d01bb5ac05fd1eb0e5513d77fd5f5ead7c239ec (patch)
treee1afd6e980863a45c343322b30b2a4f37b298f6b /cubedbus.h
parentd7e082f7d4e597bb670d4fe8974da856fa8f625a (diff)
downloadcubedbus-2d01bb5ac05fd1eb0e5513d77fd5f5ead7c239ec.tar.gz
cubedbus-2d01bb5ac05fd1eb0e5513d77fd5f5ead7c239ec.tar.bz2
Added code
Diffstat (limited to 'cubedbus.h')
-rw-r--r--cubedbus.h46
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;
+};
+