#ifndef ZOOM_LEVEL_H
#define ZOOM_LEVEL_H
#include <GL/gl.h>
#include "types.h"
#pragma pack(push, 2)
typedef struct _LEVELHEADER {
char l, f;
int nRooms;
int nTextures;
} LEVELHEADER;
typedef struct _ROOMHEADER {
int nWalls;
int nObjects;
int nGates;
} ROOMHEADER;
typedef struct _GATEINFO {
unsigned short state;
unsigned short timer;
} GATEINFO;
typedef struct _ROOM {
WALL *walls;
OBJECT *objects;
GATE *gates;
GATEINFO *gateinfo;
} ROOM;
typedef struct _LEVEL {
ROOM *rooms;
GLuint *textures;
} LEVEL;
#pragma pack(pop)
int LoadLevel(char *, LEVEL *);
void DrawRoom(LEVEL *, int);
void FreeLevel(LEVEL *);
#endif