31#include <SDL3/SDL_video.h>
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
58#define MOUSE_DOUBLE_CLICK_INTERVAL 0.40
59#define OOMOUSEWHEEL_EVENTS_DELAY_INTERVAL 0.05
60#define OOMOUSEWHEEL_DELTA 120
62#define SNAPSHOTS_PNG_FORMAT 1
63#define SNAPSHOTHDR_EXTENSION_EXR @".exr"
64#define SNAPSHOTHDR_EXTENSION_HDR @".hdr"
65#define SNAPSHOTHDR_EXTENSION_DEFAULT SNAPSHOTHDR_EXTENSION_EXR
220 BOOL atDesktopResolution;
221 unsigned keyboardMap;
224 float _hdrMaxBrightness;
225 float _hdrPaperWhiteBrightness;
254- (NSString*)getWindowCaption;
255- (void)createWindowWithSize:(NSSize)size;
256- (void)initSplashScreen;
257- (void)endSplashScreen;
268- (void)initialiseGLWithSize:(NSSize)v_size;
269- (void)updateGLSize:(NSSize)size;
271- (void)getDisplayDimensions:(
unsigned*)width height:(
unsigned*)height;
273- (BOOL)atDesktopResolution;
274- (float)hdrMaxBrightness;
275- (void)setHDRMaxBrightness:(
float)newMaxBrightness;
276- (float)hdrPaperWhiteBrightness;
277- (void)setHDRPaperWhiteBrightness:(
float)newPaperWhiteBrightness;
284- (void)adjustColorSaturation:(
float)colorSaturationAdjustment;
288- (void)grabMouseInsideGameWindow:(BOOL)value;
290- (void)stringToClipboard:(NSString*)stringToCopy;
294- (BOOL)snapShot:(NSString*)filename;
299- (void)setFullScreenMode:(BOOL)fsm;
302- (void)setDisplayMode:(
int)mode fullScreen:(BOOL)fsm;
304- (void)setScreenSize:(
int)sizeIndex;
307- (NSSize)modeAsSize:(
int)sizeIndex;
308- (void)saveWindowSize:(NSSize)windowSize;
311- (
int)findDisplayModeForWidth:(
unsigned int)d_width Height:(
unsigned int)d_height
312 Refresh:(
unsigned int)d_refresh;
318- (void)setFov:(
float)value fromFraction:(BOOL)fromFraction;
319- (float)fov:(BOOL)inFraction;
321- (void)setMsaa:(BOOL)newMsaa;
331- (void)dumpRGBAToFileNamed:(NSString*)name
332 bytes:(uint8_t*)bytes
333 width:(NSUInteger)width
334 height:(NSUInteger)height
335 rowBytes:(NSUInteger)rowBytes;
336- (void)dumpRGBToFileNamed:(NSString*)name
337 bytes:(uint8_t*)bytes
338 width:(NSUInteger)width
339 height:(NSUInteger)height
340 rowBytes:(NSUInteger)rowBytes;
341- (void)dumpGrayToFileNamed:(NSString*)name
342 bytes:(uint8_t*)bytes
343 width:(NSUInteger)width
344 height:(NSUInteger)height
345 rowBytes:(NSUInteger)rowBytes;
346- (void)dumpGrayAlphaToFileNamed:(NSString*)name
347 bytes:(uint8_t*)bytes
348 width:(NSUInteger)width
349 height:(NSUInteger)height
350 rowBytes:(NSUInteger)rowBytes;
351- (void)dumpRGBAToRGBFileNamed:(NSString*)rgbName
352 andGrayFileNamed:(NSString*)grayName
353 bytes:(uint8_t*)bytes
354 width:(NSUInteger)width
355 height:(NSUInteger)height
356 rowBytes:(NSUInteger)rowBytes;
362#include <SDL3/SDL_events.h>
@ OOHDR_TONEMAPPER_REINHARD
@ OOHDR_TONEMAPPER_UCHIMURA
@ OOHDR_TONEMAPPER_ACES_APPROX
@ OOSDR_TONEMAPPER_UCHIMURA
@ OOSDR_TONEMAPPER_HEJLDAWSON
@ OOSDR_TONEMAPPER_REINHARD
int bitsPerColorComponent
NSMutableArray * getScreenSizeArray()
NSDictionary * keyMappings_shifted
BOOL isOutputDisplayHDREnabled()
NSDictionary * currentScreenMode()
int scancode2Unicode[NUM_KEYS]
enum StringInput allowingStringInput
int loadFullscreenSettings()
NSMutableString * typedString
NSMutableDictionary * getNativeSize()
float _mouseVirtualStickSensitivityFactor
void populateFullScreenModelist()
NSMutableArray * screenSizes
NSPoint mouseDragStartPoint
OOOpenGLMatrixManager * matrixManager
NSPoint virtualJoystickPosition
BOOL isRunningOnPrimaryDisplayDevice()
NSDictionary * keyMappings_normal
OOOpenGLMatrixManager * getOpenGLMatrixManager()
NSTimeInterval timeSinceLastMouseWheel
NSTimeInterval timeIntervalAtLastClick
NSSize currentScreenSize()
OOSDRToneMapper sdrToneMapper()
SDL_DisplayID getDisplayId()
GameController * gameController
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque