doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Enumerations | Functions | Variables
DOOMController.mm File Reference
#import "../../idlib/precompiled.h"
#import "DOOMController.h"
#import <unistd.h>
#import <pthread.h>
#import <Foundation/Foundation.h>
#import <Carbon/Carbon.h>
#import <AppKit/AppKit.h>
#import <OpenGL/gl.h>
#import "macosx_common.h"
#import "macosx_local.h"
#import "macosx_sys.h"
#import <fenv.h>
#import <sys/ucontext.h>
#import <mach/thread_status.h>

Go to the source code of this file.

Classes

struct  RegCodeInfo
 
category  DOOMController(Private)
 
union  hexdouble
 

Macros

#define MAX_KEYS   256
 
#define TEST_FPU_EXCEPTIONS
 
#define kRegKey   @"RegCode"
 
#define MAX_ARGC   1024
 
#define fegetenvd(x)   asm volatile( "mffs %0" : "=f" (x) );
 
#define fesetenvd(x)   asm volatile( "mtfsf 255,%0" : : "f" (x) );
 

Enumerations

enum  {
  FE_ENABLE_INEXACT = 0x8, FE_ENABLE_DIVBYZERO = 0x10, FE_ENABLE_UNDERFLOW = 0x20, FE_ENABLE_OVERFLOW = 0x40,
  FE_ENABLE_INVALID = 0x80, FE_ENABLE_ALL_EXCEPT = 0xF8
}
 

Functions

const char * Sys_EXEPath (void)
 
const char * Sys_DefaultSavePath (void)
 
const char * Sys_DefaultBasePath (void)
 
void Sys_Shutdown (void)
 
cpuid_t Sys_GetProcessorId (void)
 
const char * Sys_GetProcessorString (void)
 
void Sys_FPU_EnableExceptions (int exceptions)
 
void Sys_FPE_handler (int signum, siginfo_t *info, void *context)
 
double Sys_GetClockTicks (void)
 
double Sys_ClockTicksPerSecond (void)
 
int Sys_GetSystemRam (void)
 
int Sys_GetVideoRam (void)
 
bool OSX_GetCPUIdentification (int &cpuId, bool &oldArchitecture)
 
void OSX_GetVideoCard (int &outVendorId, int &outDeviceId)
 
int main (int argc, const char *argv[])
 
bool FormatRegCode (const char *inRegCode, char *outRegCode)
 
void Sys_AsyncThread (void)
 

Variables

bool key_overstrikeMode
 

Macro Definition Documentation

#define fegetenvd (   x)    asm volatile( "mffs %0" : "=f" (x) );

Definition at line 503 of file DOOMController.mm.

#define fesetenvd (   x)    asm volatile( "mtfsf 255,%0" : : "f" (x) );

Definition at line 504 of file DOOMController.mm.

#define kRegKey   @"RegCode"

Definition at line 64 of file DOOMController.mm.

#define MAX_ARGC   1024

Definition at line 100 of file DOOMController.mm.

#define MAX_KEYS   256

Definition at line 49 of file DOOMController.mm.

#define TEST_FPU_EXCEPTIONS
Value:
/* FPU_EXCEPTION_NUMERIC_OVERFLOW | */ \
/* FPU_EXCEPTION_NUMERIC_UNDERFLOW | */ \
/* FPU_EXCEPTION_INEXACT_RESULT | */ \
0

Definition at line 55 of file DOOMController.mm.

Enumeration Type Documentation

anonymous enum
Enumerator
FE_ENABLE_INEXACT 
FE_ENABLE_DIVBYZERO 
FE_ENABLE_UNDERFLOW 
FE_ENABLE_OVERFLOW 
FE_ENABLE_INVALID 
FE_ENABLE_ALL_EXCEPT 

Definition at line 505 of file DOOMController.mm.

Function Documentation

bool FormatRegCode ( const char *  inRegCode,
char *  outRegCode 
)

Definition at line 845 of file DOOMController.mm.

int main ( int  argc,
const char *  argv[] 
)

Definition at line 837 of file DOOMController.mm.

bool OSX_GetCPUIdentification ( int cpuId,
bool oldArchitecture 
)

Definition at line 760 of file DOOMController.mm.

void OSX_GetVideoCard ( int outVendorId,
int outDeviceId 
)

Definition at line 770 of file DOOMController.mm.

void Sys_AsyncThread ( void  )

Definition at line 986 of file DOOMController.mm.

double Sys_ClockTicksPerSecond ( void  )

Definition at line 656 of file DOOMController.mm.

const char* Sys_DefaultBasePath ( void  )

Definition at line 443 of file DOOMController.mm.

const char* Sys_DefaultSavePath ( void  )

Definition at line 429 of file DOOMController.mm.

const char* Sys_EXEPath ( void  )

Definition at line 418 of file DOOMController.mm.

void Sys_FPE_handler ( int  signum,
siginfo_t *  info,
void context 
)

Definition at line 604 of file DOOMController.mm.

void Sys_FPU_EnableExceptions ( int  exceptions)

Definition at line 524 of file DOOMController.mm.

double Sys_GetClockTicks ( void  )

Definition at line 645 of file DOOMController.mm.

cpuid_t Sys_GetProcessorId ( void  )

Definition at line 469 of file DOOMController.mm.

const char* Sys_GetProcessorString ( void  )

Definition at line 484 of file DOOMController.mm.

int Sys_GetSystemRam ( void  )

Definition at line 719 of file DOOMController.mm.

int Sys_GetVideoRam ( void  )

Definition at line 735 of file DOOMController.mm.

void Sys_Shutdown ( void  )

Definition at line 458 of file DOOMController.mm.

Variable Documentation

bool key_overstrikeMode

Definition at line 195 of file KeyInput.cpp.