33#define WINDOW_SIZE_DEFAULT_WIDTH 1280
34#define WINDOW_SIZE_DEFAULT_HEIGHT 720
36#define MIN_FOV_DEG 30.0f
37#define MAX_FOV_DEG 80.0f
38#define MIN_FOV (tan((MIN_FOV_DEG / 2) * M_PI / 180.0f))
39#define MAX_FOV (tan((MAX_FOV_DEG / 2) * M_PI / 180.0f))
41#define MIN_HDR_MAXBRIGHTNESS 400.0
42#define MAX_HDR_MAXBRIGHTNESS 1000.0
44#define MIN_HDR_PAPERWHITE 80.0f
45#define MAX_HDR_PAPERWHITE 280.0f
47#define MAX_COLOR_SATURATION 2.0f
49#define MOUSEX_MAXIMUM 0.6
50#define MOUSEY_MAXIMUM 0.6
52#define MAX_CLEAR_DEPTH 10000000000.0
54#define INTERMEDIATE_CLEAR_DEPTH 100.0
59#define MOUSE_DOUBLE_CLICK_INTERVAL 0.40
60#define OOMOUSEWHEEL_EVENTS_DELAY_INTERVAL 0.05
61#define OOMOUSEWHEEL_DELTA 120
63#define SNAPSHOTS_PNG_FORMAT 1
64#define SNAPSHOTHDR_EXTENSION_EXR @".exr"
65#define SNAPSHOTHDR_EXTENSION_HDR @".hdr"
66#define SNAPSHOTHDR_EXTENSION_DEFAULT SNAPSHOTHDR_EXTENSION_EXR
229 BOOL atDesktopResolution;
230 unsigned keyboardMap;
232 MONITORINFOEX monitorInfo;
234 float _hdrMaxBrightness;
235 float _hdrPaperWhiteBrightness;
264- (void) initSplashScreen;
265- (void) endSplashScreen;
266- (void) autoShowMouse;
271- (void) allowStringInput: (BOOL) value;
275- (void) setTypedString:(NSString*) value;
288- (void) initialiseGLWithSize:(NSSize) v_size;
289- (void) initialiseGLWithSize:(NSSize) v_size useVideoMode:(BOOL) v_mode;
292- (BOOL) getCurrentMonitorInfo:(MONITORINFOEX *)mInfo;
293- (MONITORINFOEX) currentMonitorInfo;
294- (void) refreshDarKOrLightMode;
295- (BOOL) isDarkModeOn;
296- (BOOL) atDesktopResolution;
297- (float) hdrMaxBrightness;
298- (void) setHDRMaxBrightness:(
float)newMaxBrightness;
299- (float) hdrPaperWhiteBrightness;
300- (void) setHDRPaperWhiteBrightness:(
float)newPaperWhiteBrightness;
307- (void) adjustColorSaturation:(
float)colorSaturationAdjustment;
311- (void) grabMouseInsideGameWindow:(BOOL) value;
313- (void) stringToClipboard:(NSString *)stringToCopy;
315- (void) drawRect:(NSRect)rect;
317- (void) updateScreenWithVideoMode:(BOOL) v_mode;
320- (BOOL) snapShot:(NSString *)filename;
321#if SNAPSHOTS_PNG_FORMAT
322- (BOOL) pngSaveSurface:(NSString *)fileName withSurface:(SDL_Surface *)surf;
328- (void) setFullScreenMode:(BOOL)fsm;
331- (void) setDisplayMode:(
int)mode fullScreen:(BOOL)fsm;
334- (void) setScreenSize: (
int)sizeIndex;
337- (NSSize) modeAsSize: (
int)sizeIndex;
338- (void) saveWindowSize: (NSSize) windowSize;
341- (
int) findDisplayModeForWidth: (
unsigned int) d_width Height:(
unsigned int) d_height
342 Refresh: (
unsigned int)d_refresh;
347- (void) setVirtualJoystick:(
double) vmx :(
double) vmy;
352- (void) clearKey: (
int)theKey;
356- (BOOL) isDown: (
int) key;
366- (void) setMouseWheelDelta: (
float) newWheelDelta;
373- (void) setMouseInDeltaMode: (BOOL) inDelta;
375- (void) setGammaValue: (
float) value;
378- (void) setFov:(
float)value fromFraction:(BOOL)fromFraction;
379- (float) fov:(BOOL)inFraction;
381- (void) setMsaa:(BOOL)newMsaa;
391- (void) dumpRGBAToFileNamed:(NSString *)name
392 bytes:(uint8_t *)bytes
393 width:(NSUInteger)width
394 height:(NSUInteger)height
395 rowBytes:(NSUInteger)rowBytes;
396- (void) dumpRGBToFileNamed:(NSString *)name
397 bytes:(uint8_t *)bytes
398 width:(NSUInteger)width
399 height:(NSUInteger)height
400 rowBytes:(NSUInteger)rowBytes;
401- (void) dumpGrayToFileNamed:(NSString *)name
402 bytes:(uint8_t *)bytes
403 width:(NSUInteger)width
404 height:(NSUInteger)height
405 rowBytes:(NSUInteger)rowBytes;
406- (void) dumpGrayAlphaToFileNamed:(NSString *)name
407 bytes:(uint8_t *)bytes
408 width:(NSUInteger)width
409 height:(NSUInteger)height
410 rowBytes:(NSUInteger)rowBytes;
411- (void) dumpRGBAToRGBFileNamed:(NSString *)rgbName
412 andGrayFileNamed:(NSString *)grayName
413 bytes:(uint8_t *)bytes
414 width:(NSUInteger)width
415 height:(NSUInteger)height
416 rowBytes:(NSUInteger)rowBytes;
@ OOHDR_TONEMAPPER_REINHARD
@ OOHDR_TONEMAPPER_UCHIMURA
@ OOHDR_TONEMAPPER_ACES_APPROX
@ OOSDR_TONEMAPPER_UCHIMURA
@ OOSDR_TONEMAPPER_HEJLDAWSON
@ OOSDR_TONEMAPPER_REINHARD
BOOL m_glContextInitialized
void suppressKeysUntilKeyUp()
NSMutableArray * getScreenSizeArray()
BOOL isOutputDisplayHDREnabled()
void initKeyMappingData()
int loadFullscreenSettings()
NSMutableDictionary * getNativeSize()
NSDictionary * keyMappings_shifted
float _mouseVirtualStickSensitivityFactor
void populateFullScreenModelist()
NSMutableString * typedString
NSMutableArray * screenSizes
int scancode2Unicode[NUM_KEYS]
NSPoint mouseDragStartPoint
NSPoint virtualJoystickPosition
BOOL isRunningOnPrimaryDisplayDevice()
OOOpenGLMatrixManager * getOpenGLMatrixManager()
NSTimeInterval timeSinceLastMouseWheel
OOOpenGLMatrixManager * matrixManager
NSTimeInterval timeIntervalAtLastClick
NSSize currentScreenSize()
OOSDRToneMapper sdrToneMapper()
NSDictionary * keyMappings_normal
GameController * gameController
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque