X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=render.h;h=f523fe4ac1a7b4bef1baf0b82d881de12f317da6;hp=01c58448dc3d5f0bc81879096ee040389eb459c8;hb=d3b158411b1d81181e05f750d9a7b0b2268438e2;hpb=4841c9c59315c6a2fbe389a14ded358ec5cc60f7 diff --git a/render.h b/render.h index 01c58448..f523fe4a 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 qbyte r_pvsbits[(MAX_MAP_LEAFS+7)>>3]; + extern matrix4x4_t r_identitymatrix; // 1.0f / N table @@ -66,6 +68,10 @@ extern cvar_t r_novis; // detail texture stuff extern cvar_t r_detailtextures; +extern cvar_t r_lerpsprites; +extern cvar_t r_lerpmodels; +extern cvar_t r_waterscroll; + // useful functions for rendering void R_ModulateColors(float *in, float *out, int verts, float r, float g, float b); void R_FillColors(float *out, int verts, float r, float g, float b, float a); @@ -107,8 +113,6 @@ void R_RenderView (void); // must set r_refdef first 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); @@ -120,9 +124,6 @@ void R_DrawExplosions(void); //#define PARANOID 1 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; @@ -163,12 +164,13 @@ void R_TimeReport_Start(void); void R_TimeReport_End(void); // r_stain -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_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, const vec3_t org1, const vec3_t org2, float width); +void R_CalcBeam_Vertex3f(float *vert, const vec3_t org1, const vec3_t org2, float width); +void R_DrawSprite(int blendfunc1, int blendfunc2, rtexture_t *texture, int depthdisable, const vec3_t origin, const vec3_t left, const vec3_t up, float scalex1, float scalex2, float scaley1, float scaley2, float cr, float cg, float cb, float ca); #endif