This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
neofx-libzoom/zoom/level.h

49 lines
760 B
C
Raw Normal View History

2005-04-22 19:51:02 +00:00
#ifndef ZOOM_LEVEL_H
#define ZOOM_LEVEL_H
2005-04-18 15:27:00 +00:00
#include <GL/gl.h>
#include <zoom/types.h>
2005-04-18 15:27:00 +00:00
#pragma pack(push, 2)
typedef struct _LEVELHEADER {
char l, f;
int nRooms;
int nTextures;
} LEVELHEADER;
typedef struct _ROOMHEADER {
int nWalls;
int nThings;
2005-04-18 15:27:00 +00:00
int nGates;
} ROOMHEADER;
typedef struct _GATEINFO {
unsigned short state;
unsigned short timer;
} GATEINFO;
typedef struct _ROOM {
int nWalls;
int nThings;
2005-04-18 15:27:00 +00:00
int nGates;
WALL *walls;
THING *things;
2005-04-18 15:27:00 +00:00
GATE *gates;
GATEINFO *gateinfo;
} ROOM;
typedef struct _LEVEL {
int nRooms;
ROOM *rooms;
int nTextures;
GLuint *textures;
} LEVEL;
#pragma pack(pop)
int LoadLevel(char *, LEVEL *);
void DrawRoom(LEVEL *, int);
void FreeLevel(LEVEL *);
#endif