![]() |
Oolite 1.91.0.7658-250404-b1488af
|
#include <MyOpenGLView.h>
Class Methods | |
(BOOL) | + pollShiftKey |
(NSMutableDictionary *) | + getNativeSize |
(BOOL) | + pollShiftKey |
(static void) | + GetDesiredCursorState [implementation] |
(static void) | + ApplyCursorState [implementation] |
(static void) | + UnapplyCursorState [implementation] |
Protected Attributes | |
NSPoint | mouseDragStartPoint |
BOOL | mouseWarped |
NSTimeInterval | timeSinceLastMouseWheel |
float | _mouseVirtualStickSensitivityFactor |
double | squareX |
double | squareY |
NSRect | bounds |
float | _gamma |
BOOL | _msaa |
NSMutableArray * | screenSizes |
int | currentSize |
BOOL | fullScreen |
NSSize | currentWindowSize |
SDL_Surface * | surface |
BOOL | showSplashScreen |
float | _colorSaturation |
BOOL | _hdrOutput |
BOOL | grabMouseStatus |
NSSize | firstScreen |
BOOL | mouseInDeltaMode |
Private Attributes | |
GameController * | gameController |
BOOL | keys [NUM_KEYS] |
int | scancode2Unicode [NUM_KEYS] |
NSDictionary * | keyMappings_normal |
NSDictionary * | keyMappings_shifted |
BOOL | suppressKeys |
BOOL | opt |
BOOL | ctrl |
BOOL | command |
BOOL | shift |
BOOL | capsLockOn |
BOOL | lastKeyShifted |
BOOL | allowingStringInput |
BOOL | isAlphabetKeyDown |
BOOL | commandQ |
BOOL | commandF |
BOOL | f12 |
int | keycodetrans [255] |
BOOL | m_glContextInitialized |
NSTimeInterval | timeIntervalAtLastClick |
NSTimeInterval | timeIntervalAtLastMouseWheel |
BOOL | doubleClick |
NSMutableString * | typedString |
NSPoint | virtualJoystickPosition |
float | _mouseWheelDelta |
NSSize | viewSize |
NSSize | backingViewSize |
GLfloat | display_z |
GLfloat | x_offset |
GLfloat | y_offset |
float | _fov |
int | _virtualScreen |
NSData * | _pixelFormatAttributes |
OOOpenGLMatrixManager * | matrixManager |
Definition at line 123 of file MyOpenGLView.h.
|
implementation |
Definition at line 547 of file MyOpenGLView.m.
References acceptsFirstResponder.
Referenced by acceptsFirstResponder.
- (void) adjustColorSaturation: | (float) | colorSaturationAdjustment |
Definition at line 1599 of file MyOpenGLView.m.
References _colorSaturation, and MAX_COLOR_SATURATION.
Referenced by PlayerEntity(OOPrivate)::gameOverFadeToBW, and GlobalSetColorSaturation().
- (enum StringInput) allowingStringInput |
References allowingStringInput.
- (enum StringInput) allowingStringInput |
References allowingStringInput.
- (void) allowStringInput: | (BOOL) | value |
Definition at line 584 of file MyOpenGLView.m.
References allowingStringInput, gvStringInputAlpha, and gvStringInputNo.
Referenced by PlayerEntity(OOControlsPrivate)::pollApplicationControls, PlayerEntity(OOControlsPrivate)::pollDemoControls:, PlayerEntity(OOControlsPrivate)::pollDockedControls:, PlayerEntity(OOControlsPrivate)::pollFlightControls:, PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:, and PlayerEntity(Controls)::switchToMainView.
- (void) allowStringInput: | (BOOL) | value |
|
implementation |
Definition at line 1341 of file MyOpenGLView.m.
References GetDesiredCursorState().
- (void) autoShowMouse |
Definition at line 563 of file MyOpenGLView.m.
References autoShowMouse, and fullScreen.
Referenced by autoShowMouse, endSplashScreen, init, initialiseGLWithSize:useVideoMode:, and noteMouseInteractionModeChangedFrom:to:.
- (NSSize) backingViewSize |
References backingViewSize.
- (NSSize) backingViewSize |
References backingViewSize.
- (NSRect) bounds |
- (void) clearCommandF |
Definition at line 2051 of file MyOpenGLView.m.
References clearCommandF.
Referenced by clearCommandF, isAlphabetKeyDown, and PlayerEntity(OOControlsPrivate)::pollApplicationControls.
- (void) clearCommandF |
- (void) clearKey: | (int) | theKey |
Definition at line 1913 of file MyOpenGLView.m.
Referenced by PlayerEntity(OOControlsPrivate)::pollFlightControls:.
- (void) clearKey: | (int) | theKey |
- (void) clearKeys |
Definition at line 1896 of file MyOpenGLView.m.
References clearKeys, keys, lastKeyShifted, and numKeys.
Referenced by clearKeys, PlayerEntity(OOControlsPrivate)::handleGameOptionsScreenKeys, PlayerEntity(KeyMapper)::handleKeyboardLayoutEntryKeys:view:, PlayerEntity(KeyMapper)::handleKeyConfigEntryKeys:view:, PlayerEntity(KeyMapper)::keyMapperInputHandler:view:, PlayerEntity(OOControlsPrivate)::pollFlightControls:, PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:, PlayerEntity(OOControlsPrivate)::pollGuiScreenControlsWithFKeyAlias:, PlayerEntity(KeyMapper)::setGuiToKeyboardLayoutScreen:resetCurrentRow:, PlayerEntity(KeyMapper)::setGuiToKeyConfigEntryScreen, PlayerEntity(KeyMapper)::setGuiToKeyMapperScreen:resetCurrentRow:, PlayerEntity(OOControlsPrivate)::setGuiToMissionEndScreen, suppressKeysUntilKeyUp, and virtualJoystickPosition.
- (void) clearKeys |
- (void) clearMouse |
Definition at line 1905 of file MyOpenGLView.m.
References clearMouse, doubleClick, and keys.
Referenced by clearMouse, PlayerEntity(OOControlsPrivate)::handleGameOptionsScreenKeys, PlayerEntity(Controls)::handleGUIUpDownArrowKeys, PlayerEntity(KeyMapper)::handleKeyboardLayoutEntryKeys:view:, PlayerEntity(KeyMapper)::handleKeyConfigKeys:view:, PlayerEntity(KeyMapper)::handleKeyMapperConfirmClearKeys:view:, PlayerEntity(KeyMapper)::keyMapperInputHandler:view:, PlayerEntity(OOControlsPrivate)::pollDemoControls:, PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:, PlayerEntity(OOControlsPrivate)::pollGuiScreenControlsWithFKeyAlias:, PlayerEntity(OOControlsPrivate)::pollMarketScreenControls, PlayerEntity(KeyMapper)::setGuiToKeyboardLayoutScreen:resetCurrentRow:, PlayerEntity(KeyMapper)::setGuiToKeyConfigEntryScreen, PlayerEntity(KeyMapper)::setGuiToKeyMapperScreen:resetCurrentRow:, suppressKeysUntilKeyUp, and virtualJoystickPosition.
- (void) clearMouse |
- (float) colorSaturation |
Definition at line 1593 of file MyOpenGLView.m.
References _colorSaturation, and colorSaturation.
Referenced by colorSaturation, PlayerEntity(OOPrivate)::gameOverFadeToBW, GlobalSetColorSaturation(), and initialiseGLWithSize:.
|
implementation |
Definition at line 121 of file MyOpenGLView.m.
References _gamma, createSurface, currentWindowSize, firstScreen, initialiseGLWithSize:, OOLogWARN, showSplashScreen, and surface.
Referenced by createSurface, and init.
- (NSSize) currentScreenSize |
Definition at line 2862 of file MyOpenGLView.m.
References currentScreenSize, kOODisplayHeight, kOODisplayWidth, OOLog, WINDOW_SIZE_DEFAULT_HEIGHT, and WINDOW_SIZE_DEFAULT_WIDTH.
Referenced by currentScreenSize, and modeAsSize:.
|
implementation |
Definition at line 173 of file MyOpenGLView.m.
References _pixelFormatAttributes, dealloc, DESTROY, keyMappings_normal, keyMappings_shifted, matrixManager, and typedString.
Referenced by dealloc, and init.
- (void) display |
Definition at line 757 of file MyOpenGLView.m.
References display, and updateScreen.
Referenced by display, and updateScreen.
- (GLfloat) display_z |
References display_z.
- (GLfloat) display_z |
References display_z.
- (void) drawRect: | (NSRect) | rect |
Definition at line 767 of file MyOpenGLView.m.
References updateScreenWithVideoMode:.
Referenced by updateScreen.
- (void) drawRect: | (NSRect) | rect |
- (void) dumpGrayAlphaToFileNamed: | (NSString *) | name | |
bytes: | (uint8_t *) | bytes | |
width: | (NSUInteger) | width | |
height: | (NSUInteger) | height | |
rowBytes: | (NSUInteger) | rowBytes |
Definition at line 2992 of file MyOpenGLView.m.
References nil.
Referenced by OODumpPixMap().
- (void) dumpGrayAlphaToFileNamed: | (NSString *) | name | |
bytes: | (uint8_t *) | bytes | |
width: | (NSUInteger) | width | |
height: | (NSUInteger) | height | |
rowBytes: | (NSUInteger) | rowBytes |
- (void) dumpGrayToFileNamed: | (NSString *) | name | |
bytes: | (uint8_t *) | bytes | |
width: | (NSUInteger) | width | |
height: | (NSUInteger) | height | |
rowBytes: | (NSUInteger) | rowBytes |
Definition at line 2974 of file MyOpenGLView.m.
References nil.
Referenced by dumpRGBAToRGBFileNamed:andGrayFileNamed:bytes:width:height:rowBytes:, and OODumpPixMap().
- (void) dumpGrayToFileNamed: | (NSString *) | name | |
bytes: | (uint8_t *) | bytes | |
width: | (NSUInteger) | width | |
height: | (NSUInteger) | height | |
rowBytes: | (NSUInteger) | rowBytes |
- (void) dumpRGBAToFileNamed: | (NSString *) | name | |
bytes: | (uint8_t *) | bytes | |
width: | (NSUInteger) | width | |
height: | (NSUInteger) | height | |
rowBytes: | (NSUInteger) | rowBytes |
Definition at line 2937 of file MyOpenGLView.m.
References nil.
- (void) dumpRGBAToFileNamed: | (NSString *) | name | |
bytes: | (uint8_t *) | bytes | |
width: | (NSUInteger) | width | |
height: | (NSUInteger) | height | |
rowBytes: | (NSUInteger) | rowBytes |
- (void) dumpRGBAToRGBFileNamed: | (NSString *) | rgbName | |
andGrayFileNamed: | (NSString *) | grayName | |
bytes: | (uint8_t *) | bytes | |
width: | (NSUInteger) | width | |
height: | (NSUInteger) | height | |
rowBytes: | (NSUInteger) | rowBytes |
Definition at line 3010 of file MyOpenGLView.m.
References dumpGrayToFileNamed:bytes:width:height:rowBytes:, dumpRGBToFileNamed:bytes:width:height:rowBytes:, nil, x, and y.
Referenced by OODumpPixMap().
- (void) dumpRGBAToRGBFileNamed: | (NSString *) | rgbName | |
andGrayFileNamed: | (NSString *) | grayName | |
bytes: | (uint8_t *) | bytes | |
width: | (NSUInteger) | width | |
height: | (NSUInteger) | height | |
rowBytes: | (NSUInteger) | rowBytes |
- (void) dumpRGBToFileNamed: | (NSString *) | name | |
bytes: | (uint8_t *) | bytes | |
width: | (NSUInteger) | width | |
height: | (NSUInteger) | height | |
rowBytes: | (NSUInteger) | rowBytes |
Definition at line 2956 of file MyOpenGLView.m.
References nil.
Referenced by dumpRGBAToRGBFileNamed:andGrayFileNamed:bytes:width:height:rowBytes:.
- (void) dumpRGBToFileNamed: | (NSString *) | name | |
bytes: | (uint8_t *) | bytes | |
width: | (NSUInteger) | width | |
height: | (NSUInteger) | height | |
rowBytes: | (NSUInteger) | rowBytes |
- (void) endSplashScreen |
Definition at line 448 of file MyOpenGLView.m.
References autoShowMouse, currentWindowSize, endSplashScreen, firstScreen, fullScreen, hdrOutput, initialiseGLWithSize:, isOutputDisplayHDREnabled, setFullScreenMode:, showSplashScreen, surface, and updateScreen.
Referenced by GameController::endSplashScreen, endSplashScreen, and initSplashScreen.
- (int) findDisplayModeForWidth: | (unsigned int) | d_width | |
Height: | (unsigned int) | d_height | |
Refresh: | (unsigned int) | d_refresh |
Definition at line 2835 of file MyOpenGLView.m.
References int(), OOLog, and screenSizes.
Referenced by loadFullscreenSettings.
|
implementation |
Definition at line 743 of file MyOpenGLView.m.
References capsLockOn, command, ctrl, opt, and shift.
- (float) fov: | (BOOL) | inFraction |
Definition at line 2906 of file MyOpenGLView.m.
Referenced by HeadUpDisplay::drawScannerGrid, Universe::drawUniverse, Universe::gameSettings, PlayerEntity(OOControlsPrivate)::handleGameOptionsScreenKeys, and PlayerEntity::setGuiToGameOptionsScreen.
- (float) fov: | (BOOL) | inFraction |
- (GameController *) gameController |
References gameController, pixelFormatAttributes, pollControls, resetMouse, and updateScreen.
- (GameController *) gameController |
References gameController.
- (float) gammaValue |
Definition at line 2894 of file MyOpenGLView.m.
References _gamma, and gammaValue.
Referenced by Universe::gameSettings, gammaValue, PlayerEntity(OOControlsPrivate)::handleGameOptionsScreenKeys, isAlphabetKeyDown, and PlayerEntity::setGuiToGameOptionsScreen.
- (float) gammaValue |
|
implementation |
Definition at line 1332 of file MyOpenGLView.m.
References MOUSE_MODE_FLIGHT_NO_MOUSE_CONTROL, and MOUSE_MODE_FLIGHT_WITH_MOUSE_CONTROL.
+ (NSMutableDictionary *) getNativeSize |
Definition at line 87 of file MyOpenGLView.m.
References getNativeSize, and OOLog.
Referenced by bounds, getNativeSize, and populateFullScreenModelist.
- (OOOpenGLMatrixManager *) getOpenGLMatrixManager |
Definition at line 2924 of file MyOpenGLView.m.
References getOpenGLMatrixManager, and matrixManager.
Referenced by getOpenGLMatrixManager, and isAlphabetKeyDown.
- (OOOpenGLMatrixManager *) getOpenGLMatrixManager |
- (NSMutableArray *) getScreenSizeArray |
References getScreenSizeArray, and populateFullScreenModelist.
Referenced by getScreenSizeArray.
- (void) grabMouseInsideGameWindow: | (BOOL) | value |
Definition at line 1322 of file MyOpenGLView.m.
Referenced by PlayerEntity(OOControlsPrivate)::pollApplicationControls, and pollControls.
|
implementation |
Provided by category MyOpenGLView(OOPrivate).
Definition at line 2670 of file MyOpenGLView.m.
References gvStringInputAll, and gvStringInputAlpha.
Referenced by pollControls.
- (BOOL) hdrOutput |
Definition at line 1346 of file MyOpenGLView.m.
References hdrOutput.
Referenced by endSplashScreen, hdrOutput, initialiseGLWithSize:, pngSaveSurface:withSurface:, and snapShot:.
- (int) indexOfCurrentSize |
References indexOfCurrentSize, and int().
Referenced by indexOfCurrentSize.
- (BOOL) inFullScreenMode |
Definition at line 671 of file MyOpenGLView.m.
References fullScreen, and inFullScreenMode.
Referenced by inFullScreenMode, setFullScreenMode:, and update.
- (void) initialiseGLWithSize: | (NSSize) | v_size |
Definition at line 1360 of file MyOpenGLView.m.
References initialiseGLWithSize:useVideoMode:.
Referenced by createSurface, endSplashScreen, and pollControls.
- (void) initialiseGLWithSize: | (NSSize) | v_size |
References colorSaturation, hdrOutput, isOutputDisplayHDREnabled, and isRunningOnPrimaryDisplayDevice.
- (void) initialiseGLWithSize: | (NSSize) | v_size | |
useVideoMode: | (BOOL) | v_mode |
Definition at line 1366 of file MyOpenGLView.m.
References autoShowMouse, bounds, display_z, fullScreen, gameController, isRunningOnPrimaryDisplayDevice, m_glContextInitialized, OOLog, OOLogERR, setFullScreenMode:, GameController::setUpBasicOpenGLStateWithSize:, setWindowBorderless:, squareX, surface, viewSize, x_offset, and y_offset.
Referenced by initialiseGLWithSize:, and updateScreenWithVideoMode:.
- (void) initKeyMappingData |
Definition at line 513 of file MyOpenGLView.m.
References ResourceManager::dictionaryFromFilesNamed:inFolder:mergeMode:cache:, initKeyMappingData, keyMappings_normal, and keyMappings_shifted.
Referenced by init, initKeyMappingData, and initWithFrame:.
- (void) initKeyMappingData |
- (void) initSplashScreen |
Definition at line 804 of file MyOpenGLView.m.
References endSplashScreen, initSplashScreen, OOLog, OOLogWARN, OOSetOpenGLState, OOVerifyOpenGLState, OPENGL_STATE_OVERLAY, OOOpenGLMatrixManager::orthoLeft:right:bottom:top:near:far:, OOOpenGLMatrixManager::resetModelView, OOOpenGLMatrixManager::resetProjection, showSplashScreen, surface, OOOpenGLMatrixManager::syncModelView, and OOOpenGLMatrixManager::syncProjection.
Referenced by GameController::beginSplashScreen, and initSplashScreen.
|
implementation |
Definition at line 81 of file MyOpenGLView.m.
References _pixelFormatAttributes, _virtualScreen, allowingStringInput, gvPrintScreenKey, gvStringInputNo, initKeyMappingData, isAlphabetKeyDown, matrixManager, OOLog, scancode2Unicode, timeIntervalAtLastClick, typedString, and virtualJoystickPosition.
- (BOOL) isAlphabetKeyDown |
References clearCommandF, gammaValue, getOpenGLMatrixManager, int(), isAlphabetKeyDown, isCapsLockOn, isCommandDown, isCommandFDown, isCommandQDown, isCtrlDown, isOptDown, isShiftDown, lastKeyWasShifted, mouseWheelDelta, mouseWheelState, numKeys, pollShiftKey, and suppressKeysUntilKeyUp.
- (BOOL) isAlphabetKeyDown |
References isAlphabetKeyDown.
- (BOOL) isCapsLockOn |
Definition at line 1993 of file MyOpenGLView.m.
References isCapsLockOn.
Referenced by isAlphabetKeyDown, isCapsLockOn, pollControls, and PlayerEntity(OOControlsPrivate)::pollFlightArrowKeyControls:.
- (BOOL) isCapsLockOn |
- (BOOL) isCommandDown |
Definition at line 1981 of file MyOpenGLView.m.
References command, and isCommandDown.
Referenced by isAlphabetKeyDown, and isCommandDown.
- (BOOL) isCommandDown |
- (BOOL) isCommandFDown |
Definition at line 2045 of file MyOpenGLView.m.
References isCommandFDown.
Referenced by isAlphabetKeyDown, and isCommandFDown.
- (BOOL) isCommandFDown |
|
implementation |
Provided by category MyOpenGLView(OOLoadSaveExtensions).
Definition at line 1354 of file PlayerEntityLoadSave.m.
- (BOOL) isCommandQDown |
Definition at line 2039 of file MyOpenGLView.m.
References isCommandQDown.
Referenced by isAlphabetKeyDown, and isCommandQDown.
- (BOOL) isCommandQDown |
- (BOOL) isCtrlDown |
Definition at line 1975 of file MyOpenGLView.m.
References ctrl, and isCtrlDown.
Referenced by isAlphabetKeyDown, MyOpenGLView(OOLoadSaveExtensions)::isCommandModifierKeyDown, isCtrlDown, PlayerEntity(OOControlsPrivate)::pollCustomViewControls, PlayerEntity(OOControlsPrivate)::pollFlightArrowKeyControls:, and PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:.
- (BOOL) isCtrlDown |
- (BOOL) isDown: | (int) | key |
Definition at line 1957 of file MyOpenGLView.m.
References keys, numKeys, and suppressKeys.
Referenced by PlayerEntity(OOControlsPrivate)::handleGameOptionsScreenKeys, PlayerEntity(Controls)::handleGUIUpDownArrowKeys, PlayerEntity(KeyMapper)::handleKeyboardLayoutEntryKeys:view:, PlayerEntity(KeyMapper)::handleKeyConfigKeys:view:, PlayerEntity(KeyMapper)::handleKeyMapperConfirmClearKeys:view:, PlayerEntity(KeyMapper)::keyMapperInputHandler:view:, and PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:.
- (BOOL) isDown: | (int) | key |
- (BOOL) isOptDown |
Definition at line 1969 of file MyOpenGLView.m.
References isOptDown, and opt.
Referenced by isAlphabetKeyDown, isOptDown, and PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:.
- (BOOL) isOptDown |
- (BOOL) isOutputDisplayHDREnabled |
Definition at line 1352 of file MyOpenGLView.m.
References isOutputDisplayHDREnabled.
Referenced by endSplashScreen, initialiseGLWithSize:, and isOutputDisplayHDREnabled.
- (BOOL) isRunningOnPrimaryDisplayDevice |
Definition at line 1316 of file MyOpenGLView.m.
References isRunningOnPrimaryDisplayDevice.
Referenced by initialiseGLWithSize:, initialiseGLWithSize:useVideoMode:, isRunningOnPrimaryDisplayDevice, and PlayerEntity::setGuiToGameOptionsScreen.
- (BOOL) isShiftDown |
Definition at line 1987 of file MyOpenGLView.m.
References isShiftDown, and shift.
Referenced by isAlphabetKeyDown, isShiftDown, PlayerEntity(OOControlsPrivate)::pollCustomViewControls, and PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:.
- (BOOL) isShiftDown |
|
implementation |
Definition at line 616 of file MyOpenGLView.m.
References allowingStringInput, commandF, commandQ, f12, gvBackspaceKey, gvDeleteKey, gvStringInputAll, gvStringInputAlpha, gvStringInputLoadSave, isAlphabetKeyDown, keycodetrans, keys, kOOLogKeyCodeOutOfRange, kOOLogKeyDown, lastKeyShifted, nil, numKeys, OOLog, shift, translateKeyCode:, and typedString.
Referenced by OoliteApp::sendEvent:.
|
implementation |
Definition at line 553 of file MyOpenGLView.m.
References commandF, commandQ, f12, isAlphabetKeyDown, keycodetrans, keys, kOOLogKeyCodeOutOfRange, kOOLogKeyUp, nil, numKeys, OOLog, and suppressKeys.
Referenced by OoliteApp::sendEvent:.
- (BOOL) lastKeyWasShifted |
Definition at line 2005 of file MyOpenGLView.m.
References lastKeyShifted, and lastKeyWasShifted.
Referenced by isAlphabetKeyDown, and lastKeyWasShifted.
- (BOOL) lastKeyWasShifted |
- (int) loadFullscreenSettings |
Definition at line 2799 of file MyOpenGLView.m.
References currentSize, findDisplayModeForWidth:Height:Refresh:, fullScreen, int(), and loadFullscreenSettings.
Referenced by init, loadFullscreenSettings, and modeAsSize:.
- (NSSize) loadWindowSize |
Definition at line 2781 of file MyOpenGLView.m.
References currentWindowSize, loadWindowSize, WINDOW_SIZE_DEFAULT_HEIGHT, and WINDOW_SIZE_DEFAULT_WIDTH.
Referenced by init, loadWindowSize, and modeAsSize:.
- (NSSize) modeAsSize: | (int) | sizeIndex |
References currentScreenSize, int(), loadFullscreenSettings, and loadWindowSize.
- (void) mouseDown: | (NSEvent *) | theEvent |
Definition at line 757 of file MyOpenGLView.m.
References doubleClick, and keys.
|
implementation |
Definition at line 811 of file MyOpenGLView.m.
References mouseMoved:.
|
implementation |
Definition at line 791 of file MyOpenGLView.m.
References display_z, MAIN_GUI_PIXEL_HEIGHT, MAIN_GUI_PIXEL_WIDTH, and viewSize.
Referenced by mouseDragged:, and otherMouseDragged:.
- (void) mouseUp: | (NSEvent *) | theEvent |
Definition at line 768 of file MyOpenGLView.m.
References doubleClick, keys, MOUSE_DOUBLE_CLICK_INTERVAL, and timeIntervalAtLastClick.
- (float) mouseWheelDelta |
Definition at line 2027 of file MyOpenGLView.m.
References _mouseWheelDelta, mouseWheelDelta, and OOMOUSEWHEEL_DELTA.
Referenced by PlayerEntity::doBookkeeping:, isAlphabetKeyDown, and mouseWheelDelta.
- (float) mouseWheelDelta |
- (int) mouseWheelState |
Definition at line 2016 of file MyOpenGLView.m.
References _mouseWheelDelta, gvMouseWheelDown, gvMouseWheelNeutral, gvMouseWheelUp, int(), and mouseWheelState.
Referenced by isAlphabetKeyDown, and mouseWheelState.
- (int) mouseWheelState |
- (BOOL) msaa |
Definition at line 2912 of file MyOpenGLView.m.
- (void) noteMouseInteractionModeChangedFrom: | (OOMouseInteractionMode) | oldMode | |
to: | (OOMouseInteractionMode) | newMode |
Definition at line 664 of file MyOpenGLView.m.
References autoShowMouse, and setMouseInDeltaMode:.
Referenced by GameController::setMouseInteractionMode:.
- (void) noteMouseInteractionModeChangedFrom: | (OOMouseInteractionMode) | oldMode | |
to: | (OOMouseInteractionMode) | newMode |
|
implementation |
Definition at line 316 of file MyOpenGLView.m.
References DESC, nil, and noteMovedToBadDisplay.
Referenced by noteMovedToBadDisplay, and update.
- (int) numKeys |
Definition at line 2010 of file MyOpenGLView.m.
References int(), NUM_KEYS, and numKeys.
Referenced by clearKey:, clearKeys, isAlphabetKeyDown, isDown:, keyDown:, keyUp:, numKeys, and pollControls.
|
implementation |
Definition at line 840 of file MyOpenGLView.m.
References mouseMoved:.
- (NSData *) pixelFormatAttributes |
Definition at line 389 of file MyOpenGLView.m.
References _pixelFormatAttributes, and pixelFormatAttributes.
Referenced by gameController, and pixelFormatAttributes.
- (BOOL) pngSaveSurface: | (NSString *) | fileName | |
withSurface: | (SDL_Surface *) | surf |
Definition at line 1729 of file MyOpenGLView.m.
References hdrOutput, and OOLog.
- (void) pollControls |
Definition at line 2057 of file MyOpenGLView.m.
References _mouseVirtualStickSensitivityFactor, _mouseWheelDelta, allowingStringInput, bounds, ctrl, display_z, PlayerEntity::doGuiScreenResizeUpdates, doubleClick, GameController::exitAppWithContext:, fullScreen, grabMouseInsideGameWindow:, grabMouseStatus, gvArrowKeyDown, gvArrowKeyLeft, gvArrowKeyRight, gvArrowKeyUp, gvBackspaceKey, gvDeleteKey, gvEndKey, gvFunctionKey1, gvFunctionKey10, gvFunctionKey11, gvFunctionKey2, gvFunctionKey3, gvFunctionKey4, gvFunctionKey5, gvFunctionKey6, gvFunctionKey7, gvFunctionKey8, gvFunctionKey9, gvHomeKey, gvInsertKey, gvNumberKey0, gvNumberKey1, gvNumberKey2, gvNumberKey3, gvNumberKey4, gvNumberKey5, gvNumberKey6, gvNumberKey7, gvNumberKey8, gvNumberKey9, gvNumberPadKey0, gvNumberPadKey1, gvNumberPadKey2, gvNumberPadKey3, gvNumberPadKey4, gvNumberPadKey5, gvNumberPadKey6, gvNumberPadKey7, gvNumberPadKey8, gvNumberPadKey9, gvNumberPadKeyDivide, gvNumberPadKeyEnter, gvNumberPadKeyEquals, gvNumberPadKeyMinus, gvNumberPadKeyMultiply, gvNumberPadKeyPeriod, gvNumberPadKeyPlus, gvPageDownKey, gvPageUpKey, gvPauseKey, OOSDLJoystickManager::handleSDLEvent:, handleStringInput:keyID:, initialiseGLWithSize:, isCapsLockOn, keys, kOOLogKeyDown, kOOLogKeyUp, MAIN_GUI_PIXEL_HEIGHT, MAIN_GUI_PIXEL_WIDTH, MOUSE_DOUBLE_CLICK_INTERVAL, mouseInDeltaMode, mouseWarped, MOUSEX_MAXIMUM, MOUSEY_MAXIMUM, numKeys, OOLog, OOMOUSEWHEEL_DELTA, OOMOUSEWHEEL_EVENTS_DELAY_INTERVAL, opt, pollControls, resetMouse, resetSDLKeyModifiers, saveWindowSize:, scancode2Unicode, setWindowBorderless:, PlayerEntity::sharedPlayer, OOJoystickManager::sharedStickHandler, shift, suppressKeys, surface, timeIntervalAtLastClick, timeSinceLastMouseWheel, toggleScreenMode, viewSize, and virtualJoystickPosition.
Referenced by gameController, GameController::performGameTick:, and pollControls.
- (void) pollControls |
+ (BOOL) pollShiftKey |
Definition at line 2930 of file MyOpenGLView.m.
References pollShiftKey.
Referenced by isAlphabetKeyDown, and pollShiftKey.
+ (BOOL) pollShiftKey |
- (void) populateFullScreenModelist |
Definition at line 2715 of file MyOpenGLView.m.
References getNativeSize, OOLog, populateFullScreenModelist, and screenSizes.
Referenced by getScreenSizeArray, init, and populateFullScreenModelist.
|
implementation |
Provided by category MyOpenGLView(Internal).
Definition at line 864 of file MyOpenGLView.m.
References PLAYER, GameController::recenterVirtualJoystick, MyOpenGLView(Internal)::recenterVirtualJoystick, and GameController::sharedController.
Referenced by MyOpenGLView(Internal)::recenterVirtualJoystick, rightMouseUp:, and touchesEndedWithEvent:.
- (void) resetMouse |
Definition at line 1922 of file MyOpenGLView.m.
References mouseWarped, resetMouse, and viewSize.
Referenced by gameController, PlayerEntity(OOControlsPrivate)::pollApplicationControls, pollControls, PlayerEntity(OOControlsPrivate)::pollCustomViewControls, resetMouse, and rightMouseDown:.
- (void) resetMouse |
|
implementation |
Provided by category MyOpenGLView(OOPrivate).
Definition at line 1334 of file MyOpenGLView.m.
References MyOpenGLView(OOPrivate)::resetSDLKeyModifiers.
Referenced by pollControls, and MyOpenGLView(OOPrivate)::resetSDLKeyModifiers.
- (void) resetTypedString |
Definition at line 604 of file MyOpenGLView.m.
References resetTypedString.
Referenced by PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:, resetTypedString, PlayerEntity(KeyMapper)::setGuiToKeyConfigEntryScreen, PlayerEntity(Scripting)::setMissionChoiceByTextEntry:, and typedString.
- (void) resetTypedString |
|
implementation |
Definition at line 846 of file MyOpenGLView.m.
References resetMouse.
|
implementation |
Definition at line 852 of file MyOpenGLView.m.
References recenterVirtualJoystick.
- (void) saveWindowSize: | (NSSize) | windowSize |
Definition at line 2772 of file MyOpenGLView.m.
References currentWindowSize.
Referenced by pollControls.
|
implementation |
Definition at line 816 of file MyOpenGLView.m.
References _mouseWheelDelta, and timeIntervalAtLastMouseWheel.
- (void) setDisplayMode: | (int) | mode | |
fullScreen: | (BOOL) | fsm |
- (void) setFov: | (float) | value | |
fromFraction: | (BOOL) | fromFraction |
Definition at line 2900 of file MyOpenGLView.m.
Referenced by PlayerEntity(OOControlsPrivate)::handleGameOptionsScreenKeys, and Universe::initWithGameView:.
- (void) setFov: | (float) | value | |
fromFraction: | (BOOL) | fromFraction |
- (void) setFullScreenMode: | (BOOL) | fsm |
References inFullScreenMode.
Referenced by endSplashScreen, and initialiseGLWithSize:useVideoMode:.
- (void) setGameController: | (GameController *) | controller |
Definition at line 658 of file MyOpenGLView.m.
References gameController.
Referenced by GameController::beginSplashScreen, and GameController::setGameView:.
- (void) setGameController: | (GameController *) | controller |
- (void) setGammaValue: | (float) | value |
Definition at line 2882 of file MyOpenGLView.m.
References _gamma.
Referenced by PlayerEntity(OOControlsPrivate)::handleGameOptionsScreenKeys, and Universe::initWithGameView:.
- (void) setGammaValue: | (float) | value |
- (void) setMouseInDeltaMode: | (BOOL) | inDelta |
Definition at line 2876 of file MyOpenGLView.m.
References mouseInDeltaMode.
Referenced by noteMouseInteractionModeChangedFrom:to:.
- (void) setMouseWheelDelta: | (float) | newWheelDelta |
Definition at line 2033 of file MyOpenGLView.m.
References _mouseWheelDelta, and OOMOUSEWHEEL_DELTA.
Referenced by PlayerEntity::doBookkeeping:.
- (void) setMouseWheelDelta: | (float) | newWheelDelta |
- (void) setMsaa: | (BOOL) | newMsaa |
Definition at line 2918 of file MyOpenGLView.m.
References _msaa.
Referenced by Universe::initWithGameView:.
- (void) setScreenSize: | (int) | sizeIndex |
Referenced by PlayerEntity(OOControlsPrivate)::handleGameOptionsScreenKeys.
- (void) setStringInput: | (enum StringInput) | value |
Definition at line 578 of file MyOpenGLView.m.
References allowingStringInput.
Referenced by PlayerEntity(OOControlsPrivate)::pollDemoControls:, PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:, PlayerEntity(KeyMapper)::setGuiToKeyConfigEntryScreen, and PlayerEntity(OOLoadSavePrivate)::setGuiToOverwriteScreen:.
- (void) setStringInput: | (enum StringInput) | value |
- (void) setTypedString: | (NSString*) | value |
Definition at line 610 of file MyOpenGLView.m.
Referenced by PlayerEntity(LoadSave)::saveCommanderInputHandler, PlayerEntity(KeyMapper)::setGuiToKeyConfigEntryScreen, and PlayerEntity(OOLoadSavePrivate)::setGuiToSaveCommanderScreen:.
- (void) setTypedString: | (NSString *) | value |
- (void) setVirtualJoystick: | (double) | ||
vmx: | (double) | vmy |
Definition at line 1881 of file MyOpenGLView.m.
References virtualJoystickPosition.
- (void) setVirtualJoystick: | (double) | ||
vmx: | (double) | vmy |
|
implementation |
Provided by category MyOpenGLView(OOPrivate).
Definition at line 1340 of file MyOpenGLView.m.
Referenced by initialiseGLWithSize:useVideoMode:, and pollControls.
- (BOOL) snapShot: | (NSString *) | filename |
Definition at line 1606 of file MyOpenGLView.m.
References hdrOutput, nil, OOLog, SaveEXRSnapshot(), SNAPSHOTHDR_EXTENSION_DEFAULT, SNAPSHOTHDR_EXTENSION_EXR, SNAPSHOTHDR_EXTENSION_HDR, stbi_write_hdr(), surface, and y.
Referenced by PlayerEntity(OOControlsPrivate)::pollApplicationControls.
- (BOOL) snapShot: | (NSString *) | filename |
- (void) stringToClipboard: | (NSString *) | stringToCopy |
Definition at line 1328 of file MyOpenGLView.m.
- (void) stringToClipboard: | (NSString *) | stringToCopy |
- (void) suppressKeysUntilKeyUp |
Definition at line 1942 of file MyOpenGLView.m.
References clearKeys, clearMouse, gvMouseDoubleClick, keys, suppressKeys, and suppressKeysUntilKeyUp.
Referenced by PlayerEntity(LoadSave)::commanderSelector, PlayerEntity(KeyMapper)::handleKeyConfigEntryKeys:view:, PlayerEntity(KeyMapper)::handleKeyMapperConfirmClearKeys:view:, isAlphabetKeyDown, PlayerEntity(LoadSave)::saveCommanderInputHandler, PlayerEntity(OOLoadSavePrivate)::setGuiToSaveCommanderScreen:, and suppressKeysUntilKeyUp.
- (void) suppressKeysUntilKeyUp |
- (void) toggleScreenMode |
References toggleScreenMode.
Referenced by PlayerEntity(OOControlsPrivate)::handleGameOptionsScreenKeys, pollControls, and toggleScreenMode.
|
implementation |
Definition at line 858 of file MyOpenGLView.m.
References recenterVirtualJoystick.
Provided by category MyOpenGLView(Internal).
Definition at line 875 of file MyOpenGLView.m.
References gvArrowKeyDown, gvArrowKeyLeft, gvArrowKeyRight, gvArrowKeyUp, gvBackspaceKey, gvDeleteKey, gvEndKey, gvFunctionKey1, gvFunctionKey10, gvFunctionKey11, gvFunctionKey2, gvFunctionKey3, gvFunctionKey4, gvFunctionKey5, gvFunctionKey6, gvFunctionKey7, gvFunctionKey8, gvFunctionKey9, gvHomeKey, gvInsertKey, gvPageDownKey, gvPageUpKey, gvPauseKey, gvPrintScreenKey, and int().
Referenced by keyDown:.
- (NSString *) typedString |
- (NSString *) typedString |
References typedString.
|
implementation |
Definition at line 1350 of file MyOpenGLView.m.
References GetDesiredCursorState().
|
implementation |
Definition at line 322 of file MyOpenGLView.m.
References _virtualScreen, gameController, inFullScreenMode, noteMovedToBadDisplay, GameController::pauseFullScreenModeToPerform:onTarget:, OOGraphicsResetManager::resetGraphicsState, OOGraphicsResetManager::sharedManager, and update.
Referenced by update.
- (void) updateScreen |
Definition at line 762 of file MyOpenGLView.m.
References drawRect:, and updateScreen.
Referenced by GameController::beginSplashScreen, display, endSplashScreen, gameController, updateScreen, and GameController::windowDidResize:.
- (void) updateScreen |
- (void) updateScreenWithVideoMode: | (BOOL) | v_mode |
Definition at line 772 of file MyOpenGLView.m.
References initialiseGLWithSize:useVideoMode:, m_glContextInitialized, surface, UNIVERSE, and viewSize.
Referenced by drawRect:.
- (NSSize) viewSize |
References viewSize.
- (NSSize) viewSize |
References viewSize.
- (NSPoint) virtualJoystickPosition |
References clearKeys, clearMouse, and virtualJoystickPosition.
- (NSPoint) virtualJoystickPosition |
References virtualJoystickPosition.
- (GLfloat) x_offset |
References x_offset.
- (GLfloat) x_offset |
References x_offset.
- (GLfloat) y_offset |
References y_offset.
- (GLfloat) y_offset |
References y_offset.
|
protected |
Definition at line 219 of file MyOpenGLView.h.
Referenced by adjustColorSaturation:, colorSaturation, and init.
|
private |
Definition at line 160 of file MyOpenGLView.h.
Referenced by fov:, and setFov:fromFraction:.
|
protected |
Definition at line 189 of file MyOpenGLView.h.
Referenced by createSurface, gammaValue, and setGammaValue:.
|
protected |
Definition at line 221 of file MyOpenGLView.h.
Referenced by init.
|
protected |
Definition at line 180 of file MyOpenGLView.h.
Referenced by init, and pollControls.
|
private |
Definition at line 153 of file MyOpenGLView.h.
Referenced by init, mouseWheelDelta, mouseWheelState, pollControls, scrollWheel:, and setMouseWheelDelta:.
|
protected |
Definition at line 191 of file MyOpenGLView.h.
|
private |
Definition at line 163 of file MyOpenGLView.h.
Referenced by dealloc, initWithFrame:, and pixelFormatAttributes.
|
private |
Definition at line 162 of file MyOpenGLView.h.
Referenced by initWithFrame:, and update.
|
private |
Definition at line 592 of file MyOpenGLView.m.
Referenced by allowingStringInput, allowStringInput:, init, initWithFrame:, keyDown:, pollControls, and setStringInput:.
|
private |
Definition at line 628 of file MyOpenGLView.m.
Referenced by backingViewSize.
|
protected |
Definition at line 616 of file MyOpenGLView.m.
Referenced by bounds, init, initialiseGLWithSize:useVideoMode:, and pollControls.
|
private |
Definition at line 135 of file MyOpenGLView.h.
Referenced by flagsChanged:.
|
private |
Definition at line 135 of file MyOpenGLView.h.
Referenced by flagsChanged:, and isCommandDown.
|
private |
Definition at line 139 of file MyOpenGLView.h.
|
private |
Definition at line 138 of file MyOpenGLView.h.
|
private |
Definition at line 135 of file MyOpenGLView.h.
Referenced by flagsChanged:, isCtrlDown, and pollControls.
|
protected |
Definition at line 195 of file MyOpenGLView.h.
Referenced by init, and loadFullscreenSettings.
|
protected |
Definition at line 199 of file MyOpenGLView.h.
Referenced by createSurface, endSplashScreen, init, loadWindowSize, and saveWindowSize:.
|
private |
Definition at line 634 of file MyOpenGLView.m.
Referenced by display_z, OOSunEntity::drawDirectVisionSunGlare, OOSunEntity::drawStarGlare, initialiseGLWithSize:useVideoMode:, mouseMoved:, and pollControls.
|
private |
Definition at line 148 of file MyOpenGLView.h.
Referenced by clearMouse, mouseDown:, mouseUp:, and pollControls.
|
private |
Definition at line 140 of file MyOpenGLView.h.
|
protected |
Definition at line 225 of file MyOpenGLView.h.
Referenced by createSurface, endSplashScreen, and init.
|
protected |
Definition at line 196 of file MyOpenGLView.h.
Referenced by autoShowMouse, endSplashScreen, inFullScreenMode, init, initialiseGLWithSize:useVideoMode:, loadFullscreenSettings, and pollControls.
|
private |
Definition at line 652 of file MyOpenGLView.m.
Referenced by gameController, Universe::gameController, initialiseGLWithSize:useVideoMode:, PlayerEntity(LoadSave)::quicksavePlayer, setGameController:, PlayerEntity::setGuiToLoadSaveScreen, and update.
|
protected |
Definition at line 223 of file MyOpenGLView.h.
Referenced by init, and pollControls.
|
private |
Definition at line 1933 of file MyOpenGLView.m.
Referenced by init, initWithFrame:, isAlphabetKeyDown, keyDown:, and keyUp:.
|
private |
Definition at line 142 of file MyOpenGLView.h.
|
private |
Definition at line 130 of file MyOpenGLView.h.
Referenced by dealloc, and initKeyMappingData.
|
private |
Definition at line 131 of file MyOpenGLView.h.
Referenced by dealloc, and initKeyMappingData.
|
private |
Definition at line 128 of file MyOpenGLView.h.
Referenced by clearKey:, clearKeys, clearMouse, isDown:, keyDown:, keyUp:, mouseDown:, mouseUp:, pollControls, and suppressKeysUntilKeyUp.
|
private |
Definition at line 135 of file MyOpenGLView.h.
Referenced by clearKeys, keyDown:, and lastKeyWasShifted.
|
private |
Definition at line 144 of file MyOpenGLView.h.
Referenced by init, initialiseGLWithSize:useVideoMode:, and updateScreenWithVideoMode:.
|
private |
Definition at line 165 of file MyOpenGLView.h.
Referenced by dealloc, getOpenGLMatrixManager, init, and initWithFrame:.
|
protected |
Definition at line 168 of file MyOpenGLView.h.
|
protected |
Definition at line 230 of file MyOpenGLView.h.
Referenced by pollControls, and setMouseInDeltaMode:.
|
protected |
Definition at line 170 of file MyOpenGLView.h.
Referenced by init, pollControls, and resetMouse.
|
private |
Definition at line 135 of file MyOpenGLView.h.
Referenced by flagsChanged:, isOptDown, and pollControls.
|
private |
Definition at line 129 of file MyOpenGLView.h.
Referenced by init, initWithFrame:, and pollControls.
|
protected |
Definition at line 194 of file MyOpenGLView.h.
Referenced by findDisplayModeForWidth:Height:Refresh:, and populateFullScreenModelist.
|
private |
Definition at line 135 of file MyOpenGLView.h.
Referenced by flagsChanged:, isShiftDown, keyDown:, and pollControls.
|
protected |
Definition at line 202 of file MyOpenGLView.h.
Referenced by createSurface, endSplashScreen, init, and initSplashScreen.
|
protected |
Definition at line 186 of file MyOpenGLView.h.
Referenced by initialiseGLWithSize:useVideoMode:.
|
protected |
Definition at line 186 of file MyOpenGLView.h.
|
private |
Definition at line 133 of file MyOpenGLView.h.
Referenced by isDown:, keyUp:, pollControls, and suppressKeysUntilKeyUp.
|
protected |
Definition at line 200 of file MyOpenGLView.h.
Referenced by createSurface, endSplashScreen, init, initialiseGLWithSize:useVideoMode:, initSplashScreen, pollControls, snapShot:, and updateScreenWithVideoMode:.
|
private |
Definition at line 146 of file MyOpenGLView.h.
Referenced by init, initWithFrame:, mouseUp:, and pollControls.
|
private |
Definition at line 147 of file MyOpenGLView.h.
Referenced by scrollWheel:.
|
protected |
Definition at line 173 of file MyOpenGLView.h.
Referenced by init, and pollControls.
|
private |
Definition at line 598 of file MyOpenGLView.m.
Referenced by dealloc, PlayerEntity(KeyMapper)::handleKeyConfigEntryKeys:view:, init, initWithFrame:, keyDown:, PlayerEntity(OOControlsPrivate)::pollDemoControls:, PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:, PlayerEntity(Scripting)::refreshMissionScreenTextEntry, PlayerEntity(LoadSave)::saveCommanderInputHandler, PlayerEntity(KeyMapper)::setGuiToKeyConfigEntryScreen, and typedString.
|
private |
Definition at line 622 of file MyOpenGLView.m.
Referenced by OOSunEntity::drawDirectVisionSunGlare, HeadUpDisplay::drawScannerGrid, OOSunEntity::drawStarGlare, Universe::drawUniverse, Universe::gameSettings, init, initialiseGLWithSize:useVideoMode:, Universe::initWithGameView:, mouseMoved:, pollControls, resetMouse, updateScreenWithVideoMode:, and viewSize.
|
private |
Definition at line 1888 of file MyOpenGLView.m.
Referenced by init, initWithFrame:, pollControls, PlayerEntity(OOControlsPrivate)::pollCustomViewControls, PlayerEntity(OOControlsPrivate)::pollFlightArrowKeyControls:, PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:, setVirtualJoystick:vmx:, and virtualJoystickPosition.
|
private |
Definition at line 640 of file MyOpenGLView.m.
Referenced by initialiseGLWithSize:useVideoMode:, and x_offset.
|
private |
Definition at line 646 of file MyOpenGLView.m.
Referenced by initialiseGLWithSize:useVideoMode:, and y_offset.