DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
 
model_q2bsp.h File Reference
#include "bspfile.h"
+ Include dependency graph for model_q2bsp.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  q2dheader_t
 
struct  q2dmodel_t
 

Macros

#define Q2BSPMAGIC   ('I' + 'B' * 256 + 'S' * 65536 + 'P' * 16777216)
 
#define Q2BSPVERSION   38
 
#define Q2CONTENTS_AREAPORTAL   0x8000
 
#define Q2CONTENTS_AUX   4
 
#define Q2CONTENTS_CURRENT_0   0x40000
 
#define Q2CONTENTS_CURRENT_180   0x100000
 
#define Q2CONTENTS_CURRENT_270   0x200000
 
#define Q2CONTENTS_CURRENT_90   0x80000
 
#define Q2CONTENTS_CURRENT_DOWN   0x800000
 
#define Q2CONTENTS_CURRENT_UP   0x400000
 
#define Q2CONTENTS_DEADMONSTER   0x4000000
 
#define Q2CONTENTS_DETAIL   0x8000000
 
#define Q2CONTENTS_LADDER   0x20000000
 
#define Q2CONTENTS_LAVA   8
 
#define Q2CONTENTS_MIST   64
 
#define Q2CONTENTS_MONSTER   0x2000000
 
#define Q2CONTENTS_MONSTERCLIP   0x20000
 
#define Q2CONTENTS_ORIGIN   0x1000000
 
#define Q2CONTENTS_PLAYERCLIP   0x10000
 
#define Q2CONTENTS_SLIME   16
 
#define Q2CONTENTS_SOLID   1
 
#define Q2CONTENTS_TRANSLUCENT   0x10000000
 
#define Q2CONTENTS_WATER   32
 
#define Q2CONTENTS_WINDOW   2
 
#define Q2HEADER_LUMPS   19
 
#define Q2LAST_VISIBLE_CONTENTS   64
 
#define Q2LUMP_AREAPORTALS   18
 
#define Q2LUMP_AREAS   17
 
#define Q2LUMP_BRUSHES   14
 
#define Q2LUMP_BRUSHSIDES   15
 
#define Q2LUMP_EDGES   11
 
#define Q2LUMP_ENTITIES   0
 
#define Q2LUMP_FACES   6
 
#define Q2LUMP_LEAFBRUSHES   10
 
#define Q2LUMP_LEAFFACES   9
 
#define Q2LUMP_LEAFS   8
 
#define Q2LUMP_LIGHTING   7
 
#define Q2LUMP_MODELS   13
 
#define Q2LUMP_NODES   4
 
#define Q2LUMP_PLANES   1
 
#define Q2LUMP_POP   16
 
#define Q2LUMP_SURFEDGES   12
 
#define Q2LUMP_TEXINFO   5
 
#define Q2LUMP_VERTEXES   2
 
#define Q2LUMP_VISIBILITY   3
 
#define Q2SURF_ALPHATEST   0x02000000
 
#define Q2SURF_FLOWING   0x40
 
#define Q2SURF_HINT   0x100
 
#define Q2SURF_LIGHT   0x1
 
#define Q2SURF_NODRAW   0x80
 
#define Q2SURF_SKIP   0x200
 
#define Q2SURF_SKY   0x4
 
#define Q2SURF_SLICK   0x2
 
#define Q2SURF_TRANS33   0x10
 
#define Q2SURF_TRANS66   0x20
 
#define Q2SURF_WARP   0x8
 

Macro Definition Documentation

◆ Q2BSPMAGIC

#define Q2BSPMAGIC   ('I' + 'B' * 256 + 'S' * 65536 + 'P' * 16777216)

Definition at line 6 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2BSPVERSION

#define Q2BSPVERSION   38

Definition at line 7 of file model_q2bsp.h.

Referenced by GetMapList(), Mod_IBSP_Load(), and Mod_Q2BSP_Load().

◆ Q2CONTENTS_AREAPORTAL

#define Q2CONTENTS_AREAPORTAL   0x8000

Definition at line 71 of file model_q2bsp.h.

◆ Q2CONTENTS_AUX

#define Q2CONTENTS_AUX   4

Definition at line 62 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2CONTENTS_CURRENT_0

#define Q2CONTENTS_CURRENT_0   0x40000

Definition at line 77 of file model_q2bsp.h.

◆ Q2CONTENTS_CURRENT_180

#define Q2CONTENTS_CURRENT_180   0x100000

Definition at line 79 of file model_q2bsp.h.

◆ Q2CONTENTS_CURRENT_270

#define Q2CONTENTS_CURRENT_270   0x200000

Definition at line 80 of file model_q2bsp.h.

◆ Q2CONTENTS_CURRENT_90

#define Q2CONTENTS_CURRENT_90   0x80000

Definition at line 78 of file model_q2bsp.h.

◆ Q2CONTENTS_CURRENT_DOWN

#define Q2CONTENTS_CURRENT_DOWN   0x800000

Definition at line 82 of file model_q2bsp.h.

◆ Q2CONTENTS_CURRENT_UP

#define Q2CONTENTS_CURRENT_UP   0x400000

Definition at line 81 of file model_q2bsp.h.

◆ Q2CONTENTS_DEADMONSTER

#define Q2CONTENTS_DEADMONSTER   0x4000000

Definition at line 87 of file model_q2bsp.h.

◆ Q2CONTENTS_DETAIL

#define Q2CONTENTS_DETAIL   0x8000000

Definition at line 88 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2CONTENTS_LADDER

#define Q2CONTENTS_LADDER   0x20000000

Definition at line 90 of file model_q2bsp.h.

◆ Q2CONTENTS_LAVA

#define Q2CONTENTS_LAVA   8

Definition at line 63 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2CONTENTS_MIST

#define Q2CONTENTS_MIST   64

Definition at line 66 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2CONTENTS_MONSTER

#define Q2CONTENTS_MONSTER   0x2000000

Definition at line 86 of file model_q2bsp.h.

◆ Q2CONTENTS_MONSTERCLIP

#define Q2CONTENTS_MONSTERCLIP   0x20000

Definition at line 74 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2CONTENTS_ORIGIN

#define Q2CONTENTS_ORIGIN   0x1000000

Definition at line 84 of file model_q2bsp.h.

◆ Q2CONTENTS_PLAYERCLIP

#define Q2CONTENTS_PLAYERCLIP   0x10000

Definition at line 73 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2CONTENTS_SLIME

#define Q2CONTENTS_SLIME   16

Definition at line 64 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2CONTENTS_SOLID

#define Q2CONTENTS_SOLID   1

Definition at line 60 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2CONTENTS_TRANSLUCENT

#define Q2CONTENTS_TRANSLUCENT   0x10000000

Definition at line 89 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2CONTENTS_WATER

#define Q2CONTENTS_WATER   32

Definition at line 65 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2CONTENTS_WINDOW

#define Q2CONTENTS_WINDOW   2

Definition at line 61 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2HEADER_LUMPS

#define Q2HEADER_LUMPS   19

Definition at line 33 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2LAST_VISIBLE_CONTENTS

#define Q2LAST_VISIBLE_CONTENTS   64

Definition at line 67 of file model_q2bsp.h.

◆ Q2LUMP_AREAPORTALS

#define Q2LUMP_AREAPORTALS   18

Definition at line 32 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2LUMP_AREAS

#define Q2LUMP_AREAS   17

Definition at line 31 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2LUMP_BRUSHES

#define Q2LUMP_BRUSHES   14

Definition at line 28 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2LUMP_BRUSHSIDES

#define Q2LUMP_BRUSHSIDES   15

Definition at line 29 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2LUMP_EDGES

#define Q2LUMP_EDGES   11

Definition at line 25 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2LUMP_ENTITIES

#define Q2LUMP_ENTITIES   0

Definition at line 14 of file model_q2bsp.h.

Referenced by GetMapList(), and Mod_Q2BSP_Load().

◆ Q2LUMP_FACES

#define Q2LUMP_FACES   6

Definition at line 20 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2LUMP_LEAFBRUSHES

#define Q2LUMP_LEAFBRUSHES   10

Definition at line 24 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2LUMP_LEAFFACES

#define Q2LUMP_LEAFFACES   9

Definition at line 23 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2LUMP_LEAFS

#define Q2LUMP_LEAFS   8

Definition at line 22 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2LUMP_LIGHTING

#define Q2LUMP_LIGHTING   7

Definition at line 21 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2LUMP_MODELS

#define Q2LUMP_MODELS   13

Definition at line 27 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2LUMP_NODES

#define Q2LUMP_NODES   4

Definition at line 18 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2LUMP_PLANES

#define Q2LUMP_PLANES   1

Definition at line 15 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2LUMP_POP

#define Q2LUMP_POP   16

Definition at line 30 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2LUMP_SURFEDGES

#define Q2LUMP_SURFEDGES   12

Definition at line 26 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2LUMP_TEXINFO

#define Q2LUMP_TEXINFO   5

Definition at line 19 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2LUMP_VERTEXES

#define Q2LUMP_VERTEXES   2

Definition at line 16 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2LUMP_VISIBILITY

#define Q2LUMP_VISIBILITY   3

Definition at line 17 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_Load().

◆ Q2SURF_ALPHATEST

#define Q2SURF_ALPHATEST   0x02000000

Definition at line 108 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2SURF_FLOWING

#define Q2SURF_FLOWING   0x40

Definition at line 102 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2SURF_HINT

#define Q2SURF_HINT   0x100

Definition at line 105 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2SURF_LIGHT

#define Q2SURF_LIGHT   0x1

Definition at line 94 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2SURF_NODRAW

#define Q2SURF_NODRAW   0x80

Definition at line 103 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2SURF_SKIP

#define Q2SURF_SKIP   0x200

Definition at line 106 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2SURF_SKY

#define Q2SURF_SKY   0x4

Definition at line 98 of file model_q2bsp.h.

Referenced by Mod_Q1BSP_LoadFaces(), Mod_Q2BSP_LoadTexinfo(), and Mod_VBSP_LoadFaces().

◆ Q2SURF_SLICK

#define Q2SURF_SLICK   0x2

Definition at line 96 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2SURF_TRANS33

#define Q2SURF_TRANS33   0x10

Definition at line 100 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2SURF_TRANS66

#define Q2SURF_TRANS66   0x20

Definition at line 101 of file model_q2bsp.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ Q2SURF_WARP

#define Q2SURF_WARP   0x8

Definition at line 99 of file model_q2bsp.h.

Referenced by Mod_Q1BSP_LoadFaces(), Mod_Q2BSP_LoadTexinfo(), and Mod_VBSP_LoadFaces().