mirror of
https://github.com/id-Software/Quake-Tools.git
synced 2026-03-20 00:49:35 +01:00
The source release of the qutils.
This commit is contained in:
50
qutils/QBSP/MAP.H
Normal file
50
qutils/QBSP/MAP.H
Normal file
@@ -0,0 +1,50 @@
|
||||
|
||||
|
||||
#define MAX_FACES 16
|
||||
typedef struct mface_s
|
||||
{
|
||||
struct mface_s *next;
|
||||
plane_t plane;
|
||||
int texinfo;
|
||||
} mface_t;
|
||||
|
||||
typedef struct mbrush_s
|
||||
{
|
||||
struct mbrush_s *next;
|
||||
mface_t *faces;
|
||||
} mbrush_t;
|
||||
|
||||
typedef struct epair_s
|
||||
{
|
||||
struct epair_s *next;
|
||||
char *key;
|
||||
char *value;
|
||||
} epair_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
vec3_t origin;
|
||||
mbrush_t *brushes;
|
||||
epair_t *epairs;
|
||||
} entity_t;
|
||||
|
||||
extern int nummapbrushes;
|
||||
extern mbrush_t mapbrushes[MAX_MAP_BRUSHES];
|
||||
|
||||
extern int num_entities;
|
||||
extern entity_t entities[MAX_MAP_ENTITIES];
|
||||
|
||||
extern int nummiptex;
|
||||
extern char miptex[MAX_MAP_TEXINFO][16];
|
||||
|
||||
void LoadMapFile (char *filename);
|
||||
|
||||
int FindMiptex (char *name);
|
||||
|
||||
void PrintEntity (entity_t *ent);
|
||||
char *ValueForKey (entity_t *ent, char *key);
|
||||
void SetKeyValue (entity_t *ent, char *key, char *value);
|
||||
float FloatForKey (entity_t *ent, char *key);
|
||||
void GetVectorForKey (entity_t *ent, char *key, vec3_t vec);
|
||||
|
||||
void WriteEntitiesToString (void);
|
||||
Reference in New Issue
Block a user