|
Blender V4.3
|
#include <GHOST_ContextGLX.hh>
Inherits GHOST_Context.
Friends | |
| class | GHOST_XrGraphicsBindingOpenGL |
Additional Inherited Members | |
Protected Attributes inherited from GHOST_Context | |
| bool | m_stereoVisual |
| void * | m_user_data = nullptr |
Definition at line 24 of file GHOST_ContextGLX.hh.
| GHOST_ContextGLX::GHOST_ContextGLX | ( | bool | stereoVisual, |
| 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.
|
override |
|
overridevirtual |
Activates the drawing context of this window.
Implements GHOST_Context.
Definition at line 83 of file GHOST_ContextGLX.cc.
References 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 318 of file GHOST_ContextGLX.cc.
References GHOST_kFailure, GHOST_kSuccess, and int.
|
overridevirtual |
Call immediately after new to initialize. If this fails then immediately delete the object.
Implements GHOST_Context.
Definition at line 99 of file GHOST_ContextGLX.cc.
References _glewSearchExtension(), _glewStrLen(), 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 91 of file GHOST_ContextGLX.cc.
References GHOST_kFailure, GHOST_kSuccess, and None.
|
overridevirtual |
Removes references to native handles from this context and then returns
Implements GHOST_Context.
Definition at line 302 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 309 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.