|
Blender
V2.93
|
#include <GHOST_SystemSDL.h>
Inherits GHOST_System.
Definition at line 41 of file GHOST_SystemSDL.h.
| GHOST_SystemSDL::GHOST_SystemSDL | ( | ) |
Definition at line 34 of file GHOST_SystemSDL.cpp.
| GHOST_SystemSDL::~GHOST_SystemSDL | ( | ) |
Definition at line 47 of file GHOST_SystemSDL.cpp.
| void GHOST_SystemSDL::addDirtyWindow | ( | GHOST_WindowSDL * | bad_wind | ) |
Definition at line 729 of file GHOST_SystemSDL.cpp.
References GHOST_ASSERT, and NULL.
Referenced by GHOST_WindowSDL::invalidate().
|
virtual |
Create a new offscreen context. Never explicitly delete the context, use disposeContext() instead.
Implements GHOST_System.
Definition at line 142 of file GHOST_SystemSDL.cpp.
References context, GHOST_OPENGL_SDL_CONTEXT_FLAGS, GHOST_OPENGL_SDL_RESET_NOTIFICATION_STRATEGY, and NULL.
|
virtual |
Dispose of a context.
| context | Pointer to the context to be disposed. |
Implements GHOST_ISystem.
Definition at line 160 of file GHOST_SystemSDL.cpp.
References context, and GHOST_kSuccess.
|
virtual |
Returns the dimensions of the main display on this system.
Implements GHOST_ISystem.
Definition at line 121 of file GHOST_SystemSDL.cpp.
|
virtual |
Returns the state of the mouse buttons (outside the message queue).
| buttons | The state of the buttons. |
Implements GHOST_System.
Definition at line 736 of file GHOST_SystemSDL.cpp.
References GHOST_kButtonMaskLeft, GHOST_kButtonMaskMiddle, GHOST_kButtonMaskRight, GHOST_kSuccess, NULL, GHOST_Buttons::set(), and state.
|
virtual |
Returns the selection buffer
| selection | Only used on X11. |
Implements GHOST_System.
Definition at line 746 of file GHOST_SystemSDL.cpp.
|
virtual |
Returns the current location of the cursor (location in screen coordinates)
| x | The x-coordinate of the cursor. |
| y | The y-coordinate of the cursor. |
Implements GHOST_ISystem.
Definition at line 614 of file GHOST_SystemSDL.cpp.
References GHOST_kSuccess, x, and y.
|
virtual |
Returns the dimensions of the main display on this system.
Implements GHOST_ISystem.
Definition at line 129 of file GHOST_SystemSDL.cpp.
| GHOST_TUns64 GHOST_SystemSDL::getMilliSeconds | ( | ) |
Definition at line 756 of file GHOST_SystemSDL.cpp.
Referenced by processEvents().
|
virtual |
Returns the state of all modifier keys.
| keys | The state of all modifier keys (true == pressed). |
Implements GHOST_System.
Definition at line 167 of file GHOST_SystemSDL.cpp.
References GHOST_kModifierKeyLeftAlt, GHOST_kModifierKeyLeftControl, GHOST_kModifierKeyLeftShift, GHOST_kModifierKeyOS, GHOST_kModifierKeyRightAlt, GHOST_kModifierKeyRightControl, GHOST_kModifierKeyRightShift, GHOST_kSuccess, mod(), and GHOST_ModifierKeys::set().
|
virtual |
Returns the number of displays on this system.
Implements GHOST_ISystem.
Definition at line 137 of file GHOST_SystemSDL.cpp.
|
virtual |
Retrieves events from the system and stores them in the queue.
| waitForEvent | Flag to wait for an event (or return immediately). |
Implements GHOST_ISystem.
Definition at line 660 of file GHOST_SystemSDL.cpp.
References GHOST_TimerManager::fireTimers(), getMilliSeconds(), GHOST_System::getTimerManager(), GHOST_kFireTimeNever, next, GHOST_TimerManager::nextFireTime(), and NULL.
|
virtual |
Put data to the Clipboard
| buffer | The buffer to copy to the clipboard. |
| selection | The clipboard to copy too only used on X11. |
Implements GHOST_System.
Definition at line 751 of file GHOST_SystemSDL.cpp.
References buffer.
|
virtual |
Updates the location of the cursor (location in screen coordinates). Not all operating systems allow the cursor to be moved (without the input device being moved).
| x | The x-coordinate of the cursor. |
| y | The y-coordinate of the cursor. |
Implements GHOST_ISystem.
Definition at line 628 of file GHOST_SystemSDL.cpp.
References GHOST_kSuccess, x, and y.
|
inlinevirtual |
Toggles console
| action |
|
Implements GHOST_ISystem.
Definition at line 50 of file GHOST_SystemSDL.h.