X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=render.h;h=ab437b952a968b8558ecea4ab8df845d32af5ed4;hb=14b5a1213af9d37bf205793411ecdfb31135539f;hp=195c0cac93d194cfb0bab25ed295d56bccf790a6;hpb=dbce962f09403fd5888d0bd858ceefc90bc3ea2b;p=xonotic%2Fdarkplaces.git diff --git a/render.h b/render.h index 195c0cac..ab437b95 100644 --- a/render.h +++ b/render.h @@ -21,6 +21,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef RENDER_H #define RENDER_H +extern matrix4x4_t r_identitymatrix; + // 1.0f / N table extern float ixtable[4096]; @@ -110,10 +112,6 @@ void R_InitSky (qbyte *src, int bytesperpixel); // called at level load void R_NewMap (void); void R_DrawWorld(entity_render_t *ent); -void R_SurfMarkLights (entity_render_t *ent); -void R_PrepareSurfaces(entity_render_t *ent); -void R_DrawSurfaces(entity_render_t *ent, int type); -void R_DrawPortals(entity_render_t *ent); void R_DrawParticles(void); void R_DrawExplosions(void); void R_DrawBrushModelSky (entity_render_t *ent); @@ -130,9 +128,8 @@ void R_DrawSpriteModel (entity_render_t *ent); //#define PARANOID 1 -// LordHavoc: was a major time waster -#define R_CullBox(mins,maxs) (frustum[0].BoxOnPlaneSideFunc(mins, maxs, &frustum[0]) == 2 || frustum[1].BoxOnPlaneSideFunc(mins, maxs, &frustum[1]) == 2 || frustum[2].BoxOnPlaneSideFunc(mins, maxs, &frustum[2]) == 2 || frustum[3].BoxOnPlaneSideFunc(mins, maxs, &frustum[3]) == 2) -#define R_NotCulledBox(mins,maxs) (frustum[0].BoxOnPlaneSideFunc(mins, maxs, &frustum[0]) != 2 && frustum[1].BoxOnPlaneSideFunc(mins, maxs, &frustum[1]) != 2 && frustum[2].BoxOnPlaneSideFunc(mins, maxs, &frustum[2]) != 2 && frustum[3].BoxOnPlaneSideFunc(mins, maxs, &frustum[3]) != 2) +int R_CullBox(const vec3_t emins, const vec3_t emaxs); +int R_NotCulledBox(const vec3_t emins, const vec3_t emaxs); extern qboolean fogenabled; extern vec3_t fogcolor;