|
Blender
V2.93
|
#include <GHOST_ContextWGL.h>
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 () | |
| GHOST_TSuccess | swapBuffers () |
| GHOST_TSuccess | activateDrawingContext () |
| GHOST_TSuccess | releaseDrawingContext () |
| GHOST_TSuccess | initializeDrawingContext () |
| GHOST_TSuccess | releaseNativeHandles () |
| GHOST_TSuccess | setSwapInterval (int interval) |
| GHOST_TSuccess | getSwapInterval (int &intervalOut) |
Public Member Functions inherited from GHOST_Context | |
| GHOST_Context (bool stereoVisual) | |
| virtual | ~GHOST_Context () |
| virtual GHOST_TSuccess | updateDrawingContext () |
| bool | isStereoVisual () const |
| virtual bool | isUpsideDown () const |
| virtual unsigned int | getDefaultFramebuffer () |
Public Member Functions inherited from GHOST_IContext | |
| virtual | ~GHOST_IContext () |
Friends | |
| class | GHOST_XrGraphicsBindingOpenGL |
Additional Inherited Members | |
Protected Member Functions inherited from GHOST_Context | |
| void | initContextGLEW () |
Static Protected Member Functions inherited from GHOST_Context | |
| static void | initClearGL () |
Protected Attributes inherited from GHOST_Context | |
| bool | m_stereoVisual |
Definition at line 36 of file GHOST_ContextWGL.h.
| GHOST_ContextWGL::GHOST_ContextWGL | ( | bool | stereoVisual, |
| bool | alphaBackground, | ||
| HWND | hWnd, | ||
| HDC | hDC, | ||
| int | contextProfileMask, | ||
| int | contextMajorVersion, | ||
| int | contextMinorVersion, | ||
| int | contextFlags, | ||
| int | contextResetNotificationStrategy | ||
| ) |
| GHOST_ContextWGL::~GHOST_ContextWGL | ( | ) |
|
virtual |
Activates the drawing context of this window.
Implements GHOST_Context.
Definition at line 123 of file GHOST_ContextWGL.cpp.
References GHOST_kFailure, and GHOST_kSuccess.
|
virtual |
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 112 of file GHOST_ContextWGL.cpp.
References GHOST_kFailure, and GHOST_kSuccess.
|
virtual |
Call immediately after new to initialize. If this fails then immediately delete the object.
Implements GHOST_Context.
Definition at line 535 of file GHOST_ContextWGL.cpp.
References error(), GHOST_kFailure, GHOST_kSuccess, glEnable, GHOST_Context::initClearGL(), GHOST_Context::initContextGLEW(), is_crappy_intel_card(), GHOST_Context::m_stereoVisual, NULL, and reportContextString().
|
virtual |
Release the drawing context of the calling thread.
Implements GHOST_Context.
Definition at line 133 of file GHOST_ContextWGL.cpp.
References GHOST_kFailure, GHOST_kSuccess, and NULL.
|
virtual |
Removes references to native handles from this context and then returns
Implements GHOST_Context.
Definition at line 704 of file GHOST_ContextWGL.cpp.
References GHOST_kFailure, GHOST_kSuccess, and NULL.
|
virtual |
Sets the swap interval for swapBuffers.
| interval | The swap interval to use. |
Reimplemented from GHOST_Context.
Definition at line 104 of file GHOST_ContextWGL.cpp.
References GHOST_kFailure, and GHOST_kSuccess.
|
virtual |
Swaps front and back buffers of a window.
Implements GHOST_Context.
Definition at line 99 of file GHOST_ContextWGL.cpp.
References GHOST_kFailure, and GHOST_kSuccess.
|
friend |
Definition at line 38 of file GHOST_ContextWGL.h.