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/types.h

56 lines
940 B
C
Raw Normal View History

2005-04-22 19:51:02 +00:00
#ifndef ZOOM_TYPES_H
#define ZOOM_TYPES_H
2005-04-18 15:27:00 +00:00
2005-04-22 19:51:02 +00:00
#include <neofx/types.h>
2005-04-18 15:27:00 +00:00
#define TRIANGLE_UNKNOWN 0
#define TRIANGLE_WALL 1
#define TRIANGLE_FLOOR 2
#define THING_UNKNOWN 0
#define THING_MEDIPAK25 1
#define THING_MEDIPAK50 2
#define THING_MEDIPAK100 3
2005-04-18 15:27:00 +00:00
#define GATE_UNKNOWN 0
#define GATE_SIDE 1
#define STATE_UNKNOWN 0
#define STATE_OPENED 1
#define STATE_CLOSED 2
#define STATE_OPENING 3
#define STATE_CLOSING 4
#pragma pack(push, 2)
typedef struct WALL {
unsigned char type;
unsigned char visible;
union {
TRIANGLE triangle;
struct {
VERTEX vertices[3];
VECTOR normal;
};
};
int texture;
TEXCOORDS texcoords[3];
} WALL;
typedef struct _THING {
2005-04-18 15:27:00 +00:00
unsigned char type;
unsigned char visible;
VERTEX pos;
} THING;
2005-04-18 15:27:00 +00:00
typedef struct _GATE {
unsigned char type;
unsigned char open;
WALL walls[2];
2005-04-18 15:27:00 +00:00
VERTEX point;
int room;
int gate;
} GATE;
#pragma pack(pop)
#endif