From 905df4ec9cc2bc6728016340ac51ab6238a50716 Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 26 Nov 2011 08:22:30 +0000 Subject: [PATCH] move VF_MAINVIEW and VF_MINFPS_QUALITY to DP's extension range (4xx) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11572 d7cf8633-e32d-0410-b094-e92efae38249 --- csprogs.h | 10 ++++++++-- dpdefs/csprogsdefs.qc | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/csprogs.h b/csprogs.h index 958cfece..1bed1f62 100644 --- a/csprogs.h +++ b/csprogs.h @@ -36,9 +36,13 @@ #define VF_CL_VIEWANGLES_Y 35 //(float) #define VF_CL_VIEWANGLES_Z 36 //(float) +// FTEQW's extension range #define VF_PERSPECTIVE 200 //(float) + +// what is this doing here? This is a DP extension introduced by Black, should be in 4xx range #define VF_CLEARSCREEN 201 //(float) +// what is this doing here? This is a DP extension introduced by VorteX, should be in 4xx range #define VF_FOG_DENSITY 202 //(float) #define VF_FOG_COLOR 203 //(vector) #define VF_FOG_COLOR_R 204 //(float) @@ -49,8 +53,10 @@ #define VF_FOG_END 209 //(float) #define VF_FOG_HEIGHT 210 //(float) #define VF_FOG_FADEDEPTH 211 //(float) -#define VF_MAINVIEW 212 //(float) -#define VF_MINFPS_QUALITY 213 //(float) + +// DP's extension range +#define VF_MAINVIEW 400 //(float) +#define VF_MINFPS_QUALITY 401 //(float) #define RF_VIEWMODEL 1 // The entity is never drawn in mirrors. In engines with realtime lighting, it casts no shadows. #define RF_EXTERNALMODEL 2 // The entity is appears in mirrors but not in the normal view. It does still cast shadows in engines with realtime lighting. diff --git a/dpdefs/csprogsdefs.qc b/dpdefs/csprogsdefs.qc index 416d3d28..c92dc191 100644 --- a/dpdefs/csprogsdefs.qc +++ b/dpdefs/csprogsdefs.qc @@ -887,7 +887,7 @@ float(string url, float id, string content_type, string delim, float buf, float //idea: divVerent //darkplaces implementation: divVerent //constant definitions: -const float VF_MAINVIEW = 212; +const float VF_MAINVIEW = 400; //use setproperty(VF_MAINVIEW, 1); before calling R_RenderView for the render //that shall become the "main" view, which is e.g. used by PRYDON_CLIENTCURSOR //this flag is set for the first scene, and not cleared by R_ClearScene @@ -898,7 +898,7 @@ const float VF_MAINVIEW = 212; //idea: divVerent //darkplaces implementation: divVerent //constant definitions: -const float VF_MINFPS_QUALITY = 213; +const float VF_MINFPS_QUALITY = 401; //use getproperty(VF_MINFPS_QUALITY); to do CSQC based LOD based on cl_minfps //1 should lead to an unmodified view -- 2.39.2