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 25000.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
232 BOOL atDesktopResolution;
233 unsigned keyboardMap;
235 MONITORINFOEX monitorInfo;
237 float _hdrMaxBrightness;
238 float _hdrPaperWhiteBrightness;
267- (NSString*) getWindowCaption;
268- (void) createWindowWithSize: (NSSize) size;
269- (void) initSplashScreen;
270- (void) endSplashScreen;
271- (void) autoShowMouse;
273- (void) initKeyMappingData;
276- (void) allowStringInput: (BOOL) value;
278- (NSString *) typedString;
279- (void) resetTypedString;
280- (void) setTypedString:(NSString*) value;
283- (NSSize) backingViewSize;
284- (GLfloat) display_z;
293- (void) initialiseGLWithSize:(NSSize) v_size;
294- (void) initialiseGLWithSize:(NSSize) v_size useVideoMode:(BOOL) v_mode;
295- (BOOL) isRunningOnPrimaryDisplayDevice;
297- (BOOL) getCurrentMonitorInfo:(MONITORINFOEX *)mInfo;
298- (MONITORINFOEX) currentMonitorInfo;
299- (void) refreshDarKOrLightMode;
300- (BOOL) isDarkModeOn;
301- (BOOL) atDesktopResolution;
302- (float) hdrMaxBrightness;
303- (void) setHDRMaxBrightness:(
float)newMaxBrightness;
304- (float) hdrPaperWhiteBrightness;
305- (void) setHDRPaperWhiteBrightness:(
float)newPaperWhiteBrightness;
311- (float) colorSaturation;
312- (void) adjustColorSaturation:(
float)colorSaturationAdjustment;
314- (BOOL) isOutputDisplayHDREnabled;
316- (void) grabMouseInsideGameWindow:(BOOL) value;
318- (void) stringToClipboard:(NSString *)stringToCopy;
320- (void) drawRect:(NSRect)rect;
321- (void) updateScreen;
322- (void) updateScreenWithVideoMode:(BOOL) v_mode;
325- (BOOL) snapShot:(NSString *)filename;
328- (SDL_DisplayID) getDisplayId;
329- (NSMutableDictionary *) getNativeSize;
331- (void) setFullScreenMode:(BOOL)fsm;
332- (BOOL) inFullScreenMode;
333- (void) toggleScreenMode;
334- (void) setDisplayMode:(
int)mode fullScreen:(BOOL)fsm;
336- (
int) indexOfCurrentSize;
337- (void) setScreenSize: (
int)sizeIndex;
338- (NSMutableArray *)getScreenSizeArray;
339- (void) populateFullScreenModelist;
340- (NSSize) modeAsSize: (
int)sizeIndex;
341- (void) saveWindowSize: (NSSize) windowSize;
342- (NSSize) loadWindowSize;
343- (
int) loadFullscreenSettings;
344- (
int) findDisplayModeForWidth: (
unsigned int) d_width Height:(
unsigned int) d_height
345 Refresh: (
unsigned int)d_refresh;
346- (NSSize) currentScreenSize;
347- (NSDictionary*) currentScreenMode;
349- (void) pollControls;
351- (void) setVirtualJoystick:(
double) vmx :(
double) vmy;
352- (NSPoint) virtualJoystickPosition;
356- (void) clearKey: (
int)theKey;
358- (BOOL) isAlphabetKeyDown;
359- (void) suppressKeysUntilKeyUp;
360- (BOOL) isDown: (
int) key;
363- (BOOL) isCommandDown;
365- (BOOL) isCapsLockOn;
366- (BOOL) lastKeyWasShifted;
368- (
int) mouseWheelState;
369- (float) mouseWheelDelta;
370- (void) setMouseWheelDelta: (
float) newWheelDelta;
373- (BOOL) isCommandQDown;
374- (BOOL) isCommandFDown;
375- (void) clearCommandF;
377- (void) setMouseInDeltaMode: (BOOL) inDelta;
379- (void) setFov:(
float)value fromFraction:(BOOL)fromFraction;
380- (float) fov:(BOOL)inFraction;
382- (void) setMsaa:(BOOL)newMsaa;
392- (void) dumpRGBAToFileNamed:(NSString *)name
393 bytes:(uint8_t *)bytes
394 width:(NSUInteger)width
395 height:(NSUInteger)height
396 rowBytes:(NSUInteger)rowBytes;
397- (void) dumpRGBToFileNamed:(NSString *)name
398 bytes:(uint8_t *)bytes
399 width:(NSUInteger)width
400 height:(NSUInteger)height
401 rowBytes:(NSUInteger)rowBytes;
402- (void) dumpGrayToFileNamed:(NSString *)name
403 bytes:(uint8_t *)bytes
404 width:(NSUInteger)width
405 height:(NSUInteger)height
406 rowBytes:(NSUInteger)rowBytes;
407- (void) dumpGrayAlphaToFileNamed:(NSString *)name
408 bytes:(uint8_t *)bytes
409 width:(NSUInteger)width
410 height:(NSUInteger)height
411 rowBytes:(NSUInteger)rowBytes;
412- (void) dumpRGBAToRGBFileNamed:(NSString *)rgbName
413 andGrayFileNamed:(NSString *)grayName
414 bytes:(uint8_t *)bytes
415 width:(NSUInteger)width
416 height:(NSUInteger)height
417 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
SDL_Window * splashWindow
int bitsPerColorComponent
enum StringInput allowingStringInput
NSDictionary * keyMappings_shifted
float _mouseVirtualStickSensitivityFactor
NSMutableString * typedString
NSMutableArray * screenSizes
int scancode2Unicode[NUM_KEYS]
NSPoint mouseDragStartPoint
NSPoint virtualJoystickPosition
NSTimeInterval timeSinceLastMouseWheel
OOOpenGLMatrixManager * matrixManager
NSTimeInterval timeIntervalAtLastClick
NSDictionary * keyMappings_normal
GameController * gameController
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque