summaryrefslogtreecommitdiff
path: root/src/cl_public.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cl_public.h')
-rw-r--r--src/cl_public.h98
1 files changed, 49 insertions, 49 deletions
diff --git a/src/cl_public.h b/src/cl_public.h
index 223771c..77cee04 100644
--- a/src/cl_public.h
+++ b/src/cl_public.h
@@ -8,7 +8,7 @@ of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
@@ -47,57 +47,57 @@ typedef enum {
ACT_ACTIVATED
} active_t;
-qboolean CL_ProcessEvents( void );
+qboolean CL_ProcessEvents(void);
#if USE_ICMP
-void CL_ErrorEvent( void );
+void CL_ErrorEvent(void);
#endif
-void CL_Init (void);
-void CL_Disconnect( error_type_t type );
-void CL_Shutdown (void);
-unsigned CL_Frame (unsigned msec);
-void CL_RestartFilesystem( qboolean total );
-void CL_Activate( active_t active );
-void CL_UpdateUserinfo( cvar_t *var, from_t from );
-qboolean CL_SendStatusRequest( char *buffer, size_t size );
-demoInfo_t *CL_GetDemoInfo( const char *path, demoInfo_t *info );
-qboolean CL_CheatsOK( void );
-
-qboolean CL_ForwardToServer( void );
+void CL_Init(void);
+void CL_Disconnect(error_type_t type);
+void CL_Shutdown(void);
+unsigned CL_Frame(unsigned msec);
+void CL_RestartFilesystem(qboolean total);
+void CL_Activate(active_t active);
+void CL_UpdateUserinfo(cvar_t *var, from_t from);
+qboolean CL_SendStatusRequest(char *buffer, size_t size);
+demoInfo_t *CL_GetDemoInfo(const char *path, demoInfo_t *info);
+qboolean CL_CheatsOK(void);
+
+qboolean CL_ForwardToServer(void);
// adds the current command line as a clc_stringcmd to the client message.
// things like godmode, noclip, etc, are commands directed to the server,
// so when they are typed in at the console, they will need to be forwarded.
-void Con_Init( void );
-void Con_SetColor( color_index_t color );
-void Con_Print( const char *text );
-void Con_Printf( const char *fmt, ... );
-void Con_Close( qboolean force );
+void Con_Init(void);
+void Con_SetColor(color_index_t color);
+void Con_Print(const char *text);
+void Con_Printf(const char *fmt, ...);
+void Con_Close(qboolean force);
// this is in the client code, but can be used for debugging from server
-void SCR_DebugGraph (float value, int color);
-void SCR_BeginLoadingPlaque (void);
-void SCR_EndLoadingPlaque( void );
-void SCR_ModeChanged( void );
-void SCR_UpdateScreen( void );
-
-#define U32_BLACK MakeColor( 0, 0, 0, 255 )
-#define U32_RED MakeColor( 255, 0, 0, 255 )
-#define U32_GREEN MakeColor( 0, 255, 0, 255 )
-#define U32_YELLOW MakeColor( 255, 255, 0, 255 )
-#define U32_BLUE MakeColor( 0, 0, 255, 255 )
-#define U32_CYAN MakeColor( 0, 255, 255, 255 )
-#define U32_MAGENTA MakeColor( 255, 0, 255, 255 )
-#define U32_WHITE MakeColor( 255, 255, 255, 255 )
+void SCR_DebugGraph(float value, int color);
+void SCR_BeginLoadingPlaque(void);
+void SCR_EndLoadingPlaque(void);
+void SCR_ModeChanged(void);
+void SCR_UpdateScreen(void);
+
+#define U32_BLACK MakeColor( 0, 0, 0, 255)
+#define U32_RED MakeColor(255, 0, 0, 255)
+#define U32_GREEN MakeColor( 0, 255, 0, 255)
+#define U32_YELLOW MakeColor(255, 255, 0, 255)
+#define U32_BLUE MakeColor( 0, 0, 255, 255)
+#define U32_CYAN MakeColor( 0, 255, 255, 255)
+#define U32_MAGENTA MakeColor(255, 0, 255, 255)
+#define U32_WHITE MakeColor(255, 255, 255, 255)
#define CHAR_WIDTH 8
#define CHAR_HEIGHT 8
#define UI_LEFT 0x00000001
#define UI_RIGHT 0x00000002
-#define UI_CENTER (UI_LEFT|UI_RIGHT)
+#define UI_CENTER (UI_LEFT | UI_RIGHT)
#define UI_BOTTOM 0x00000004
#define UI_TOP 0x00000008
-#define UI_MIDDLE (UI_BOTTOM|UI_TOP)
+#define UI_MIDDLE (UI_BOTTOM | UI_TOP)
#define UI_DROPSHADOW 0x00000010
#define UI_ALTCOLOR 0x00000020
#define UI_IGNORECOLOR 0x00000040
@@ -108,21 +108,21 @@ void SCR_UpdateScreen( void );
extern const uint32_t colorTable[8];
-qboolean SCR_ParseColor( const char *s, color_t *color );
+qboolean SCR_ParseColor(const char *s, color_t *color);
-float V_CalcFov( float fov_x, float width, float height );
+float V_CalcFov(float fov_x, float width, float height);
-void IN_Frame( void );
-void IN_Activate( void );
-void IN_MouseEvent( int x, int y );
-void IN_WarpMouse( int x, int y );
+void IN_Frame(void);
+void IN_Activate(void);
+void IN_MouseEvent(int x, int y);
+void IN_WarpMouse(int x, int y);
-void Key_Init( void );
-void Key_Event( unsigned key, qboolean down, unsigned time );
-void Key_CharEvent( int key );
-void Key_WriteBindings( qhandle_t f );
+void Key_Init(void);
+void Key_Event(unsigned key, qboolean down, unsigned time);
+void Key_CharEvent(int key);
+void Key_WriteBindings(qhandle_t f);
-char *VID_GetClipboardData( void );
-void VID_SetClipboardData( const char *data );
-void VID_FatalShutdown( void );
+char *VID_GetClipboardData(void);
+void VID_SetClipboardData(const char *data);
+void VID_FatalShutdown(void);