struct efrag_s *efrag; // linked list of efrags
int frame;
float syncbase; // for client-side animations
-// byte *colormap;
int colormap;
int effects; // light, particals, etc
int skinnum; // for Alias models
//
// refresh
//
-extern int reinit_surfcache;
extern refdef_t r_refdef;
// LordHavoc: generic image loader
byte* loadimagepixels (char* filename, qboolean complain, int matchwidth, int matchheight);
-int loadtextureimage (int texnum, char* filename, qboolean complain, int matchwidth, int matchheight);
+int loadtextureimage (char* filename, int matchwidth, int matchheight, qboolean complain, qboolean mipmap);
void R_Init (void);
void R_InitTextures (void);
void R_RunParticleEffect (vec3_t org, vec3_t dir, int color, int count);
void R_RocketTrail (vec3_t start, vec3_t end, int type, entity_t *ent);
void R_RocketTrail2 (vec3_t start, vec3_t end, int type, entity_t *ent);
-void R_SparkShower (vec3_t org, vec3_t dir, int count, int type);
+void R_SparkShower (vec3_t org, vec3_t dir, int count);
+void R_BloodPuff (vec3_t org);
void R_EntityParticles (entity_t *ent);
void R_BlobExplosion (vec3_t org);
void R_TeleportSplash (vec3_t org);
void R_PushDlights (void);
-
-
-//
-// surface cache related
-//
-extern int reinit_surfcache; // if 1, surface cache is currently empty and
-extern qboolean r_cache_thrash; // set if thrashing the surface cache
-
-int D_SurfaceCacheForRes (int width, int height);
-void D_FlushCaches (void);
-void D_DeleteSurfaceCache (void);
-void D_InitCaches (void *buffer, int size);
-void R_SetVrect (vrect_t *pvrect, vrect_t *pvrectin, int lineadj);
-