From: cloudwalk Date: Tue, 29 Sep 2020 19:19:03 +0000 (+0000) Subject: client: Add view.h. Move view prototypes to it. X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=1057196b54325b4ee7daefc44784684966fa75b8 client: Add view.h. Move view prototypes to it. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12966 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/client.h b/client.h index fef53d4b..8f361356 100644 --- 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 diff --git a/darkplaces-sdl2-vs2017.vcxproj b/darkplaces-sdl2-vs2017.vcxproj index 925a88fc..b29dd399 100644 --- a/darkplaces-sdl2-vs2017.vcxproj +++ b/darkplaces-sdl2-vs2017.vcxproj @@ -412,6 +412,7 @@ + diff --git a/darkplaces-sdl2-vs2019.vcxproj b/darkplaces-sdl2-vs2019.vcxproj index c39d16af..88960827 100644 --- a/darkplaces-sdl2-vs2019.vcxproj +++ b/darkplaces-sdl2-vs2019.vcxproj @@ -413,6 +413,7 @@ + diff --git a/view.h b/view.h new file mode 100644 index 00000000..89b77458 --- /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