codemp/qcommon/qfiles.h File Reference

Go to the source code of this file.

Data Structures

struct  _TargaHeader
struct  dbrush_t
struct  dbrushside_t
struct  dfog_t
struct  dfontdat_s
struct  dgrid_t
struct  dheader_t
struct  dleaf_t
struct  dmodel_t
struct  dnode_t
struct  dplane_t
struct  drawVert_t
struct  dshader_t
struct  dsurface_t
struct  glyphInfo_t
struct  lump_t
struct  mapVert_t
struct  md3Frame_s
struct  md3Header_t
struct  md3Shader_t
struct  md3St_t
struct  md3Surface_t
struct  md3Tag_s
struct  md3Triangle_t
struct  md3XyzNormal_t
struct  pcx_t
struct  vmHeader_t

Defines

#define SHADER_MAX_VERTEXES   1000
#define SHADER_MAX_INDEXES   (6*SHADER_MAX_VERTEXES)
#define MAX_QPATH   64
#define VM_MAGIC   0x12721444
#define MD3_IDENT   (('3'<<24)+('P'<<16)+('D'<<8)+'I')
#define MD3_VERSION   15
#define MD3_MAX_LODS   3
#define MD3_MAX_TRIANGLES   8192
#define MD3_MAX_VERTS   4096
#define MD3_MAX_SHADERS   256
#define MD3_MAX_FRAMES   1024
#define MD3_MAX_SURFACES   32 + 32
#define MD3_MAX_TAGS   16
#define MD3_XYZ_SCALE   (1.0/64)
#define BSP_IDENT   (('P'<<24)+('S'<<16)+('B'<<8)+'R')
#define BSP_VERSION   1
#define MAX_MAP_MODELS   0x400
#define MAX_MAP_BRUSHES   0x8000
#define MAX_MAP_ENTITIES   0x800
#define MAX_MAP_ENTSTRING   0x40000
#define MAX_MAP_SHADERS   0x400
#define MAX_MAP_AREAS   0x100
#define MAX_MAP_FOGS   0x100
#define MAX_MAP_PLANES   0x20000
#define MAX_MAP_NODES   0x20000
#define MAX_MAP_BRUSHSIDES   0x20000
#define MAX_MAP_LEAFS   0x20000
#define MAX_MAP_LEAFFACES   0x20000
#define MAX_MAP_LEAFBRUSHES   0x40000
#define MAX_MAP_PORTALS   0x20000
#define MAX_MAP_LIGHTING   0x800000
#define MAX_MAP_LIGHTGRID   65535
#define MAX_MAP_LIGHTGRID_ARRAY   0x100000
#define MAX_MAP_VISIBILITY   0x600000
#define MAX_MAP_DRAW_SURFS   0x20000
#define MAX_MAP_DRAW_VERTS   0x80000
#define MAX_MAP_DRAW_INDEXES   0x80000
#define MAX_KEY   32
#define MAX_VALUE   1024
#define ANGLE_UP   -1
#define ANGLE_DOWN   -2
#define LIGHTMAP_WIDTH   128
#define LIGHTMAP_HEIGHT   128
#define LUMP_ENTITIES   0
#define LUMP_SHADERS   1
#define LUMP_PLANES   2
#define LUMP_NODES   3
#define LUMP_LEAFS   4
#define LUMP_LEAFSURFACES   5
#define LUMP_LEAFBRUSHES   6
#define LUMP_MODELS   7
#define LUMP_BRUSHES   8
#define LUMP_BRUSHSIDES   9
#define LUMP_DRAWVERTS   10
#define LUMP_DRAWINDEXES   11
#define LUMP_FOGS   12
#define LUMP_SURFACES   13
#define LUMP_LIGHTMAPS   14
#define LUMP_LIGHTGRID   15
#define LUMP_VISIBILITY   16
#define LUMP_LIGHTARRAY   17
#define HEADER_LUMPS   18
#define MAXLIGHTMAPS   4
#define LS_NORMAL   0x00
#define LS_UNUSED   0xfe
#define LS_LSNONE   0xff
#define MAX_LIGHT_STYLES   64
#define GLYPH_COUNT   256
#define STYLE_DROPSHADOW   0x80000000
#define STYLE_BLINK   0x40000000
#define SET_MASK   0x00ffffff

Typedefs

typedef _TargaHeader TargaHeader
typedef md3Frame_s md3Frame_t
typedef md3Tag_s md3Tag_t
typedef dfontdat_s dfontdat_t

Enumerations

enum  mapSurfaceType_t {
  MST_BAD, MST_PLANAR, MST_PATCH, MST_TRIANGLE_SOUP,
  MST_FLARE
}


Define Documentation

#define ANGLE_DOWN   -2
 

Definition at line 239 of file qfiles.h.

#define ANGLE_UP   -1
 

Definition at line 238 of file qfiles.h.

#define BSP_IDENT   (('P'<<24)+('S'<<16)+('B'<<8)+'R')
 

Definition at line 201 of file qfiles.h.

#define BSP_VERSION   1
 

Definition at line 203 of file qfiles.h.

#define GLYPH_COUNT   256
 

Definition at line 407 of file qfiles.h.

#define HEADER_LUMPS   18
 

Definition at line 272 of file qfiles.h.

#define LIGHTMAP_HEIGHT   128
 

Definition at line 242 of file qfiles.h.

#define LIGHTMAP_WIDTH   128
 

Definition at line 241 of file qfiles.h.

#define LS_LSNONE   0xff
 

Definition at line 343 of file qfiles.h.

#define LS_NORMAL   0x00
 

Definition at line 341 of file qfiles.h.

#define LS_UNUSED   0xfe
 

Definition at line 342 of file qfiles.h.

#define LUMP_BRUSHES   8
 

Definition at line 262 of file qfiles.h.

#define LUMP_BRUSHSIDES   9
 

Definition at line 263 of file qfiles.h.

#define LUMP_DRAWINDEXES   11
 

Definition at line 265 of file qfiles.h.

#define LUMP_DRAWVERTS   10
 

Definition at line 264 of file qfiles.h.

#define LUMP_ENTITIES   0
 

Definition at line 254 of file qfiles.h.

#define LUMP_FOGS   12
 

Definition at line 266 of file qfiles.h.

#define LUMP_LEAFBRUSHES   6
 

Definition at line 260 of file qfiles.h.

#define LUMP_LEAFS   4
 

Definition at line 258 of file qfiles.h.

#define LUMP_LEAFSURFACES   5
 

Definition at line 259 of file qfiles.h.

#define LUMP_LIGHTARRAY   17
 

Definition at line 271 of file qfiles.h.

#define LUMP_LIGHTGRID   15
 

Definition at line 269 of file qfiles.h.

#define LUMP_LIGHTMAPS   14
 

Definition at line 268 of file qfiles.h.

#define LUMP_MODELS   7
 

Definition at line 261 of file qfiles.h.

#define LUMP_NODES   3
 

Definition at line 257 of file qfiles.h.

#define LUMP_PLANES   2
 

Definition at line 256 of file qfiles.h.

#define LUMP_SHADERS   1
 

Definition at line 255 of file qfiles.h.

#define LUMP_SURFACES   13
 

Definition at line 267 of file qfiles.h.

#define LUMP_VISIBILITY   16
 

Definition at line 270 of file qfiles.h.

#define MAX_KEY   32
 

Definition at line 234 of file qfiles.h.

#define MAX_LIGHT_STYLES   64
 

Definition at line 344 of file qfiles.h.

#define MAX_MAP_AREAS   0x100
 

Definition at line 214 of file qfiles.h.

#define MAX_MAP_BRUSHES   0x8000
 

Definition at line 209 of file qfiles.h.

#define MAX_MAP_BRUSHSIDES   0x20000
 

Definition at line 218 of file qfiles.h.

#define MAX_MAP_DRAW_INDEXES   0x80000
 

Definition at line 230 of file qfiles.h.

#define MAX_MAP_DRAW_SURFS   0x20000
 

Definition at line 228 of file qfiles.h.

#define MAX_MAP_DRAW_VERTS   0x80000
 

Definition at line 229 of file qfiles.h.

#define MAX_MAP_ENTITIES   0x800
 

Definition at line 210 of file qfiles.h.

#define MAX_MAP_ENTSTRING   0x40000
 

Definition at line 211 of file qfiles.h.

#define MAX_MAP_FOGS   0x100
 

Definition at line 215 of file qfiles.h.

#define MAX_MAP_LEAFBRUSHES   0x40000
 

Definition at line 221 of file qfiles.h.

#define MAX_MAP_LEAFFACES   0x20000
 

Definition at line 220 of file qfiles.h.

#define MAX_MAP_LEAFS   0x20000
 

Definition at line 219 of file qfiles.h.

#define MAX_MAP_LIGHTGRID   65535
 

Definition at line 224 of file qfiles.h.

#define MAX_MAP_LIGHTGRID_ARRAY   0x100000
 

Definition at line 225 of file qfiles.h.

#define MAX_MAP_LIGHTING   0x800000
 

Definition at line 223 of file qfiles.h.

#define MAX_MAP_MODELS   0x400
 

Definition at line 208 of file qfiles.h.

#define MAX_MAP_NODES   0x20000
 

Definition at line 217 of file qfiles.h.

#define MAX_MAP_PLANES   0x20000
 

Definition at line 216 of file qfiles.h.

#define MAX_MAP_PORTALS   0x20000
 

Definition at line 222 of file qfiles.h.

#define MAX_MAP_SHADERS   0x400
 

Definition at line 212 of file qfiles.h.

#define MAX_MAP_VISIBILITY   0x600000
 

Definition at line 226 of file qfiles.h.

#define MAX_QPATH   64
 

Definition at line 15 of file qfiles.h.

#define MAX_VALUE   1024
 

Definition at line 235 of file qfiles.h.

#define MAXLIGHTMAPS   4
 

Definition at line 340 of file qfiles.h.

#define MD3_IDENT   (('3'<<24)+('P'<<16)+('D'<<8)+'I')
 

Definition at line 92 of file qfiles.h.

#define MD3_MAX_FRAMES   1024
 

Definition at line 100 of file qfiles.h.

#define MD3_MAX_LODS   3
 

Definition at line 96 of file qfiles.h.

#define MD3_MAX_SHADERS   256
 

Definition at line 99 of file qfiles.h.

#define MD3_MAX_SURFACES   32 + 32
 

Definition at line 101 of file qfiles.h.

#define MD3_MAX_TAGS   16
 

Definition at line 102 of file qfiles.h.

#define MD3_MAX_TRIANGLES   8192
 

Definition at line 97 of file qfiles.h.

#define MD3_MAX_VERTS   4096
 

Definition at line 98 of file qfiles.h.

#define MD3_VERSION   15
 

Definition at line 93 of file qfiles.h.

#define MD3_XYZ_SCALE   (1.0/64)
 

Definition at line 105 of file qfiles.h.

#define SET_MASK   0x00ffffff
 

Definition at line 412 of file qfiles.h.

#define SHADER_MAX_INDEXES   (6*SHADER_MAX_VERTEXES)
 

Definition at line 11 of file qfiles.h.

#define SHADER_MAX_VERTEXES   1000
 

Definition at line 10 of file qfiles.h.

#define STYLE_BLINK   0x40000000
 

Definition at line 411 of file qfiles.h.

Referenced by CG_Text_Paint(), and Text_Paint().

#define STYLE_DROPSHADOW   0x80000000
 

Definition at line 410 of file qfiles.h.

Referenced by CG_Text_Paint(), and Text_Paint().

#define VM_MAGIC   0x12721444
 

Definition at line 25 of file qfiles.h.


Typedef Documentation

typedef struct dfontdat_s dfontdat_t
 

typedef struct md3Frame_s md3Frame_t
 

typedef struct md3Tag_s md3Tag_t
 

typedef struct _TargaHeader TargaHeader
 


Enumeration Type Documentation

enum mapSurfaceType_t
 

Enumeration values:
MST_BAD 
MST_PLANAR 
MST_PATCH 
MST_TRIANGLE_SOUP 
MST_FLARE 

Definition at line 370 of file qfiles.h.

00370              {
00371         MST_BAD,
00372         MST_PLANAR,
00373         MST_PATCH,
00374         MST_TRIANGLE_SOUP,
00375         MST_FLARE
00376 } mapSurfaceType_t;