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

76 lines
1.2 KiB
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>
#include <zoom/render.h>
2005-04-18 15:27:00 +00:00
/*typedef struct _GATEINFO {
2005-04-18 15:27:00 +00:00
unsigned short state;
unsigned short timer;
} GATEINFO;*/
2005-04-18 15:27:00 +00:00
typedef struct _ROOM {
char *id;
int nWalls;
//int nThings;
//int nGates;
WALL *walls;
//THING *things;
//GATE *gates;
//GATEINFO *gateinfo;
2005-04-18 15:27:00 +00:00
} ROOM;
typedef struct _GATE {
//unsigned char type;
//unsigned char open;
int nWalls;
WALL *walls;
//VERTEX point;
ROOM *room1, *room2;
int gate;
} GATE;
typedef struct _LEVELINFO {
char *name;
char *desc;
VERTEX start;
} LEVELINFO;
typedef struct _TEXTURE {
char *name;
GLuint id;
} TEXTURE;
2005-04-18 15:27:00 +00:00
typedef struct _LEVEL {
LEVELINFO *info;
int nRooms;
ROOM *rooms;
int nGates;
GATE *gates;
int nTextures;
TEXTURE *textures;
2005-04-18 15:27:00 +00:00
} LEVEL;
typedef struct _POLYGON {
VECTOR normal;
VERTEX vertices[3];
VECTOR normals[3];
GLuint texture;
TEXCOORDS texcoords[3];
} POLYGON;
typedef struct _POLYGON_LIST {
int nPolygons;
POLYGON polygons[0];
} POLYGON_LIST;
2005-04-18 15:27:00 +00:00
LEVEL *LoadLevel(char *);
POLYGON_LIST *DrawRoom(LEVEL *, int);
2005-04-18 15:27:00 +00:00
void FreeLevel(LEVEL *);
#endif