]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - render.h
cruft removal
[xonotic/darkplaces.git] / render.h
index 5f5d224ab574a18b2c32a969953b9d42d2f93c81..2347d941c9e7d9b9f40127741ab871563d2aee39 100644 (file)
--- a/render.h
+++ b/render.h
@@ -68,7 +68,6 @@ typedef struct entity_s
        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
@@ -120,7 +119,6 @@ typedef struct
 //
 // refresh
 //
-extern int             reinit_surfcache;
 
 
 extern refdef_t        r_refdef;
@@ -130,7 +128,7 @@ extern      struct texture_s        *r_notexture_mip;
 
 // 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);
@@ -152,7 +150,8 @@ void R_ParseParticleEffect (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);
@@ -162,17 +161,3 @@ void R_LavaSplash (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);
-