doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sys_local.h
Go to the documentation of this file.
1 /*
2 ===========================================================================
3 
4 Doom 3 GPL Source Code
5 Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
6 
7 This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).
8 
9 Doom 3 Source Code is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13 
14 Doom 3 Source Code is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with Doom 3 Source Code. If not, see <http://www.gnu.org/licenses/>.
21 
22 In addition, the Doom 3 Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 Source Code. If not, please request a copy in writing from id Software at the address below.
23 
24 If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
25 
26 ===========================================================================
27 */
28 
29 #ifndef __SYS_LOCAL__
30 #define __SYS_LOCAL__
31 
32 /*
33 ==============================================================
34 
35  idSysLocal
36 
37 ==============================================================
38 */
39 
40 class idSysLocal : public idSys {
41 public:
42  virtual void DebugPrintf( const char *fmt, ... )id_attribute((format(printf,2,3)));
43  virtual void DebugVPrintf( const char *fmt, va_list arg );
44 
45  virtual double GetClockTicks( void );
46  virtual double ClockTicksPerSecond( void );
47  virtual cpuid_t GetProcessorId( void );
48  virtual const char * GetProcessorString( void );
49  virtual const char * FPU_GetState( void );
50  virtual bool FPU_StackIsEmpty( void );
51  virtual void FPU_SetFTZ( bool enable );
52  virtual void FPU_SetDAZ( bool enable );
53 
54  virtual void FPU_EnableExceptions( int exceptions );
55 
56  virtual void GetCallStack( address_t *callStack, const int callStackSize );
57  virtual const char * GetCallStackStr( const address_t *callStack, const int callStackSize );
58  virtual const char * GetCallStackCurStr( int depth );
59  virtual void ShutdownSymbols( void );
60 
61  virtual bool LockMemory( void *ptr, int bytes );
62  virtual bool UnlockMemory( void *ptr, int bytes );
63 
64  virtual int DLL_Load( const char *dllName );
65  virtual void * DLL_GetProcAddress( int dllHandle, const char *procName );
66  virtual void DLL_Unload( int dllHandle );
67  virtual void DLL_GetFileName( const char *baseName, char *dllName, int maxLength );
68 
69  virtual sysEvent_t GenerateMouseButtonEvent( int button, bool down );
70  virtual sysEvent_t GenerateMouseMoveEvent( int deltax, int deltay );
71 
72  virtual void OpenURL( const char *url, bool quit );
73  virtual void StartProcess( const char *exeName, bool quit );
74 };
75 
76 #endif /* !__SYS_LOCAL__ */
virtual double GetClockTicks(void)
Definition: sys_local.cpp:55
virtual const char * GetProcessorString(void)
Definition: sys_local.cpp:67
virtual const char * GetCallStackCurStr(int depth)
Definition: sys_local.cpp:103
virtual void DLL_Unload(int dllHandle)
Definition: sys_local.cpp:119
virtual sysEvent_t GenerateMouseButtonEvent(int button, bool down)
Definition: sys_local.cpp:135
GLenum GLsizei GLenum format
Definition: glext.h:2846
virtual double ClockTicksPerSecond(void)
Definition: sys_local.cpp:59
virtual void * DLL_GetProcAddress(int dllHandle, const char *procName)
Definition: sys_local.cpp:115
GLint GLint GLsizei GLsizei GLsizei depth
Definition: glext.h:2878
virtual cpuid_t GetProcessorId(void)
Definition: sys_local.cpp:63
virtual void FPU_SetDAZ(bool enable)
Definition: sys_local.cpp:83
virtual const char * FPU_GetState(void)
Definition: sys_local.cpp:71
virtual bool LockMemory(void *ptr, int bytes)
Definition: sys_local.cpp:87
virtual void ShutdownSymbols(void)
Definition: sys_local.cpp:107
cpuid_t
Definition: sys_public.h:142
virtual bool UnlockMemory(void *ptr, int bytes)
Definition: sys_local.cpp:91
virtual const char * GetCallStackStr(const address_t *callStack, const int callStackSize)
Definition: sys_local.cpp:99
virtual void FPU_SetFTZ(bool enable)
Definition: sys_local.cpp:79
virtual void OpenURL(const char *url, bool quit)
Definition: main.cpp:421
virtual bool FPU_StackIsEmpty(void)
Definition: sys_local.cpp:75
#define id_attribute(x)
Definition: sys_public.h:139
virtual sysEvent_t GenerateMouseMoveEvent(int deltax, int deltay)
Definition: sys_local.cpp:145
virtual int DLL_Load(const char *dllName)
Definition: sys_local.cpp:111
virtual void StartProcess(const char *exeName, bool quit)
Definition: posix_main.cpp:132
GLsizei maxLength
Definition: glext.h:3627
virtual void FPU_EnableExceptions(int exceptions)
Definition: sys_local.cpp:155
virtual void virtual void DebugVPrintf(const char *fmt, va_list arg)
Definition: sys_local.cpp:51
unsigned long address_t
Definition: sys_public.h:234
virtual void DebugPrintf(const char *fmt,...) id_attribute((format(printf
Definition: sys_local.cpp:43
virtual void GetCallStack(address_t *callStack, const int callStackSize)
Definition: sys_local.cpp:95
virtual void DLL_GetFileName(const char *baseName, char *dllName, int maxLength)
Definition: sys_local.cpp:123