|
Blender V4.5
|
#include <GHOST_ContextGLX.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 | |
| bool | m_stereoVisual |
| void * | m_user_data = nullptr |
Static Protected Attributes inherited from GHOST_Context | |
| static thread_local GHOST_Context * | active_context_ |
Definition at line 24 of file GHOST_ContextGLX.hh.
|
override |
|
overridevirtual |
Activates the drawing context of this window.
Implements GHOST_Context.
Definition at line 83 of file GHOST_ContextGLX.cc.
References GHOST_Context::active_context_, GHOST_kFailure, and GHOST_kSuccess.
|
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 321 of file GHOST_ContextGLX.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 101 of file GHOST_ContextGLX.cc.
References _glewSearchExtension(), _glewStrLen(), GHOST_Context::active_context_, GHOST_kFailure, GHOST_kSuccess, GHOST_X11_ERROR_HANDLERS_OVERRIDE, GHOST_X11_ERROR_HANDLERS_RESTORE, GHOST_X11_GL_GetAttributes(), GHOST_Context::m_stereoVisual, None, and Window.
|
overridevirtual |
Release the drawing context of the calling thread.
Implements GHOST_Context.
Definition at line 92 of file GHOST_ContextGLX.cc.
References GHOST_Context::active_context_, GHOST_kFailure, GHOST_kSuccess, and None.
|
overridevirtual |
Removes references to native handles from this context and then returns
Implements GHOST_Context.
Definition at line 305 of file GHOST_ContextGLX.cc.
References GHOST_kSuccess.
|
overridevirtual |
Sets the swap interval for swapBuffers.
| interval | The swap interval to use. |
Reimplemented from GHOST_Context.
Definition at line 312 of file GHOST_ContextGLX.cc.
References GHOST_kFailure, and GHOST_kSuccess.
|
overridevirtual |
Swaps front and back buffers of a window.
Implements GHOST_Context.
Definition at line 76 of file GHOST_ContextGLX.cc.
References GHOST_kSuccess.
|
friend |
Definition at line 26 of file GHOST_ContextGLX.hh.