Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

ui_public.h

Go to the documentation of this file.
00001 /*
00002 ===========================================================================
00003 Copyright (C) 1999-2005 Id Software, Inc.
00004 
00005 This file is part of Quake III Arena source code.
00006 
00007 Quake III Arena source code is free software; you can redistribute it
00008 and/or modify it under the terms of the GNU General Public License as
00009 published by the Free Software Foundation; either version 2 of the License,
00010 or (at your option) any later version.
00011 
00012 Quake III Arena source code is distributed in the hope that it will be
00013 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Foobar; if not, write to the Free Software
00019 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00020 ===========================================================================
00021 */
00022 //
00023 #ifndef __UI_PUBLIC_H__
00024 #define __UI_PUBLIC_H__
00025 
00026 #define UI_API_VERSION  6
00027 
00028 typedef struct {
00029     connstate_t     connState;
00030     int             connectPacketCount;
00031     int             clientNum;
00032     char            servername[MAX_STRING_CHARS];
00033     char            updateInfoString[MAX_STRING_CHARS];
00034     char            messageString[MAX_STRING_CHARS];
00035 } uiClientState_t;
00036 
00037 typedef enum {
00038     UI_ERROR,
00039     UI_PRINT,
00040     UI_MILLISECONDS,
00041     UI_CVAR_SET,
00042     UI_CVAR_VARIABLEVALUE,
00043     UI_CVAR_VARIABLESTRINGBUFFER,
00044     UI_CVAR_SETVALUE,
00045     UI_CVAR_RESET,
00046     UI_CVAR_CREATE,
00047     UI_CVAR_INFOSTRINGBUFFER,
00048     UI_ARGC,
00049     UI_ARGV,
00050     UI_CMD_EXECUTETEXT,
00051     UI_FS_FOPENFILE,
00052     UI_FS_READ,
00053     UI_FS_WRITE,
00054     UI_FS_FCLOSEFILE,
00055     UI_FS_GETFILELIST,
00056     UI_R_REGISTERMODEL,
00057     UI_R_REGISTERSKIN,
00058     UI_R_REGISTERSHADERNOMIP,
00059     UI_R_CLEARSCENE,
00060     UI_R_ADDREFENTITYTOSCENE,
00061     UI_R_ADDPOLYTOSCENE,
00062     UI_R_ADDLIGHTTOSCENE,
00063     UI_R_RENDERSCENE,
00064     UI_R_SETCOLOR,
00065     UI_R_DRAWSTRETCHPIC,
00066     UI_UPDATESCREEN,
00067     UI_CM_LERPTAG,
00068     UI_CM_LOADMODEL,
00069     UI_S_REGISTERSOUND,
00070     UI_S_STARTLOCALSOUND,
00071     UI_KEY_KEYNUMTOSTRINGBUF,
00072     UI_KEY_GETBINDINGBUF,
00073     UI_KEY_SETBINDING,
00074     UI_KEY_ISDOWN,
00075     UI_KEY_GETOVERSTRIKEMODE,
00076     UI_KEY_SETOVERSTRIKEMODE,
00077     UI_KEY_CLEARSTATES,
00078     UI_KEY_GETCATCHER,
00079     UI_KEY_SETCATCHER,
00080     UI_GETCLIPBOARDDATA,
00081     UI_GETGLCONFIG,
00082     UI_GETCLIENTSTATE,
00083     UI_GETCONFIGSTRING,
00084     UI_LAN_GETPINGQUEUECOUNT,
00085     UI_LAN_CLEARPING,
00086     UI_LAN_GETPING,
00087     UI_LAN_GETPINGINFO,
00088     UI_CVAR_REGISTER,
00089     UI_CVAR_UPDATE,
00090     UI_MEMORY_REMAINING,
00091     UI_GET_CDKEY,
00092     UI_SET_CDKEY,
00093     UI_R_REGISTERFONT,
00094     UI_R_MODELBOUNDS,
00095     UI_PC_ADD_GLOBAL_DEFINE,
00096     UI_PC_LOAD_SOURCE,
00097     UI_PC_FREE_SOURCE,
00098     UI_PC_READ_TOKEN,
00099     UI_PC_SOURCE_FILE_AND_LINE,
00100     UI_S_STOPBACKGROUNDTRACK,
00101     UI_S_STARTBACKGROUNDTRACK,
00102     UI_REAL_TIME,
00103     UI_LAN_GETSERVERCOUNT,
00104     UI_LAN_GETSERVERADDRESSSTRING,
00105     UI_LAN_GETSERVERINFO,
00106     UI_LAN_MARKSERVERVISIBLE,
00107     UI_LAN_UPDATEVISIBLEPINGS,
00108     UI_LAN_RESETPINGS,
00109     UI_LAN_LOADCACHEDSERVERS,
00110     UI_LAN_SAVECACHEDSERVERS,
00111     UI_LAN_ADDSERVER,
00112     UI_LAN_REMOVESERVER,
00113     UI_CIN_PLAYCINEMATIC,
00114     UI_CIN_STOPCINEMATIC,
00115     UI_CIN_RUNCINEMATIC,
00116     UI_CIN_DRAWCINEMATIC,
00117     UI_CIN_SETEXTENTS,
00118     UI_R_REMAP_SHADER,
00119     UI_VERIFY_CDKEY,
00120     UI_LAN_SERVERSTATUS,
00121     UI_LAN_GETSERVERPING,
00122     UI_LAN_SERVERISVISIBLE,
00123     UI_LAN_COMPARESERVERS,
00124     // 1.32
00125     UI_FS_SEEK,
00126     UI_SET_PBCLSTATUS,
00127 
00128     UI_MEMSET = 100,
00129     UI_MEMCPY,
00130     UI_STRNCPY,
00131     UI_SIN,
00132     UI_COS,
00133     UI_ATAN2,
00134     UI_SQRT,
00135     UI_FLOOR,
00136     UI_CEIL
00137 } uiImport_t;
00138 
00139 typedef enum {
00140     UIMENU_NONE,
00141     UIMENU_MAIN,
00142     UIMENU_INGAME,
00143     UIMENU_NEED_CD,
00144     UIMENU_BAD_CD_KEY,
00145     UIMENU_TEAM,
00146     UIMENU_POSTGAME
00147 } uiMenuCommand_t;
00148 
00149 #define SORT_HOST           0
00150 #define SORT_MAP            1
00151 #define SORT_CLIENTS        2
00152 #define SORT_GAME           3
00153 #define SORT_PING           4
00154 #define SORT_PUNKBUSTER     5
00155 
00156 typedef enum {
00157     UI_GETAPIVERSION = 0,   // system reserved
00158 
00159     UI_INIT,
00160 //  void    UI_Init( void );
00161 
00162     UI_SHUTDOWN,
00163 //  void    UI_Shutdown( void );
00164 
00165     UI_KEY_EVENT,
00166 //  void    UI_KeyEvent( int key );
00167 
00168     UI_MOUSE_EVENT,
00169 //  void    UI_MouseEvent( int dx, int dy );
00170 
00171     UI_REFRESH,
00172 //  void    UI_Refresh( int time );
00173 
00174     UI_IS_FULLSCREEN,
00175 //  qboolean UI_IsFullscreen( void );
00176 
00177     UI_SET_ACTIVE_MENU,
00178 //  void    UI_SetActiveMenu( uiMenuCommand_t menu );
00179 
00180     UI_CONSOLE_COMMAND,
00181 //  qboolean UI_ConsoleCommand( int realTime );
00182 
00183     UI_DRAW_CONNECT_SCREEN,
00184 //  void    UI_DrawConnectScreen( qboolean overlay );
00185     UI_HASUNIQUECDKEY
00186 // if !overlay, the background will be drawn, otherwise it will be
00187 // overlayed over whatever the cgame has drawn.
00188 // a GetClientState syscall will be made to get the current strings
00189 } uiExport_t;
00190 
00191 #endif

Generated on Thu Aug 25 12:38:01 2005 for Quake III Arena by  doxygen 1.3.9.1