|
Blender V5.0
|
#include <GHOST_ContextWGL.hh>
Inherits GHOST_Context.
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 | |
| GHOST_ContextParams | context_params_ |
| void * | 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 | ( | const GHOST_ContextParams & | context_params, |
| 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.
|
override |
|
overridevirtual |
Activates the drawing context of this window.
Implements GHOST_Context.
Definition at line 112 of file GHOST_ContextWGL.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 101 of file GHOST_ContextWGL.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 500 of file GHOST_ContextWGL.cc.
References GHOST_Context::active_context_, choose_pixel_format_legacy(), GHOST_Context::context_params_, error(), GHOST_Context::getVSync(), GHOST_kFailure, GHOST_kSuccess, GHOST_kVSyncModeUnset, 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(), DummyContextWGL::preferredPFD, reportContextString(), and setSwapInterval().
|
overridevirtual |
Release the drawing context of the calling thread.
Implements GHOST_Context.
Definition at line 123 of file GHOST_ContextWGL.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 669 of file GHOST_ContextWGL.cc.
References GHOST_kFailure, and GHOST_kSuccess.
|
overridevirtual |
Sets the swap interval for #swapBuffers.
| interval | The swap interval to use. |
Reimplemented from GHOST_Context.
Definition at line 91 of file GHOST_ContextWGL.cc.
References GHOST_kFailure, and GHOST_kSuccess.
Referenced by initializeDrawingContext().
|
inlineoverridevirtual |
Implements GHOST_Context.
Definition at line 43 of file GHOST_ContextWGL.hh.
References GHOST_kSuccess.
|
overridevirtual |
Swaps front and back buffers of a window.
Implements GHOST_Context.
Definition at line 86 of file GHOST_ContextWGL.cc.
References GHOST_kFailure, and GHOST_kSuccess.
|
friend |
Definition at line 21 of file GHOST_ContextWGL.hh.
References GHOST_XrGraphicsBindingOpenGL.
Referenced by GHOST_XrGraphicsBindingOpenGL.