|
Blender V4.5
|
#include <GHOST_ContextWGL.hh>
Inherits GHOST_Context.
Public Member Functions | |
| GHOST_ContextWGL (bool stereoVisual, bool alphaBackground, HWND hWnd, HDC hDC, int contextProfileMask, int contextMajorVersion, int contextMinorVersion, int contextFlags, int contextResetNotificationStrategy) | |
| ~GHOST_ContextWGL () override | |
| GHOST_TSuccess | swapBuffers () 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 &intervalOut) override |
| Public Member Functions inherited from GHOST_Context | |
| GHOST_Context (bool stereoVisual) | |
| ~GHOST_Context () override | |
| virtual GHOST_TSuccess | updateDrawingContext () |
| void * | getUserData () |
| void | setUserData (void *user_data) |
| bool | isStereoVisual () const |
| virtual bool | isUpsideDown () const |
| unsigned int | getDefaultFramebuffer () override |
| Public Member Functions inherited from GHOST_IContext | |
| virtual | ~GHOST_IContext ()=default |
Friends | |
| class | GHOST_XrGraphicsBindingOpenGL |
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 | |
| bool | m_stereoVisual |
| void * | m_user_data = nullptr |
| Static Protected Attributes inherited from GHOST_Context | |
| static GHOST_Context * | active_context_ |
Definition at line 19 of file GHOST_ContextWGL.hh.
| GHOST_ContextWGL::GHOST_ContextWGL | ( | bool | stereoVisual, |
| bool | alphaBackground, | ||
| HWND | hWnd, | ||
| HDC | hDC, | ||
| int | contextProfileMask, | ||
| int | contextMajorVersion, | ||
| int | contextMinorVersion, | ||
| int | contextFlags, | ||
| int | contextResetNotificationStrategy ) |
Constructor.
Definition at line 28 of file GHOST_ContextWGL.cc.
References assert, GHOST_Context::GHOST_Context(), and nullptr.
Referenced by GHOST_SystemWin32::createOffscreenContext(), and GHOST_XrGraphicsBindingOpenGL.
|
override |
|
overridevirtual |
Activates the drawing context of this window.
Implements GHOST_Context.
Definition at line 111 of file GHOST_ContextWGL.cc.
References GHOST_Context::active_context_, GHOST_kFailure, and GHOST_kSuccess.
Referenced by GHOST_XrGraphicsBindingOpenGL.
|
overridevirtual |
Gets the current swap interval for swapBuffers.
| intervalOut | Variable to store the swap interval if it can be read. |
Reimplemented from GHOST_Context.
Definition at line 100 of file GHOST_ContextWGL.cc.
References GHOST_kFailure, and GHOST_kSuccess.
Referenced by GHOST_XrGraphicsBindingOpenGL.
|
overridevirtual |
Call immediately after new to initialize. If this fails then immediately delete the object.
Implements GHOST_Context.
Definition at line 496 of file GHOST_ContextWGL.cc.
References GHOST_Context::active_context_, choose_pixel_format_legacy(), GHOST_kFailure, GHOST_kSuccess, DummyContextWGL::has_WGL_ARB_create_context, DummyContextWGL::has_WGL_ARB_create_context_profile, DummyContextWGL::has_WGL_ARB_create_context_robustness, DummyContextWGL::has_WGL_ARB_pixel_format, is_crappy_intel_card(), GHOST_Context::m_stereoVisual, DummyContextWGL::preferredPFD, and reportContextString().
Referenced by GHOST_XrGraphicsBindingOpenGL.
|
overridevirtual |
Release the drawing context of the calling thread.
Implements GHOST_Context.
Definition at line 122 of file GHOST_ContextWGL.cc.
References GHOST_Context::active_context_, GHOST_kFailure, and GHOST_kSuccess.
Referenced by GHOST_XrGraphicsBindingOpenGL.
|
overridevirtual |
Removes references to native handles from this context and then returns
Implements GHOST_Context.
Definition at line 657 of file GHOST_ContextWGL.cc.
References GHOST_kFailure, and GHOST_kSuccess.
Referenced by GHOST_XrGraphicsBindingOpenGL.
|
overridevirtual |
Sets the swap interval for swapBuffers.
| interval | The swap interval to use. |
Reimplemented from GHOST_Context.
Definition at line 90 of file GHOST_ContextWGL.cc.
References GHOST_kFailure, and GHOST_kSuccess.
Referenced by GHOST_XrGraphicsBindingOpenGL.
|
overridevirtual |
Swaps front and back buffers of a window.
Implements GHOST_Context.
Definition at line 85 of file GHOST_ContextWGL.cc.
References GHOST_kFailure, and GHOST_kSuccess.
Referenced by GHOST_XrGraphicsBindingOpenGL.
|
friend |
Definition at line 21 of file GHOST_ContextWGL.hh.
References activateDrawingContext(), getSwapInterval(), GHOST_ContextWGL(), GHOST_XrGraphicsBindingOpenGL, initializeDrawingContext(), releaseDrawingContext(), releaseNativeHandles(), setSwapInterval(), and swapBuffers().
Referenced by GHOST_XrGraphicsBindingOpenGL.