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 MOUSEVIRTUALSTICKSENSITIVITYFACTOR 0.95f
50#define MOUSEX_MAXIMUM 0.6
51#define MOUSEY_MAXIMUM 0.6
53#define MAX_CLEAR_DEPTH 10000000000.0
55#define INTERMEDIATE_CLEAR_DEPTH 100.0
60#define MOUSE_DOUBLE_CLICK_INTERVAL 0.40
61#define OOMOUSEWHEEL_EVENTS_DELAY_INTERVAL 0.05
62#define OOMOUSEWHEEL_DELTA 120
64#define SNAPSHOTS_PNG_FORMAT 1
65#define SNAPSHOTHDR_EXTENSION_EXR @".exr"
66#define SNAPSHOTHDR_EXTENSION_HDR @".hdr"
67#define SNAPSHOTHDR_EXTENSION_DEFAULT SNAPSHOTHDR_EXTENSION_EXR
208 BOOL atDesktopResolution;
209 unsigned keyboardMap;
211 MONITORINFOEX monitorInfo;
213 float _hdrMaxBrightness;
214 float _hdrPaperWhiteBrightness;
240- (void) initSplashScreen;
241- (void) endSplashScreen;
242- (void) autoShowMouse;
244- (void) initKeyMappingData;
247- (void) allowStringInput: (BOOL) value;
249- (NSString *) typedString;
250- (void) resetTypedString;
251- (void) setTypedString:(NSString*) value;
254- (NSSize) backingViewSize;
255- (GLfloat) display_z;
264- (void) initialiseGLWithSize:(NSSize) v_size;
265- (void) initialiseGLWithSize:(NSSize) v_size useVideoMode:(BOOL) v_mode;
266- (BOOL) isRunningOnPrimaryDisplayDevice;
268- (BOOL) getCurrentMonitorInfo:(MONITORINFOEX *)mInfo;
269- (MONITORINFOEX) currentMonitorInfo;
270- (void) refreshDarKOrLightMode;
271- (BOOL) isDarkModeOn;
272- (BOOL) atDesktopResolution;
273- (float) hdrMaxBrightness;
274- (void) setHDRMaxBrightness:(
float)newMaxBrightness;
275- (float) hdrPaperWhiteBrightness;
276- (void) setHDRPaperWhiteBrightness:(
float)newPaperWhiteBrightness;
278- (float) colorSaturation;
279- (void) adjustColorSaturation:(
float)colorSaturationAdjustment;
281- (BOOL) isOutputDisplayHDREnabled;
283- (void) grabMouseInsideGameWindow:(BOOL) value;
285- (void) stringToClipboard:(NSString *)stringToCopy;
287- (void) drawRect:(NSRect)rect;
288- (void) updateScreen;
289- (void) updateScreenWithVideoMode:(BOOL) v_mode;
292- (BOOL) snapShot:(NSString *)filename;
293#if SNAPSHOTS_PNG_FORMAT
294- (BOOL) pngSaveSurface:(NSString *)fileName withSurface:(SDL_Surface *)surf;
298+ (NSMutableDictionary *) getNativeSize;
300- (void) setFullScreenMode:(BOOL)fsm;
301- (BOOL) inFullScreenMode;
302- (void) toggleScreenMode;
303- (void) setDisplayMode:(
int)mode fullScreen:(BOOL)fsm;
305- (
int) indexOfCurrentSize;
306- (void) setScreenSize: (
int)sizeIndex;
307- (NSMutableArray *)getScreenSizeArray;
308- (void) populateFullScreenModelist;
309- (NSSize) modeAsSize: (
int)sizeIndex;
310- (void) saveWindowSize: (NSSize) windowSize;
311- (NSSize) loadWindowSize;
312- (
int) loadFullscreenSettings;
313- (
int) findDisplayModeForWidth: (
unsigned int) d_width Height:(
unsigned int) d_height
314 Refresh: (
unsigned int)d_refresh;
315- (NSSize) currentScreenSize;
317- (void) pollControls;
319- (void) setVirtualJoystick:(
double) vmx :(
double) vmy;
320- (NSPoint) virtualJoystickPosition;
324- (void) clearKey: (
int)theKey;
326- (BOOL) isAlphabetKeyDown;
327- (void) suppressKeysUntilKeyUp;
328- (BOOL) isDown: (
int) key;
331- (BOOL) isCommandDown;
333- (BOOL) isCapsLockOn;
334- (BOOL) lastKeyWasShifted;
336- (
int) mouseWheelState;
337- (float) mouseWheelDelta;
338- (void) setMouseWheelDelta: (
float) newWheelDelta;
341- (BOOL) isCommandQDown;
342- (BOOL) isCommandFDown;
343- (void) clearCommandF;
345- (void) setMouseInDeltaMode: (BOOL) inDelta;
347- (void) setGammaValue: (
float) value;
350- (void) setFov:(
float)value fromFraction:(BOOL)fromFraction;
351- (float) fov:(BOOL)inFraction;
353- (void) setMsaa:(BOOL)newMsaa;
363- (void) dumpRGBAToFileNamed:(NSString *)name
364 bytes:(uint8_t *)bytes
365 width:(NSUInteger)width
366 height:(NSUInteger)height
367 rowBytes:(NSUInteger)rowBytes;
368- (void) dumpRGBToFileNamed:(NSString *)name
369 bytes:(uint8_t *)bytes
370 width:(NSUInteger)width
371 height:(NSUInteger)height
372 rowBytes:(NSUInteger)rowBytes;
373- (void) dumpGrayToFileNamed:(NSString *)name
374 bytes:(uint8_t *)bytes
375 width:(NSUInteger)width
376 height:(NSUInteger)height
377 rowBytes:(NSUInteger)rowBytes;
378- (void) dumpGrayAlphaToFileNamed:(NSString *)name
379 bytes:(uint8_t *)bytes
380 width:(NSUInteger)width
381 height:(NSUInteger)height
382 rowBytes:(NSUInteger)rowBytes;
383- (void) dumpRGBAToRGBFileNamed:(NSString *)rgbName
384 andGrayFileNamed:(NSString *)grayName
385 bytes:(uint8_t *)bytes
386 width:(NSUInteger)width
387 height:(NSUInteger)height
388 rowBytes:(NSUInteger)rowBytes;
BOOL m_glContextInitialized
NSDictionary * keyMappings_shifted
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