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
209 BOOL atDesktopResolution;
210 unsigned keyboardMap;
212 MONITORINFOEX monitorInfo;
214 float _hdrMaxBrightness;
215 float _hdrPaperWhiteBrightness;
241- (void) initSplashScreen;
242- (void) endSplashScreen;
243- (void) autoShowMouse;
245- (void) initKeyMappingData;
248- (void) allowStringInput: (BOOL) value;
250- (NSString *) typedString;
251- (void) resetTypedString;
252- (void) setTypedString:(NSString*) value;
255- (NSSize) backingViewSize;
256- (GLfloat) display_z;
265- (void) initialiseGLWithSize:(NSSize) v_size;
266- (void) initialiseGLWithSize:(NSSize) v_size useVideoMode:(BOOL) v_mode;
267- (BOOL) isRunningOnPrimaryDisplayDevice;
269- (BOOL) getCurrentMonitorInfo:(MONITORINFOEX *)mInfo;
270- (MONITORINFOEX) currentMonitorInfo;
271- (void) refreshDarKOrLightMode;
272- (BOOL) isDarkModeOn;
273- (BOOL) atDesktopResolution;
274- (float) hdrMaxBrightness;
275- (void) setHDRMaxBrightness:(
float)newMaxBrightness;
276- (float) hdrPaperWhiteBrightness;
277- (void) setHDRPaperWhiteBrightness:(
float)newPaperWhiteBrightness;
279- (float) colorSaturation;
280- (void) adjustColorSaturation:(
float)colorSaturationAdjustment;
282- (BOOL) isOutputDisplayHDREnabled;
284- (void) grabMouseInsideGameWindow:(BOOL) value;
286- (void) stringToClipboard:(NSString *)stringToCopy;
288- (void) drawRect:(NSRect)rect;
289- (void) updateScreen;
290- (void) updateScreenWithVideoMode:(BOOL) v_mode;
293- (BOOL) snapShot:(NSString *)filename;
294#if SNAPSHOTS_PNG_FORMAT
295- (BOOL) pngSaveSurface:(NSString *)fileName withSurface:(SDL_Surface *)surf;
299+ (NSMutableDictionary *) getNativeSize;
301- (void) setFullScreenMode:(BOOL)fsm;
302- (BOOL) inFullScreenMode;
303- (void) toggleScreenMode;
304- (void) setDisplayMode:(
int)mode fullScreen:(BOOL)fsm;
306- (
int) indexOfCurrentSize;
307- (void) setScreenSize: (
int)sizeIndex;
308- (NSMutableArray *)getScreenSizeArray;
309- (void) populateFullScreenModelist;
310- (NSSize) modeAsSize: (
int)sizeIndex;
311- (void) saveWindowSize: (NSSize) windowSize;
312- (NSSize) loadWindowSize;
313- (
int) loadFullscreenSettings;
314- (
int) findDisplayModeForWidth: (
unsigned int) d_width Height:(
unsigned int) d_height
315 Refresh: (
unsigned int)d_refresh;
316- (NSSize) currentScreenSize;
318- (void) pollControls;
320- (void) setVirtualJoystick:(
double) vmx :(
double) vmy;
321- (NSPoint) virtualJoystickPosition;
325- (void) clearKey: (
int)theKey;
327- (BOOL) isAlphabetKeyDown;
328- (void) suppressKeysUntilKeyUp;
329- (BOOL) isDown: (
int) key;
332- (BOOL) isCommandDown;
334- (BOOL) isCapsLockOn;
335- (BOOL) lastKeyWasShifted;
337- (
int) mouseWheelState;
338- (float) mouseWheelDelta;
339- (void) setMouseWheelDelta: (
float) newWheelDelta;
342- (BOOL) isCommandQDown;
343- (BOOL) isCommandFDown;
344- (void) clearCommandF;
346- (void) setMouseInDeltaMode: (BOOL) inDelta;
348- (void) setGammaValue: (
float) value;
351- (void) setFov:(
float)value fromFraction:(BOOL)fromFraction;
352- (float) fov:(BOOL)inFraction;
354- (void) setMsaa:(BOOL)newMsaa;
364- (void) dumpRGBAToFileNamed:(NSString *)name
365 bytes:(uint8_t *)bytes
366 width:(NSUInteger)width
367 height:(NSUInteger)height
368 rowBytes:(NSUInteger)rowBytes;
369- (void) dumpRGBToFileNamed:(NSString *)name
370 bytes:(uint8_t *)bytes
371 width:(NSUInteger)width
372 height:(NSUInteger)height
373 rowBytes:(NSUInteger)rowBytes;
374- (void) dumpGrayToFileNamed:(NSString *)name
375 bytes:(uint8_t *)bytes
376 width:(NSUInteger)width
377 height:(NSUInteger)height
378 rowBytes:(NSUInteger)rowBytes;
379- (void) dumpGrayAlphaToFileNamed:(NSString *)name
380 bytes:(uint8_t *)bytes
381 width:(NSUInteger)width
382 height:(NSUInteger)height
383 rowBytes:(NSUInteger)rowBytes;
384- (void) dumpRGBAToRGBFileNamed:(NSString *)rgbName
385 andGrayFileNamed:(NSString *)grayName
386 bytes:(uint8_t *)bytes
387 width:(NSUInteger)width
388 height:(NSUInteger)height
389 rowBytes:(NSUInteger)rowBytes;
BOOL m_glContextInitialized
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