vkQuake2 doxygen  1.0 dev
qfiles.h File Reference

Go to the source code of this file.

Classes

struct  dpackfile_t
 
struct  dpackheader_t
 
struct  pcx_t
 
struct  dstvert_t
 
struct  dtriangle_t
 
struct  dtrivertx_t
 
struct  daliasframe_t
 
struct  dmdl_t
 
struct  dsprframe_t
 
struct  dsprite_t
 
struct  miptex_s
 
struct  lump_t
 
struct  dheader_t
 
struct  dmodel_t
 
struct  dvertex_t
 
struct  dplane_t
 
struct  dnode_t
 
struct  texinfo_s
 
struct  dedge_t
 
struct  dface_t
 
struct  dleaf_t
 
struct  dbrushside_t
 
struct  dbrush_t
 
struct  dvis_t
 
struct  dareaportal_t
 
struct  darea_t
 

Macros

#define IDPAKHEADER   (('K'<<24)+('C'<<16)+('A'<<8)+'P')
 
#define MAX_FILES_IN_PACK   4096
 
#define IDALIASHEADER   (('2'<<24)+('P'<<16)+('D'<<8)+'I')
 
#define ALIAS_VERSION   8
 
#define MAX_TRIANGLES   4096
 
#define MAX_VERTS   2048
 
#define MAX_FRAMES   512
 
#define MAX_MD2SKINS   32
 
#define MAX_SKINNAME   64
 
#define DTRIVERTX_V0   0
 
#define DTRIVERTX_V1   1
 
#define DTRIVERTX_V2   2
 
#define DTRIVERTX_LNI   3
 
#define DTRIVERTX_SIZE   4
 
#define IDSPRITEHEADER   (('2'<<24)+('S'<<16)+('D'<<8)+'I')
 
#define SPRITE_VERSION   2
 
#define MIPLEVELS   4
 
#define IDBSPHEADER   (('P'<<24)+('S'<<16)+('B'<<8)+'I')
 
#define BSPVERSION   38
 
#define MAX_MAP_MODELS   1024
 
#define MAX_MAP_BRUSHES   8192
 
#define MAX_MAP_ENTITIES   2048
 
#define MAX_MAP_ENTSTRING   0x40000
 
#define MAX_MAP_TEXINFO   8192
 
#define MAX_MAP_AREAS   256
 
#define MAX_MAP_AREAPORTALS   1024
 
#define MAX_MAP_PLANES   65536
 
#define MAX_MAP_NODES   65536
 
#define MAX_MAP_BRUSHSIDES   65536
 
#define MAX_MAP_LEAFS   65536
 
#define MAX_MAP_VERTS   65536
 
#define MAX_MAP_FACES   65536
 
#define MAX_MAP_LEAFFACES   65536
 
#define MAX_MAP_LEAFBRUSHES   65536
 
#define MAX_MAP_PORTALS   65536
 
#define MAX_MAP_EDGES   128000
 
#define MAX_MAP_SURFEDGES   256000
 
#define MAX_MAP_LIGHTING   0x200000
 
#define MAX_MAP_VISIBILITY   0x100000
 
#define MAX_KEY   32
 
#define MAX_VALUE   1024
 
#define LUMP_ENTITIES   0
 
#define LUMP_PLANES   1
 
#define LUMP_VERTEXES   2
 
#define LUMP_VISIBILITY   3
 
#define LUMP_NODES   4
 
#define LUMP_TEXINFO   5
 
#define LUMP_FACES   6
 
#define LUMP_LIGHTING   7
 
#define LUMP_LEAFS   8
 
#define LUMP_LEAFFACES   9
 
#define LUMP_LEAFBRUSHES   10
 
#define LUMP_EDGES   11
 
#define LUMP_SURFEDGES   12
 
#define LUMP_MODELS   13
 
#define LUMP_BRUSHES   14
 
#define LUMP_BRUSHSIDES   15
 
#define LUMP_POP   16
 
#define LUMP_AREAS   17
 
#define LUMP_AREAPORTALS   18
 
#define HEADER_LUMPS   19
 
#define PLANE_X   0
 
#define PLANE_Y   1
 
#define PLANE_Z   2
 
#define PLANE_ANYX   3
 
#define PLANE_ANYY   4
 
#define PLANE_ANYZ   5
 
#define CONTENTS_SOLID   1
 
#define CONTENTS_WINDOW   2
 
#define CONTENTS_AUX   4
 
#define CONTENTS_LAVA   8
 
#define CONTENTS_SLIME   16
 
#define CONTENTS_WATER   32
 
#define CONTENTS_MIST   64
 
#define LAST_VISIBLE_CONTENTS   64
 
#define CONTENTS_AREAPORTAL   0x8000
 
#define CONTENTS_PLAYERCLIP   0x10000
 
#define CONTENTS_MONSTERCLIP   0x20000
 
#define CONTENTS_CURRENT_0   0x40000
 
#define CONTENTS_CURRENT_90   0x80000
 
#define CONTENTS_CURRENT_180   0x100000
 
#define CONTENTS_CURRENT_270   0x200000
 
#define CONTENTS_CURRENT_UP   0x400000
 
#define CONTENTS_CURRENT_DOWN   0x800000
 
#define CONTENTS_ORIGIN   0x1000000
 
#define CONTENTS_MONSTER   0x2000000
 
#define CONTENTS_DEADMONSTER   0x4000000
 
#define CONTENTS_DETAIL   0x8000000
 
#define CONTENTS_TRANSLUCENT   0x10000000
 
#define CONTENTS_LADDER   0x20000000
 
#define SURF_LIGHT   0x1
 
#define SURF_SLICK   0x2
 
#define SURF_SKY   0x4
 
#define SURF_WARP   0x8
 
#define SURF_TRANS33   0x10
 
#define SURF_TRANS66   0x20
 
#define SURF_FLOWING   0x40
 
#define SURF_NODRAW   0x80
 
#define MAXLIGHTMAPS   4
 
#define ANGLE_UP   -1
 
#define ANGLE_DOWN   -2
 
#define DVIS_PVS   0
 
#define DVIS_PHS   1
 

Typedefs

typedef struct miptex_s miptex_t
 
typedef struct texinfo_s texinfo_t
 

Macro Definition Documentation

◆ ALIAS_VERSION

#define ALIAS_VERSION   8

Definition at line 87 of file qfiles.h.

◆ ANGLE_DOWN

#define ANGLE_DOWN   -2

Definition at line 455 of file qfiles.h.

◆ ANGLE_UP

#define ANGLE_UP   -1

Definition at line 454 of file qfiles.h.

◆ BSPVERSION

#define BSPVERSION   38

Definition at line 222 of file qfiles.h.

◆ CONTENTS_AREAPORTAL

#define CONTENTS_AREAPORTAL   0x8000

Definition at line 344 of file qfiles.h.

◆ CONTENTS_AUX

#define CONTENTS_AUX   4

Definition at line 335 of file qfiles.h.

◆ CONTENTS_CURRENT_0

#define CONTENTS_CURRENT_0   0x40000

Definition at line 350 of file qfiles.h.

◆ CONTENTS_CURRENT_180

#define CONTENTS_CURRENT_180   0x100000

Definition at line 352 of file qfiles.h.

◆ CONTENTS_CURRENT_270

#define CONTENTS_CURRENT_270   0x200000

Definition at line 353 of file qfiles.h.

◆ CONTENTS_CURRENT_90

#define CONTENTS_CURRENT_90   0x80000

Definition at line 351 of file qfiles.h.

◆ CONTENTS_CURRENT_DOWN

#define CONTENTS_CURRENT_DOWN   0x800000

Definition at line 355 of file qfiles.h.

◆ CONTENTS_CURRENT_UP

#define CONTENTS_CURRENT_UP   0x400000

Definition at line 354 of file qfiles.h.

◆ CONTENTS_DEADMONSTER

#define CONTENTS_DEADMONSTER   0x4000000

Definition at line 360 of file qfiles.h.

◆ CONTENTS_DETAIL

#define CONTENTS_DETAIL   0x8000000

Definition at line 361 of file qfiles.h.

◆ CONTENTS_LADDER

#define CONTENTS_LADDER   0x20000000

Definition at line 363 of file qfiles.h.

◆ CONTENTS_LAVA

#define CONTENTS_LAVA   8

Definition at line 336 of file qfiles.h.

◆ CONTENTS_MIST

#define CONTENTS_MIST   64

Definition at line 339 of file qfiles.h.

◆ CONTENTS_MONSTER

#define CONTENTS_MONSTER   0x2000000

Definition at line 359 of file qfiles.h.

◆ CONTENTS_MONSTERCLIP

#define CONTENTS_MONSTERCLIP   0x20000

Definition at line 347 of file qfiles.h.

◆ CONTENTS_ORIGIN

#define CONTENTS_ORIGIN   0x1000000

Definition at line 357 of file qfiles.h.

◆ CONTENTS_PLAYERCLIP

#define CONTENTS_PLAYERCLIP   0x10000

Definition at line 346 of file qfiles.h.

◆ CONTENTS_SLIME

#define CONTENTS_SLIME   16

Definition at line 337 of file qfiles.h.

◆ CONTENTS_SOLID

#define CONTENTS_SOLID   1

Definition at line 333 of file qfiles.h.

◆ CONTENTS_TRANSLUCENT

#define CONTENTS_TRANSLUCENT   0x10000000

Definition at line 362 of file qfiles.h.

◆ CONTENTS_WATER

#define CONTENTS_WATER   32

Definition at line 338 of file qfiles.h.

◆ CONTENTS_WINDOW

#define CONTENTS_WINDOW   2

Definition at line 334 of file qfiles.h.

◆ DTRIVERTX_LNI

#define DTRIVERTX_LNI   3

Definition at line 116 of file qfiles.h.

◆ DTRIVERTX_SIZE

#define DTRIVERTX_SIZE   4

Definition at line 117 of file qfiles.h.

◆ DTRIVERTX_V0

#define DTRIVERTX_V0   0

Definition at line 113 of file qfiles.h.

◆ DTRIVERTX_V1

#define DTRIVERTX_V1   1

Definition at line 114 of file qfiles.h.

◆ DTRIVERTX_V2

#define DTRIVERTX_V2   2

Definition at line 115 of file qfiles.h.

◆ DVIS_PHS

#define DVIS_PHS   1

Definition at line 462 of file qfiles.h.

◆ DVIS_PVS

#define DVIS_PVS   0

Definition at line 461 of file qfiles.h.

◆ HEADER_LUMPS

#define HEADER_LUMPS   19

Definition at line 281 of file qfiles.h.

◆ IDALIASHEADER

#define IDALIASHEADER   (('2'<<24)+('P'<<16)+('D'<<8)+'I')

Definition at line 86 of file qfiles.h.

◆ IDBSPHEADER

#define IDBSPHEADER   (('P'<<24)+('S'<<16)+('B'<<8)+'I')

Definition at line 219 of file qfiles.h.

◆ IDPAKHEADER

#define IDPAKHEADER   (('K'<<24)+('C'<<16)+('A'<<8)+'P')

Definition at line 34 of file qfiles.h.

◆ IDSPRITEHEADER

#define IDSPRITEHEADER   (('2'<<24)+('S'<<16)+('D'<<8)+'I')

Definition at line 170 of file qfiles.h.

◆ LAST_VISIBLE_CONTENTS

#define LAST_VISIBLE_CONTENTS   64

Definition at line 340 of file qfiles.h.

◆ LUMP_AREAPORTALS

#define LUMP_AREAPORTALS   18

Definition at line 280 of file qfiles.h.

◆ LUMP_AREAS

#define LUMP_AREAS   17

Definition at line 279 of file qfiles.h.

◆ LUMP_BRUSHES

#define LUMP_BRUSHES   14

Definition at line 276 of file qfiles.h.

◆ LUMP_BRUSHSIDES

#define LUMP_BRUSHSIDES   15

Definition at line 277 of file qfiles.h.

◆ LUMP_EDGES

#define LUMP_EDGES   11

Definition at line 273 of file qfiles.h.

◆ LUMP_ENTITIES

#define LUMP_ENTITIES   0

Definition at line 262 of file qfiles.h.

◆ LUMP_FACES

#define LUMP_FACES   6

Definition at line 268 of file qfiles.h.

◆ LUMP_LEAFBRUSHES

#define LUMP_LEAFBRUSHES   10

Definition at line 272 of file qfiles.h.

◆ LUMP_LEAFFACES

#define LUMP_LEAFFACES   9

Definition at line 271 of file qfiles.h.

◆ LUMP_LEAFS

#define LUMP_LEAFS   8

Definition at line 270 of file qfiles.h.

◆ LUMP_LIGHTING

#define LUMP_LIGHTING   7

Definition at line 269 of file qfiles.h.

◆ LUMP_MODELS

#define LUMP_MODELS   13

Definition at line 275 of file qfiles.h.

◆ LUMP_NODES

#define LUMP_NODES   4

Definition at line 266 of file qfiles.h.

◆ LUMP_PLANES

#define LUMP_PLANES   1

Definition at line 263 of file qfiles.h.

◆ LUMP_POP

#define LUMP_POP   16

Definition at line 278 of file qfiles.h.

◆ LUMP_SURFEDGES

#define LUMP_SURFEDGES   12

Definition at line 274 of file qfiles.h.

◆ LUMP_TEXINFO

#define LUMP_TEXINFO   5

Definition at line 267 of file qfiles.h.

◆ LUMP_VERTEXES

#define LUMP_VERTEXES   2

Definition at line 264 of file qfiles.h.

◆ LUMP_VISIBILITY

#define LUMP_VISIBILITY   3

Definition at line 265 of file qfiles.h.

◆ MAX_FILES_IN_PACK

#define MAX_FILES_IN_PACK   4096

Definition at line 49 of file qfiles.h.

◆ MAX_FRAMES

#define MAX_FRAMES   512

Definition at line 91 of file qfiles.h.

◆ MAX_KEY

#define MAX_KEY   32

Definition at line 252 of file qfiles.h.

◆ MAX_MAP_AREAPORTALS

#define MAX_MAP_AREAPORTALS   1024

Definition at line 235 of file qfiles.h.

◆ MAX_MAP_AREAS

#define MAX_MAP_AREAS   256

Definition at line 234 of file qfiles.h.

◆ MAX_MAP_BRUSHES

#define MAX_MAP_BRUSHES   8192

Definition at line 229 of file qfiles.h.

◆ MAX_MAP_BRUSHSIDES

#define MAX_MAP_BRUSHSIDES   65536

Definition at line 238 of file qfiles.h.

◆ MAX_MAP_EDGES

#define MAX_MAP_EDGES   128000

Definition at line 245 of file qfiles.h.

◆ MAX_MAP_ENTITIES

#define MAX_MAP_ENTITIES   2048

Definition at line 230 of file qfiles.h.

◆ MAX_MAP_ENTSTRING

#define MAX_MAP_ENTSTRING   0x40000

Definition at line 231 of file qfiles.h.

◆ MAX_MAP_FACES

#define MAX_MAP_FACES   65536

Definition at line 241 of file qfiles.h.

◆ MAX_MAP_LEAFBRUSHES

#define MAX_MAP_LEAFBRUSHES   65536

Definition at line 243 of file qfiles.h.

◆ MAX_MAP_LEAFFACES

#define MAX_MAP_LEAFFACES   65536

Definition at line 242 of file qfiles.h.

◆ MAX_MAP_LEAFS

#define MAX_MAP_LEAFS   65536

Definition at line 239 of file qfiles.h.

◆ MAX_MAP_LIGHTING

#define MAX_MAP_LIGHTING   0x200000

Definition at line 247 of file qfiles.h.

◆ MAX_MAP_MODELS

#define MAX_MAP_MODELS   1024

Definition at line 228 of file qfiles.h.

◆ MAX_MAP_NODES

#define MAX_MAP_NODES   65536

Definition at line 237 of file qfiles.h.

◆ MAX_MAP_PLANES

#define MAX_MAP_PLANES   65536

Definition at line 236 of file qfiles.h.

◆ MAX_MAP_PORTALS

#define MAX_MAP_PORTALS   65536

Definition at line 244 of file qfiles.h.

◆ MAX_MAP_SURFEDGES

#define MAX_MAP_SURFEDGES   256000

Definition at line 246 of file qfiles.h.

◆ MAX_MAP_TEXINFO

#define MAX_MAP_TEXINFO   8192

Definition at line 232 of file qfiles.h.

◆ MAX_MAP_VERTS

#define MAX_MAP_VERTS   65536

Definition at line 240 of file qfiles.h.

◆ MAX_MAP_VISIBILITY

#define MAX_MAP_VISIBILITY   0x100000

Definition at line 248 of file qfiles.h.

◆ MAX_MD2SKINS

#define MAX_MD2SKINS   32

Definition at line 92 of file qfiles.h.

◆ MAX_SKINNAME

#define MAX_SKINNAME   64

Definition at line 93 of file qfiles.h.

◆ MAX_TRIANGLES

#define MAX_TRIANGLES   4096

Definition at line 89 of file qfiles.h.

◆ MAX_VALUE

#define MAX_VALUE   1024

Definition at line 253 of file qfiles.h.

◆ MAX_VERTS

#define MAX_VERTS   2048

Definition at line 90 of file qfiles.h.

◆ MAXLIGHTMAPS

#define MAXLIGHTMAPS   4

Definition at line 409 of file qfiles.h.

◆ MIPLEVELS

#define MIPLEVELS   4

Definition at line 197 of file qfiles.h.

◆ PLANE_ANYX

#define PLANE_ANYX   3

Definition at line 312 of file qfiles.h.

◆ PLANE_ANYY

#define PLANE_ANYY   4

Definition at line 313 of file qfiles.h.

◆ PLANE_ANYZ

#define PLANE_ANYZ   5

Definition at line 314 of file qfiles.h.

◆ PLANE_X

#define PLANE_X   0

Definition at line 307 of file qfiles.h.

◆ PLANE_Y

#define PLANE_Y   1

Definition at line 308 of file qfiles.h.

◆ PLANE_Z

#define PLANE_Z   2

Definition at line 309 of file qfiles.h.

◆ SPRITE_VERSION

#define SPRITE_VERSION   2

Definition at line 172 of file qfiles.h.

◆ SURF_FLOWING

#define SURF_FLOWING   0x40

Definition at line 375 of file qfiles.h.

◆ SURF_LIGHT

#define SURF_LIGHT   0x1

Definition at line 367 of file qfiles.h.

◆ SURF_NODRAW

#define SURF_NODRAW   0x80

Definition at line 376 of file qfiles.h.

◆ SURF_SKY

#define SURF_SKY   0x4

Definition at line 371 of file qfiles.h.

◆ SURF_SLICK

#define SURF_SLICK   0x2

Definition at line 369 of file qfiles.h.

◆ SURF_TRANS33

#define SURF_TRANS33   0x10

Definition at line 373 of file qfiles.h.

◆ SURF_TRANS66

#define SURF_TRANS66   0x20

Definition at line 374 of file qfiles.h.

◆ SURF_WARP

#define SURF_WARP   0x8

Definition at line 372 of file qfiles.h.

Typedef Documentation

◆ miptex_t

typedef struct miptex_s miptex_t

◆ texinfo_t

typedef struct texinfo_s texinfo_t