summaryrefslogtreecommitdiff
path: root/src/engine/world.h
blob: 43ec470777de8339a70d5d5ca0b9e3378c68dbe7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
enum							// hardcoded texture numbers
{
	DEFAULT_GEOM
};

#define MAPVERSION 34		   // bump if map format changes, see worldio.cpp

struct octaheader
{
	char magic[4];			  // "OCTA"
	int version;				// any >8bit quantity is little endian
	int headersize;			 // sizeof(header)
	int worldsize;
	int numents;
	int numpvs;
	int lightmaps;
	int numvars;
	int numvslots;
};

enum
{
	MATSURF_NOT_VISIBLE = 0,
	MATSURF_VISIBLE,
	MATSURF_EDIT_ONLY
};

#define TEX_SCALE 8.0f

struct vertex { vec pos; bvec4 norm; vec2 tc; svec2 lm; bvec4 tangent; };