summaryrefslogtreecommitdiff
path: root/cubedbus.c
diff options
context:
space:
mode:
authorJoel Bosveld <joel@JOEL-UBUNTU.(none)>2007-12-07 17:36:02 +0900
committerJoel Bosveld <joel@JOEL-UBUNTU.(none)>2007-12-07 17:36:02 +0900
commit19a9f4d91b377d8e3e857d21209b3a7aef0024ee (patch)
treea938d51541ce0fdeddd64bec56db8e992de050f4 /cubedbus.c
parent7bf62552adecc14ef1ae88017d1b744dba087cb5 (diff)
downloadcubedbus-19a9f4d91b377d8e3e857d21209b3a7aef0024ee.tar.gz
cubedbus-19a9f4d91b377d8e3e857d21209b3a7aef0024ee.tar.bz2
Can now load model files.
Specify model file using string:'file' string:'/path/to/file.name' Only obj files are allowed, and they must have the list of faces after the list of vertices, normal and texture coords. It does not yet load textures or normals (if they are specified they will be ignored)
Diffstat (limited to 'cubedbus.c')
-rw-r--r--cubedbus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cubedbus.c b/cubedbus.c
index b517f9f..e6d9184 100644
--- a/cubedbus.c
+++ b/cubedbus.c
@@ -67,8 +67,9 @@ CubedbusScreen;
#define CUBEDBUS_SCREEN(s) \
CubedbusScreen *gs = GET_CUBEDBUS_SCREEN(s, GET_CUBEDBUS_DISPLAY(s->display)) /* Macros to get the gs pointer to CubedbusScreen struct */
-#include "cubedbusTexture.c.in"
+#include "cubedbusModel.c.in"
#include "cubedbusWindow.c.in"
+#include "cubedbusTexture.c.in"
#include "cubedbusColour.c.in"
#include "cubedbusObject.c.in"