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
205 BOOL atDesktopResolution;
206 unsigned keyboardMap;
208 MONITORINFOEX monitorInfo;
210 float _hdrMaxBrightness;
211 float _hdrPaperWhiteBrightness;
237- (void) initSplashScreen;
238- (void) endSplashScreen;
239- (void) autoShowMouse;
241- (void) initKeyMappingData;
244- (void) allowStringInput: (BOOL) value;
246- (NSString *) typedString;
247- (void) resetTypedString;
248- (void) setTypedString:(NSString*) value;
251- (NSSize) backingViewSize;
252- (GLfloat) display_z;
261- (void) initialiseGLWithSize:(NSSize) v_size;
262- (void) initialiseGLWithSize:(NSSize) v_size useVideoMode:(BOOL) v_mode;
263- (BOOL) isRunningOnPrimaryDisplayDevice;
265- (BOOL) getCurrentMonitorInfo:(MONITORINFOEX *)mInfo;
266- (MONITORINFOEX) currentMonitorInfo;
267- (void) refreshDarKOrLightMode;
268- (BOOL) isDarkModeOn;
269- (BOOL) atDesktopResolution;
270- (float) hdrMaxBrightness;
271- (void) setHDRMaxBrightness:(
float)newMaxBrightness;
272- (float) hdrPaperWhiteBrightness;
273- (void) setHDRPaperWhiteBrightness:(
float)newPaperWhiteBrightness;
275- (float) colorSaturation;
276- (void) adjustColorSaturation:(
float)colorSaturationAdjustment;
278- (BOOL) isOutputDisplayHDREnabled;
280- (void) grabMouseInsideGameWindow:(BOOL) value;
282- (void) stringToClipboard:(NSString *)stringToCopy;
284- (void) drawRect:(NSRect)rect;
285- (void) updateScreen;
286- (void) updateScreenWithVideoMode:(BOOL) v_mode;
289- (BOOL) snapShot:(NSString *)filename;
290#if SNAPSHOTS_PNG_FORMAT
291- (BOOL) pngSaveSurface:(NSString *)fileName withSurface:(SDL_Surface *)surf;
295+ (NSMutableDictionary *) getNativeSize;
297- (void) setFullScreenMode:(BOOL)fsm;
298- (BOOL) inFullScreenMode;
299- (void) toggleScreenMode;
300- (void) setDisplayMode:(
int)mode fullScreen:(BOOL)fsm;
302- (
int) indexOfCurrentSize;
303- (void) setScreenSize: (
int)sizeIndex;
304- (NSMutableArray *)getScreenSizeArray;
305- (void) populateFullScreenModelist;
306- (NSSize) modeAsSize: (
int)sizeIndex;
307- (void) saveWindowSize: (NSSize) windowSize;
308- (NSSize) loadWindowSize;
309- (
int) loadFullscreenSettings;
310- (
int) findDisplayModeForWidth: (
unsigned int) d_width Height:(
unsigned int) d_height
311 Refresh: (
unsigned int)d_refresh;
312- (NSSize) currentScreenSize;
314- (void) pollControls;
316- (void) setVirtualJoystick:(
double) vmx :(
double) vmy;
317- (NSPoint) virtualJoystickPosition;
321- (void) clearKey: (
int)theKey;
323- (BOOL) isAlphabetKeyDown;
324- (void) suppressKeysUntilKeyUp;
325- (BOOL) isDown: (
int) key;
328- (BOOL) isCommandDown;
330- (BOOL) isCapsLockOn;
331- (BOOL) lastKeyWasShifted;
333- (
int) mouseWheelState;
334- (float) mouseWheelDelta;
335- (void) setMouseWheelDelta: (
float) newWheelDelta;
338- (BOOL) isCommandQDown;
339- (BOOL) isCommandFDown;
340- (void) clearCommandF;
342- (void) setMouseInDeltaMode: (BOOL) inDelta;
344- (void) setGammaValue: (
float) value;
347- (void) setFov:(
float)value fromFraction:(BOOL)fromFraction;
348- (float) fov:(BOOL)inFraction;
350- (void) setMsaa:(BOOL)newMsaa;
360- (void) dumpRGBAToFileNamed:(NSString *)name
361 bytes:(uint8_t *)bytes
362 width:(NSUInteger)width
363 height:(NSUInteger)height
364 rowBytes:(NSUInteger)rowBytes;
365- (void) dumpRGBToFileNamed:(NSString *)name
366 bytes:(uint8_t *)bytes
367 width:(NSUInteger)width
368 height:(NSUInteger)height
369 rowBytes:(NSUInteger)rowBytes;
370- (void) dumpGrayToFileNamed:(NSString *)name
371 bytes:(uint8_t *)bytes
372 width:(NSUInteger)width
373 height:(NSUInteger)height
374 rowBytes:(NSUInteger)rowBytes;
375- (void) dumpGrayAlphaToFileNamed:(NSString *)name
376 bytes:(uint8_t *)bytes
377 width:(NSUInteger)width
378 height:(NSUInteger)height
379 rowBytes:(NSUInteger)rowBytes;
380- (void) dumpRGBAToRGBFileNamed:(NSString *)rgbName
381 andGrayFileNamed:(NSString *)grayName
382 bytes:(uint8_t *)bytes
383 width:(NSUInteger)width
384 height:(NSUInteger)height
385 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