]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
client: Add view.h. Move view prototypes to it.
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 29 Sep 2020 19:19:03 +0000 (19:19 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 29 Sep 2020 19:19:03 +0000 (19:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12966 d7cf8633-e32d-0410-b094-e92efae38249

client.h
darkplaces-sdl2-vs2017.vcxproj
darkplaces-sdl2-vs2019.vcxproj
view.h [new file with mode: 0644]

index fef53d4b89adfb8613c13449a087c6c6f7436b0b..8f361356f18d3492773955592b2887c4f3a6f01c 100644 (file)
--- a/client.h
+++ b/client.h
@@ -24,6 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 #include "matrixlib.h"
 #include "snd_main.h"
+#include "view.h"
 
 // NOTE: r_stat_name[] must match this indexing
 typedef enum r_stat_e
@@ -1638,16 +1639,6 @@ void QW_CL_StartUpload(unsigned char *data, int size);
 extern cvar_t qport;
 void CL_KeepaliveMessage(qbool readmessages); // call this during loading of large content
 
-//
-// view
-//
-void V_StartPitchDrift_f(cmd_state_t *cmd);
-void V_StopPitchDrift (void);
-
-void V_Init (void);
-void V_UpdateBlends (void);
-void V_ParseDamage (void);
-
 //
 // cl_part
 //
@@ -1801,14 +1792,6 @@ void CL_RelinkLightFlashes(void);
 void CL_Beam_AddPolygons(const beam_t *b);
 void CL_UpdateMoveVars(void);
 void SCR_CaptureVideo_SoundFrame(const portable_sampleframe_t *paintbuffer, size_t length);
-void V_DriftPitch(void);
-void V_FadeViewFlashs(void);
-void V_CalcViewBlend(void);
-void V_CalcRefdefUsing (const matrix4x4_t *entrendermatrix, const vec3_t clviewangles, qbool teleported, qbool clonground, qbool clcmdjump, float clstatsviewheight, qbool cldead, const vec3_t clvelocity);
-void V_CalcRefdef(void);
-void V_MakeViewIsometric(void);
-void V_MakeViewIsometric(void);
-void V_StartPitchDrift(void);
 void CL_Locs_Reload_f(cmd_state_t *cmd);
 
 #endif
index 925a88fc42f575228dbee5b6d0eb45dc27757ccf..b29dd39909794e19bd4d55a35260dbe471900fc1 100644 (file)
     <ClInclude Include="timing.h" />\r
     <ClInclude Include="utf8lib.h" />\r
     <ClInclude Include="vid.h" />\r
+    <ClInclude Include="view.h" />\r
     <ClInclude Include="wad.h" />\r
     <ClInclude Include="world.h" />\r
     <ClInclude Include="zone.h" />\r
index c39d16af566c3454b5130a5ef3f0a3350e3a6fc7..88960827edd12b1502dc6ef82fb2573e23e26a93 100644 (file)
     <ClInclude Include="timing.h" />\r
     <ClInclude Include="utf8lib.h" />\r
     <ClInclude Include="vid.h" />\r
+    <ClInclude Include="view.h" />\r
     <ClInclude Include="wad.h" />\r
     <ClInclude Include="world.h" />\r
     <ClInclude Include="zone.h" />\r
diff --git a/view.h b/view.h
new file mode 100644 (file)
index 0000000..89b7745
--- /dev/null
+++ b/view.h
@@ -0,0 +1,21 @@
+#ifndef VIEW_H
+#define VIEW_H
+
+#include "qtypes.h"
+#include "matrixlib.h"
+#include "cmd.h"
+
+void V_Init (void);
+void V_UpdateBlends (void);
+void V_ParseDamage (void);
+void V_DriftPitch(void);
+void V_FadeViewFlashs(void);
+void V_CalcViewBlend(void);
+void V_CalcRefdefUsing (const matrix4x4_t *entrendermatrix, const vec3_t clviewangles, qbool teleported, qbool clonground, qbool clcmdjump, float clstatsviewheight, qbool cldead, const vec3_t clvelocity);
+void V_CalcRefdef(void);
+void V_MakeViewIsometric(void);
+void V_StartPitchDrift(void);
+void V_StopPitchDrift (void);
+void V_StartPitchDrift_f(cmd_state_t *cmd);
+
+#endif