Blender
V3.3
|
#include <GHOST_ContextGLX.h>
Public Member Functions | |
GHOST_ContextGLX (bool stereoVisual, Window window, Display *display, GLXFBConfig fbconfig, int contextProfileMask, int contextMajorVersion, int contextMinorVersion, int contextFlags, int contextResetNotificationStrategy) | |
~GHOST_ContextGLX () | |
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) |
![]() | |
GHOST_Context (bool stereoVisual) | |
virtual | ~GHOST_Context () |
virtual GHOST_TSuccess | updateDrawingContext () |
void * | getUserData () |
void | setUserData (void *user_data) |
bool | isStereoVisual () const |
virtual bool | isUpsideDown () const |
virtual unsigned int | getDefaultFramebuffer () |
![]() | |
virtual | ~GHOST_IContext () |
Friends | |
class | GHOST_XrGraphicsBindingOpenGL |
Additional Inherited Members | |
![]() | |
void | initContextGLEW () |
![]() | |
static void | initClearGL () |
![]() | |
bool | m_stereoVisual |
void * | m_user_data = nullptr |
Definition at line 23 of file GHOST_ContextGLX.h.
GHOST_ContextGLX::~GHOST_ContextGLX | ( | ) |
|
virtual |
Activates the drawing context of this window.
Implements GHOST_Context.
Definition at line 82 of file GHOST_ContextGLX.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 328 of file GHOST_ContextGLX.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 103 of file GHOST_ContextGLX.cpp.
References _glewSearchExtension(), _glewStrLen(), GHOST_kFailure, GHOST_kSuccess, GHOST_X11_ERROR_HANDLERS_OVERRIDE, GHOST_X11_ERROR_HANDLERS_RESTORE, GHOST_X11_GL_GetAttributes(), GHOST_Context::initClearGL(), GHOST_Context::m_stereoVisual, and None.
|
virtual |
Release the drawing context of the calling thread.
Implements GHOST_Context.
Definition at line 90 of file GHOST_ContextGLX.cpp.
References GHOST_kFailure, GHOST_kSuccess, and None.
|
virtual |
Removes references to native handles from this context and then returns
Implements GHOST_Context.
Definition at line 312 of file GHOST_ContextGLX.cpp.
References GHOST_kSuccess.
|
virtual |
Sets the swap interval for swapBuffers.
interval | The swap interval to use. |
Reimplemented from GHOST_Context.
Definition at line 319 of file GHOST_ContextGLX.cpp.
References GHOST_kFailure, and GHOST_kSuccess.
|
virtual |
Swaps front and back buffers of a window.
Implements GHOST_Context.
Definition at line 75 of file GHOST_ContextGLX.cpp.
References GHOST_kSuccess.
|
friend |
Definition at line 25 of file GHOST_ContextGLX.h.