|
Blender V5.0
|
#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 | |
| GHOST_ContextParams | context_params_ |
| void * | user_data_ = nullptr |
| Static Protected Attributes inherited from GHOST_Context | |
| static GHOST_Context * | active_context_ |
Definition at line 24 of file GHOST_ContextGLX.hh.
| GHOST_ContextGLX::GHOST_ContextGLX | ( | const GHOST_ContextParams & | context_params, |
| Window | window, | ||
| Display * | display, | ||
| GLXFBConfig | fbconfig, | ||
| int | contextProfileMask, | ||
| int | contextMajorVersion, | ||
| int | contextMinorVersion, | ||
| int | contextFlags, | ||
| int | contextResetNotificationStrategy ) |
Constructor.
Definition at line 31 of file GHOST_ContextGLX.cc.
References assert, Display, GHOST_Context::GHOST_Context(), and Window.
|
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.
| interval_out | Variable to store the swap interval if it can be read. |
Reimplemented from GHOST_Context.
Definition at line 331 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_Context::context_params_, GHOST_Context::getVSync(), GHOST_kFailure, GHOST_kSuccess, GHOST_kVSyncModeUnset, GHOST_X11_ERROR_HANDLERS_OVERRIDE, GHOST_X11_ERROR_HANDLERS_RESTORE, GHOST_X11_GL_GetAttributes(), i, None, setSwapInterval(), 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 315 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 322 of file GHOST_ContextGLX.cc.
References GHOST_kFailure, and GHOST_kSuccess.
Referenced by initializeDrawingContext().
|
inlineoverridevirtual |
Implements GHOST_Context.
Definition at line 48 of file GHOST_ContextGLX.hh.
References 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.
References Display, GHOST_XrGraphicsBindingOpenGL, and Window.
Referenced by GHOST_XrGraphicsBindingOpenGL.