summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2007-05-14 19:38:01 +0200
committerneoraider <devnull@localhost>2007-05-14 19:38:01 +0200
commita5aa4b54e23d0793793384a6794cc543ea48ad34 (patch)
tree480f4686b8879347119803ac0973266216a5e6bc /init.c
parent4069752dbc64302b2fb64703644622cb2ec09eef (diff)
downloadlibzoom-a5aa4b54e23d0793793384a6794cc543ea48ad34.tar
libzoom-a5aa4b54e23d0793793384a6794cc543ea48ad34.zip
libzoom: XML level loader implemented.
zoom: Converted old test level to XML.
Diffstat (limited to 'init.c')
-rw-r--r--init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.c b/init.c
index 2df1763..d5407cd 100644
--- a/init.c
+++ b/init.c
@@ -6,7 +6,7 @@
#include <zoom/level.h>
#include <zoom/light.h>
-LEVEL level;
+LEVEL *level;
GLuint sphere;
GLuint meditex_blue;
GLuint lightmap;
@@ -57,8 +57,8 @@ int InitGame() {
gluQuadricDrawStyle(quadric, GLU_FILL);
gluQuadricTexture(quadric, GL_TRUE);
- LoadLevel("level2.lvl", &level);
-
+ level = LoadLevel("level.lvl");
+
sphere = glGenLists(1);
glNewList(sphere, GL_COMPILE);
glRotatef(90, 1.0, 0.0, 0.0);
@@ -71,6 +71,6 @@ int InitGame() {
}
void UninitGame() {
- FreeLevel(&level);
+ FreeLevel(level);
free(texlist);
}