X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=render.h;h=88ccbed27e6d655f6a74b097722c60de1ceddd03;hb=34d4382446de8c079d3ceae42faec0b1bacc9b8f;hp=09dbcd44b05c0ee4495efed0342479afd71dfcaf;hpb=b2b78633cda6e09e3d54d8557a3ed6161355d70f;p=xonotic%2Fdarkplaces.git diff --git a/render.h b/render.h index 09dbcd44..88ccbed2 100644 --- a/render.h +++ b/render.h @@ -99,6 +99,7 @@ extern cvar_t r_speeds; extern cvar_t r_fullbright; extern cvar_t r_wateralpha; extern cvar_t r_dynamic; +extern cvar_t r_dlightmap; void R_Init (void); void R_RenderView (void); // must set r_refdef first @@ -108,25 +109,20 @@ void R_InitSky (qbyte *src, int bytesperpixel); // called at level load void R_NewMap (void); +void R_WorldVisibility(entity_render_t *ent); void R_DrawWorld(entity_render_t *ent); void R_DrawParticles(void); void R_DrawExplosions(void); -void R_DrawBrushModelSky (entity_render_t *ent); -void R_DrawBrushModelNormal (entity_render_t *ent); -void R_DrawZymoticModel (entity_render_t *ent); -void R_DrawQ1Q2AliasModel(entity_render_t *ent); -void R_DrawSpriteModel (entity_render_t *ent); - -// LordHavoc: vertex transform -#include "transform.h" #define gl_solid_format 3 #define gl_alpha_format 4 //#define PARANOID 1 -int R_CullBox(const vec3_t emins, const vec3_t emaxs); -int R_NotCulledBox(const vec3_t emins, const vec3_t emaxs); +int R_CullBox(const vec3_t mins, const vec3_t maxs); +int PVS_CullBox(const vec3_t mins, const vec3_t maxs); +int R_CullSphere(const vec3_t origin, vec_t radius); +int PVS_CullSphere(const vec3_t origin, vec_t radius); extern qboolean fogenabled; extern vec3_t fogcolor; @@ -154,7 +150,6 @@ extern float overbrightscale; #include "r_lerpanim.h" extern cvar_t r_render; -#include "image.h" extern cvar_t r_textureunits; extern cvar_t gl_dither; @@ -168,12 +163,13 @@ void R_TimeReport_Start(void); void R_TimeReport_End(void); // r_stain -void R_Stain (vec3_t origin, float radius, int cr1, int cg1, int cb1, int ca1, int cr2, int cg2, int cb2, int ca2); +void R_Stain (const vec3_t origin, float radius, int cr1, int cg1, int cb1, int ca1, int cr2, int cg2, int cb2, int ca2); void R_DrawWorldCrosshair(void); void R_Draw2DCrosshair(void); -void R_CalcBeamVerts (float *vert, vec3_t org1, vec3_t org2, float width); +void R_CalcBeam_Vertex3f (float *vert, const vec3_t org1, const vec3_t org2, float width); +void R_DrawSpriteMesh(const vec3_t origin, const vec3_t left, const vec3_t up, float scalex1, float scalex2, float scaley1, float scaley2); #endif