]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - client.h
timedemo now also prints min/avg/max fps
[xonotic/darkplaces.git] / client.h
index 468c8e1727986d8e521d756e308afc699f6fcf2b..b8d6c2790c20ea26ed08aa93a0de09fdac1ccb8a 100644 (file)
--- a/client.h
+++ b/client.h
@@ -75,15 +75,25 @@ typedef struct
        // location
        vec3_t  origin;
        // stop lighting after this time
-       float   die;
+       vec_t   die;
        // color of light
        vec3_t  color;
        // brightness (not really radius anymore)
-       float   radius;
+       vec_t   radius;
        // drop this each second
-       float   decay;
+       vec_t   decay;
        // the entity that owns this light (can be NULL)
        struct entity_render_s *ent;
+       // orientation/scaling/location
+       matrix4x4_t matrix;
+       // cubemap number to use on this light
+       int cubemapnum;
+       // light style which controls intensity of this light
+       int style;
+       // cast shadows
+       int shadow;
+       // corona intensity
+       vec_t corona;
 }
 dlight_t;
 
@@ -282,6 +292,10 @@ typedef struct
        int td_startframe;
        // realtime at second frame of timedemo (LordHavoc: changed to double)
        double td_starttime;
+       // LordHavoc: for measuring maxfps
+       double td_minframetime;
+       // LordHavoc: for measuring minfps
+       double td_maxframetime;
        // LordHavoc: pausedemo
        qboolean demopaused;
 
@@ -444,6 +458,7 @@ extern mempool_t *cl_scores_mempool;
 //
 extern cvar_t cl_name;
 extern cvar_t cl_color;
+extern cvar_t cl_rate;
 extern cvar_t cl_pmodel;
 
 extern cvar_t cl_upspeed;
@@ -499,7 +514,7 @@ extern lightstyle_t *cl_lightstyle;
 
 extern client_state_t cl;
 
-extern void CL_AllocDlight (entity_render_t *ent, vec3_t org, float radius, float red, float green, float blue, float decay, float lifetime);
+extern void CL_AllocDlight (entity_render_t *ent, matrix4x4_t *matrix, float radius, float red, float green, float blue, float decay, float lifetime, int cubemapnum, int style, int shadowenable, vec_t corona);
 extern void CL_DecayLights (void);
 
 //=============================================================================