int c_brush_polys, c_alias_polys, c_light_polys, c_faces, c_nodes, c_leafs, c_models, c_bmodels, c_sprites, c_particles, c_dlights;
-qboolean envmap; // true during envmap command capture
+qboolean envmap; // true during envmap command capture
// LordHavoc: moved all code related to particles into r_part.c
//int particletexture; // little dot for particles
unsigned short d_lightstylevalue[256]; // 8.8 fraction of base light value
-float ixtable[4096];
-
void R_MarkLeaves (void);
//cvar_t r_norefresh = {0, "r_norefresh","0"};
cvar_t gl_fogend = {0, "gl_fogend","0"};
cvar_t glfog = {0, "glfog", "0"};
+cvar_t r_ser = {CVAR_SAVE, "r_ser", "1"};
+
/*
int R_VisibleCullBox (vec3_t mins, vec3_t maxs)
{
void GL_Main_Init(void)
{
- int a;
FOG_registercvars();
- // LordHavoc: setup 1.0f / N table for quick recipricols of integers
- ixtable[0] = 0;
- for (a = 1;a < 4096;a++)
- ixtable[a] = 1.0f / a;
Cvar_RegisterVariable (&r_drawentities);
Cvar_RegisterVariable (&r_drawviewmodel);
Cvar_RegisterVariable (&r_speeds);
// if (gl_vendor && strstr(gl_vendor, "3Dfx"))
// gl_lightmode.value = 0;
Cvar_RegisterVariable (&r_fullbright);
+ Cvar_RegisterVariable (&r_ser);
R_RegisterModule("GL_Main", gl_main_start, gl_main_shutdown, gl_main_newmap);
}
===============
*/
extern char *ENGINE_EXTENSIONS;
+extern void VID_CheckCombine(void);
void GL_Init (void)
{
gl_vendor = glGetString (GL_VENDOR);
VID_CheckMultitexture();
VID_CheckCVA();
+ VID_CheckCombine();
// LordHavoc: report supported extensions
Con_Printf ("\nengine extensions: %s\n", ENGINE_EXTENSIONS);
{
VectorAdd(currententity->render.origin, currententity->render.model->mins, mins);
VectorAdd(currententity->render.origin, currententity->render.model->maxs, maxs);
- R_Clip_AddBox(mins, maxs, R_Entity_Callback, currententity, NULL);
+ if (r_ser.value)
+ R_Clip_AddBox(mins, maxs, R_Entity_Callback, currententity, NULL);
+ else if (R_NotCulledBox(mins, maxs))
+ currententity->render.visframe = r_framecount;
}
else if (currententity->render.model->type == mod_sprite)
{
R_LerpUpdate(currententity);
- R_LerpAnimation(currententity->render.model, currententity->render.frame1, currententity->render.frame2, currententity->render.frame1start, currententity->render.frame2start, currententity->render.framelerp, blend);
- R_ClipSprite(currententity, blend);
+ if (r_ser.value)
+ {
+ R_LerpAnimation(currententity->render.model, currententity->render.frame1, currententity->render.frame2, currententity->render.frame1start, currententity->render.frame2start, currententity->render.framelerp, blend);
+ R_ClipSprite(currententity, blend);
+ }
+ else
+ {
+ VectorAdd(currententity->render.origin, currententity->render.model->mins, mins);
+ VectorAdd(currententity->render.origin, currententity->render.model->maxs, maxs);
+ if (R_NotCulledBox(mins, maxs))
+ currententity->render.visframe = r_framecount;
+ }
}
}
}
R_MoveParticles ();
R_MoveExplosions();
- lighthalf = gl_lightmode.value;
-
FOG_framebegin();
R_Clear();