summaryrefslogtreecommitdiff
path: root/cubedbus.h
diff options
context:
space:
mode:
authorJoel Bosveld <joel@JOEL-UBUNTU.(none)>2007-11-15 20:51:12 +0900
committerJoel Bosveld <joel@JOEL-UBUNTU.(none)>2007-11-15 20:51:12 +0900
commit4bf1f3930cf540fb51ac4b8c9358256bedab6360 (patch)
treeb090b0a3a42d0133908047458097076085c9cc92 /cubedbus.h
parent719ffa8e7140d00ba9f063860238b74c7daccf75 (diff)
downloadcubedbus-4bf1f3930cf540fb51ac4b8c9358256bedab6360.tar.gz
cubedbus-4bf1f3930cf540fb51ac4b8c9358256bedab6360.tar.bz2
Changed some code structure, to make it easier to add more additions
later. Possibly some other changes.
Diffstat (limited to 'cubedbus.h')
-rw-r--r--cubedbus.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/cubedbus.h b/cubedbus.h
index 8d4f6d0..96df088 100644
--- a/cubedbus.h
+++ b/cubedbus.h
@@ -9,10 +9,14 @@
typedef struct _CubedbusObject CubedbusObject;
typedef struct _CubedbusColourObject CubedbusColourObject;
-typedef struct _CubedbusTextureObject CubedbusTextureObject;
+
static bool cubedbusDrawColourObject (CubedbusObject *obj);
-static bool cubedbusDrawTextureObject (CubedbusObject *obj);
+static bool cubedbusDeleteColourObject (CubedbusObject *obj);
+static bool cubedbusModifyColourObject (CubedbusObject *obj, CompOption *option, int nOption);
+static bool cubedbusAddColourObject (CubedbusObject *obj, CompOption *option, int nOption);
+
+static bool cubedbusGenerateDList (CompOption *option, int nOption, GLuint *dList);
/* Struct containing pointer to data struct and pointer to function to draw */
@@ -23,6 +27,9 @@ struct _CubedbusObject
char name[16];
bool (*func) (CubedbusObject *obj);
+ bool (*delfunc) (CubedbusObject *obj);
+ bool (*modfunc) (CubedbusObject *obj, CompOption *option, int nOption);
+ bool (*addfunc) (CubedbusObject *obj, CompOption *option, int nOption);
void *data;
CubedbusObject *next;
@@ -39,8 +46,5 @@ bool order;
float rotate[4], translate[3], scale[3];
};
-struct _CubedbusTextureObject
-{
-GLuint dList;
-};
+