doom3-gpl
Doom 3 GPL source release
|
#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 |
#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 |
Definition at line 55 of file DOOMController.mm.
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.
Definition at line 845 of file DOOMController.mm.
Definition at line 837 of file DOOMController.mm.
Definition at line 760 of file DOOMController.mm.
Definition at line 770 of file DOOMController.mm.
Definition at line 986 of file DOOMController.mm.
double Sys_ClockTicksPerSecond | ( | void | ) |
Definition at line 656 of file DOOMController.mm.
Definition at line 443 of file DOOMController.mm.
Definition at line 429 of file DOOMController.mm.
Definition at line 418 of file DOOMController.mm.
Definition at line 604 of file DOOMController.mm.
Definition at line 524 of file DOOMController.mm.
double Sys_GetClockTicks | ( | void | ) |
Definition at line 645 of file DOOMController.mm.
Definition at line 469 of file DOOMController.mm.
Definition at line 484 of file DOOMController.mm.
Definition at line 719 of file DOOMController.mm.
Definition at line 735 of file DOOMController.mm.
Definition at line 458 of file DOOMController.mm.
bool key_overstrikeMode |
Definition at line 195 of file KeyInput.cpp.