|
Blender V5.3
|
#include <GHOST_ContextSDL.hh>
Inherits GHOST_Context.
Public Member Functions | |
| GHOST_ContextSDL (const GHOST_ContextParams &context_params, SDL_Window *window, int contextProfileMask, int contextMajorVersion, int contextMinorVersion, int contextFlags, int contextResetNotificationStrategy) | |
| ~GHOST_ContextSDL () override | |
| GHOST_TSuccess | swapBufferAcquire () override |
| GHOST_TSuccess | swapBufferRelease () override |
| GHOST_TSuccess | activateDrawingContext () override |
| GHOST_TSuccess | releaseDrawingContext () override |
| GHOST_TSuccess | initializeDrawingContext () override |
| GHOST_TSuccess | releaseNativeHandles () override |
| GHOST_TSuccess | setSwapInterval (int interval) override |
| GHOST_TSuccess | getSwapInterval (int &interval_out) override |
| Public Member Functions inherited from GHOST_Context | |
| GHOST_Context (const GHOST_ContextParams &context_params) | |
| ~GHOST_Context () override | |
| virtual GHOST_TSuccess | updateDrawingContext () |
| void * | getUserData () |
| void | setUserData (void *user_data) |
| bool | isStereoVisual () const |
| bool | hasAlpha () const |
| virtual GHOST_TVSyncModes | getVSync () |
| virtual bool | isUpsideDown () const |
| unsigned int | getDefaultFramebuffer () override |
| Public Member Functions inherited from GHOST_IContext | |
| virtual | ~GHOST_IContext ()=default |
Additional Inherited Members | |
| Static Public Member Functions inherited from GHOST_Context | |
| static GHOST_Context * | getActiveDrawingContext () |
| Static Public Member Functions inherited from GHOST_IContext | |
| static GHOST_IContext * | getActiveDrawingContext () |
| Protected Attributes inherited from GHOST_Context | |
| GHOST_ContextParams | context_params_ |
| void * | user_data_ = nullptr |
| Static Protected Attributes inherited from GHOST_Context | |
| static GHOST_Context * | active_context_ |
Definition at line 27 of file GHOST_ContextSDL.hh.
| GHOST_ContextSDL::GHOST_ContextSDL | ( | const GHOST_ContextParams & | context_params, |
| SDL_Window * | window, | ||
| int | contextProfileMask, | ||
| int | contextMajorVersion, | ||
| int | contextMinorVersion, | ||
| int | contextFlags, | ||
| int | contextResetNotificationStrategy ) |
Constructor.
Definition at line 19 of file GHOST_ContextSDL.cc.
References GHOST_Context::GHOST_Context().
Referenced by GHOST_SystemSDL::createOffscreenContext(), and GHOST_WindowSDL::newDrawingContext().
|
override |
|
overridevirtual |
Activates the drawing context of this window.
Implements GHOST_Context.
Definition at line 71 of file GHOST_ContextSDL.cc.
References GHOST_Context::active_context_, GHOST_kFailure, and GHOST_kSuccess.
|
overridevirtual |
Gets the current swap interval for #swapBuffers.
| interval_out | Variable to store the swap interval if it can be read. |
Reimplemented from GHOST_Context.
Definition at line 170 of file GHOST_ContextSDL.cc.
References GHOST_kFailure, and GHOST_kSuccess.
|
overridevirtual |
Call immediately after new to initialize. If this fails then immediately delete the object.
Implements GHOST_Context.
Definition at line 90 of file GHOST_ContextSDL.cc.
References GHOST_Context::active_context_, GHOST_Context::context_params_, GHOST_Context::getVSync(), GHOST_kFailure, GHOST_kSuccess, GHOST_kVSyncModeUnset, GHOST_ContextParams::is_stereo_visual, and setSwapInterval().
|
overridevirtual |
Release the drawing context of the calling thread.
Implements GHOST_Context.
Definition at line 80 of file GHOST_ContextSDL.cc.
References GHOST_Context::active_context_, GHOST_kFailure, and GHOST_kSuccess.
|
overridevirtual |
Removes references to native handles from this context and then returns
Implements GHOST_Context.
Definition at line 155 of file GHOST_ContextSDL.cc.
References GHOST_kSuccess.
|
overridevirtual |
Sets the swap interval for #swapBuffers.
| interval | The swap interval to use. |
Reimplemented from GHOST_Context.
Definition at line 162 of file GHOST_ContextSDL.cc.
References GHOST_kFailure, and GHOST_kSuccess.
Referenced by initializeDrawingContext().
|
inlineoverridevirtual |
Implements GHOST_Context.
Definition at line 46 of file GHOST_ContextSDL.hh.
References GHOST_kSuccess.
|
overridevirtual |
Swaps front and back buffers of a window.
Implements GHOST_Context.
Definition at line 64 of file GHOST_ContextSDL.cc.
References GHOST_kSuccess.