QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
glsl_bsp.c File Reference

Macros

#define ALLOC_CHUNK   64
 
#define CHAIN_SURF_B2F(surf, chain)
 
#define CHAIN_SURF_F2B(surf, chain)
 
#define GET_RELEASE(type, name)
 
#define NH_DEFINE
 

Functions

void glsl_R_AddTexture (texture_t *tex)
 
void glsl_R_BuildDisplayLists (model_t **models, int num_models)
 
void glsl_R_ClearElements (void)
 
void glsl_R_ClearTextures (void)
 
void glsl_R_DrawSky (void)
 
void glsl_R_DrawWaterSurfaces ()
 
void glsl_R_DrawWorld (void)
 
void glsl_R_InitBsp (void)
 
void glsl_R_InitSurfaceChains (model_t *model)
 
void glsl_R_LoadSkys (const char *sky)
 
void glsl_R_RegisterTextures (model_t **models, int num_models)
 

Macro Definition Documentation

#define ALLOC_CHUNK   64
#define CHAIN_SURF_B2F (   surf,
  chain 
)
Value:
do { \
instsurf_t *inst = (surf)->instsurf; \
if (__builtin_expect(!inst, 1)) \
(surf)->tinst = inst = get_instsurf (); \
inst->surface = (surf); \
inst->tex_chain = (chain); \
(chain) = inst; \
} while (0)
struct instsurf_s instsurf_t
Instanced surface data.
if(!(yy_init))
Definition: qp-lex.c:893
#define CHAIN_SURF_F2B (   surf,
  chain 
)
Value:
do { \
instsurf_t *inst = (surf)->instsurf; \
if (__builtin_expect(!inst, 1)) \
(surf)->tinst = inst = get_instsurf (); \
inst->surface = (surf); \
*(chain##_tail) = inst; \
(chain##_tail) = &inst->tex_chain; \
*(chain##_tail) = 0; \
} while (0)
struct instsurf_s instsurf_t
Instanced surface data.
if(!(yy_init))
Definition: qp-lex.c:893
#define GET_RELEASE (   type,
  name 
)
Value:
static inline type * \
get_##name (void) \
{ \
type *ele; \
if (!free_##name##s) { \
int i; \
free_##name##s = calloc (ALLOC_CHUNK, sizeof (type)); \
for (i = 0; i < ALLOC_CHUNK - 1; i++) \
free_##name##s[i]._next = &free_##name##s[i + 1]; \
} \
ele = free_##name##s; \
free_##name##s = ele->_next; \
ele->_next = 0; \
*name##s_tail = ele; \
name##s_tail = &ele->_next; \
return ele; \
} \
static inline void \
release_##name##s (void) \
{ \
if (name##s) { \
*name##s_tail = free_##name##s; \
free_##name##s = name##s; \
name##s = 0; \
name##s_tail = &name##s; \
} \
}
int(PASCAL FAR *pWSAStartup)(WORD wVersionRequired
if(!(yy_init))
Definition: qp-lex.c:893
#define ALLOC_CHUNK
Definition: glsl_bsp.c:69
int type
Definition: net_wins.c:85
struct sockaddr FAR * name
Definition: net_wins.c:100
#define NH_DEFINE

Function Documentation

void glsl_R_AddTexture ( texture_t tex)
void glsl_R_BuildDisplayLists ( model_t **  models,
int  num_models 
)
void glsl_R_ClearElements ( void  )
void glsl_R_ClearTextures ( void  )
void glsl_R_DrawSky ( void  )
void glsl_R_DrawWaterSurfaces ( )
void glsl_R_DrawWorld ( void  )
void glsl_R_InitBsp ( void  )
void glsl_R_InitSurfaceChains ( model_t model)
void glsl_R_LoadSkys ( const char *  sky)
void glsl_R_RegisterTextures ( model_t **  models,
int  num_models 
)

Variable Documentation

shaderparam_t colormap
shaderparam_t lightmap
shaderparam_t* mvp_matrix
shaderparam_t palette
int program
shaderparam_t* sky_matrix
shaderparam_t texture
shaderparam_t* vertex