]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - client.h
default a few cvars accordingly for GAME_TENEBRAE mode
[xonotic/darkplaces.git] / client.h
index 578cd68443b99772f5172e0fa75b4981d864706a..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);
 
 //=============================================================================
@@ -557,7 +572,7 @@ void CL_BaseMove (usercmd_t *cmd);
 
 
 float CL_KeyState (kbutton_t *key);
-char *Key_KeynumToString (int keynum);
+const char *Key_KeynumToString (int keynum);
 
 //
 // cl_demo.c
@@ -659,7 +674,5 @@ extern mempool_t *cl_refdef_mempool;
 
 #include "cgamevm.h"
 
-void Host_PerformSpawnServerAndLoadGame(void);
-
 #endif