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

Go to the source code of this file.

Data Structures

struct  hull_t
 
struct  mclipnode_t
 
struct  medge_t
 
struct  mleaf_t
 
struct  mnode_t
 
struct  model_brush_lightstyleinfo_t
 
struct  model_brush_t
 
struct  mplane_t
 
struct  mportal_t
 
struct  mvertex_t
 
struct  svbspmesh_t
 

Macros

#define CHECKPVSBIT(pvs, b)
 
#define CLEARPVSBIT(pvs, b)
 
#define MATERIALFLAG_ADD   0x00000004
 
#define MATERIALFLAG_ALPHA   0x00000002
 
#define MATERIALFLAG_ALPHAGEN_VERTEX   0x08000000
 
#define MATERIALFLAG_ALPHATEST   0x00000800
 
#define MATERIALFLAG_BLENDED   0x00001000
 
#define MATERIALFLAG_CAMERA   0x02000000
 
#define MATERIALFLAG_CUSTOMBLEND   0x00002000
 
#define MATERIALFLAG_CUSTOMSURFACE   0x00800000
 
#define MATERIALFLAG_FULLBRIGHT   0x00000020
 
#define MATERIALFLAG_LIGHTBOTHSIDES   0x00000400
 
#define MATERIALFLAG_LIGHTGRID   0x40000000
 
#define MATERIALFLAG_MESHCOLLISIONS   0x00000001
 
#define MATERIALFLAG_MODELLIGHT   0x00200000
 
#define MATERIALFLAG_NOCULLFACE   0x00010000
 
#define MATERIALFLAG_NODEPTHTEST   0x00000008
 
#define MATERIALFLAG_NODRAW   0x00000200
 
#define MATERIALFLAG_NORTLIGHT   0x04000000
 
#define MATERIALFLAG_NOSHADOW   0x00004000
 
#define MATERIALFLAG_OCCLUDE   0x10000000
 
#define MATERIALFLAG_REFLECTION   0x00100000
 
#define MATERIALFLAG_REFRACTION   0x00080000
 
#define MATERIALFLAG_SHORTDEPTHRANGE   0x00020000
 
#define MATERIALFLAG_SKY   0x00000080
 
#define MATERIALFLAG_TRANSDEPTH   0x01000000
 
#define MATERIALFLAG_VERTEXCOLOR   0x20000000
 
#define MATERIALFLAG_VERTEXTEXTUREBLEND   0x00008000
 
#define MATERIALFLAG_WALL   0x00000040
 
#define MATERIALFLAG_WATERALPHA   0x00000010
 
#define MATERIALFLAG_WATERSCROLL   0x00000100
 
#define MATERIALFLAG_WATERSHADER   0x00040000
 
#define MATERIALFLAGMASK_DEPTHSORTED   (MATERIALFLAG_BLENDED | MATERIALFLAG_NODEPTHTEST)
 
#define MATERIALFLAGMASK_TRANSLUCENT   (MATERIALFLAG_WATERALPHA | MATERIALFLAG_SKY | MATERIALFLAG_NODRAW | MATERIALFLAG_ALPHATEST | MATERIALFLAG_BLENDED | MATERIALFLAG_WATERSHADER | MATERIALFLAG_REFRACTION)
 
#define SETPVSBIT(pvs, b)
 
#define SHADERSTAGE_COUNT   2
 
#define SHADERSTAGE_NORMAL   1
 
#define SHADERSTAGE_SKY   0
 
#define SIDE_BACK   1
 
#define SIDE_FRONT   0
 
#define SIDE_ON   2
 

Macro Definition Documentation

◆ CHECKPVSBIT

◆ CLEARPVSBIT

#define CLEARPVSBIT ( pvs,
b )
Value:
(void) ((b) >= 0 ? (unsigned char) ((pvs)[(b) >> 3] &= ~(1 << ((b) & 7))) : (unsigned char) false)
void() predraw

Definition at line 363 of file model_brush.h.

Referenced by EntityFrame5_WriteFrame(), and Portal_RecursiveFlow().

◆ MATERIALFLAG_ADD

◆ MATERIALFLAG_ALPHA

◆ MATERIALFLAG_ALPHAGEN_VERTEX

◆ MATERIALFLAG_ALPHATEST

◆ MATERIALFLAG_BLENDED

◆ MATERIALFLAG_CAMERA

◆ MATERIALFLAG_CUSTOMBLEND

◆ MATERIALFLAG_CUSTOMSURFACE

#define MATERIALFLAG_CUSTOMSURFACE   0x00800000

Definition at line 123 of file model_brush.h.

Referenced by R_DrawCustomSurface(), and R_GetCurrentTexture().

◆ MATERIALFLAG_FULLBRIGHT

◆ MATERIALFLAG_LIGHTBOTHSIDES

#define MATERIALFLAG_LIGHTBOTHSIDES   0x00000400

Definition at line 98 of file model_brush.h.

Referenced by Mod_Q1BSP_LoadTextures().

◆ MATERIALFLAG_LIGHTGRID

#define MATERIALFLAG_LIGHTGRID   0x40000000

Definition at line 137 of file model_brush.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ MATERIALFLAG_MESHCOLLISIONS

#define MATERIALFLAG_MESHCOLLISIONS   0x00000001

Definition at line 77 of file model_brush.h.

Referenced by Mod_LoadTextureFromQ3Shader(), and Mod_MakeCollisionBIH().

◆ MATERIALFLAG_MODELLIGHT

#define MATERIALFLAG_MODELLIGHT   0x00200000

Definition at line 121 of file model_brush.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ MATERIALFLAG_NOCULLFACE

◆ MATERIALFLAG_NODEPTHTEST

◆ MATERIALFLAG_NODRAW

#define MATERIALFLAG_NODRAW   0x00000200

◆ MATERIALFLAG_NORTLIGHT

#define MATERIALFLAG_NORTLIGHT   0x04000000

◆ MATERIALFLAG_NOSHADOW

◆ MATERIALFLAG_OCCLUDE

#define MATERIALFLAG_OCCLUDE   0x10000000

Definition at line 133 of file model_brush.h.

Referenced by R_DrawCorona(), and R_SetupShader_Surface().

◆ MATERIALFLAG_REFLECTION

◆ MATERIALFLAG_REFRACTION

◆ MATERIALFLAG_SHORTDEPTHRANGE

#define MATERIALFLAG_SHORTDEPTHRANGE   0x00020000

◆ MATERIALFLAG_SKY

◆ MATERIALFLAG_TRANSDEPTH

#define MATERIALFLAG_TRANSDEPTH   0x01000000

Definition at line 125 of file model_brush.h.

Referenced by R_DrawSurface_TransparentCallback(), and R_GetCurrentTexture().

◆ MATERIALFLAG_VERTEXCOLOR

◆ MATERIALFLAG_VERTEXTEXTUREBLEND

#define MATERIALFLAG_VERTEXTEXTUREBLEND   0x00008000

Definition at line 109 of file model_brush.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ MATERIALFLAG_WALL

◆ MATERIALFLAG_WATERALPHA

#define MATERIALFLAG_WATERALPHA   0x00000010

◆ MATERIALFLAG_WATERSCROLL

#define MATERIALFLAG_WATERSCROLL   0x00000100

◆ MATERIALFLAG_WATERSHADER

◆ MATERIALFLAGMASK_DEPTHSORTED

#define MATERIALFLAGMASK_DEPTHSORTED   (MATERIALFLAG_BLENDED | MATERIALFLAG_NODEPTHTEST)

◆ MATERIALFLAGMASK_TRANSLUCENT

◆ SETPVSBIT

#define SETPVSBIT ( pvs,
b )
Value:
(void) ((b) >= 0 ? (unsigned char) ((pvs)[(b) >> 3] |= (1 << ((b) & 7))) : (unsigned char) false)

Definition at line 362 of file model_brush.h.

Referenced by EntityFrame5_WriteFrame(), Portal_RecursiveFlow(), R_Q1BSP_CallRecursiveGetLightInfo(), R_Q1BSP_RecursiveGetLightInfo_BIH(), and R_Q1BSP_RecursiveGetLightInfo_BSP().

◆ SHADERSTAGE_COUNT

#define SHADERSTAGE_COUNT   2

Definition at line 72 of file model_brush.h.

◆ SHADERSTAGE_NORMAL

#define SHADERSTAGE_NORMAL   1

Definition at line 71 of file model_brush.h.

◆ SHADERSTAGE_SKY

#define SHADERSTAGE_SKY   0

Definition at line 70 of file model_brush.h.

◆ SIDE_BACK

#define SIDE_BACK   1

Definition at line 48 of file model_brush.h.

◆ SIDE_FRONT

#define SIDE_FRONT   0

Definition at line 47 of file model_brush.h.

◆ SIDE_ON

#define SIDE_ON   2

Definition at line 49 of file model_brush.h.