|
Blender V4.3
|
#include <GHOST_ContextEGL.hh>
Inherits GHOST_Context.
Public Member Functions | |
| GHOST_ContextEGL (const GHOST_System *const system, bool stereoVisual, EGLNativeWindowType nativeWindow, EGLNativeDisplayType nativeDisplay, EGLint contextProfileMask, EGLint contextMajorVersion, EGLint contextMinorVersion, EGLint contextFlags, EGLint contextResetNotificationStrategy, EGLenum api) | |
| ~GHOST_ContextEGL () override | |
| GHOST_TSuccess | swapBuffers () override |
| GHOST_TSuccess | activateDrawingContext () override |
| GHOST_TSuccess | releaseDrawingContext () override |
| GHOST_TSuccess | initializeDrawingContext () override |
| GHOST_TSuccess | releaseNativeHandles () override |
| GHOST_TSuccess | setSwapInterval (int interval) override |
| GHOST_TSuccess | getSwapInterval (int &intervalOut) override |
| EGLDisplay | getDisplay () const |
| EGLConfig | getConfig () const |
| EGLContext | getContext () const |
Public Member Functions inherited from GHOST_Context | |
| 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 () override |
Public Member Functions inherited from GHOST_IContext | |
| virtual | ~GHOST_IContext () |
Friends | |
| class | GHOST_XrGraphicsBindingOpenGL |
Additional Inherited Members | |
Protected Attributes inherited from GHOST_Context | |
| bool | m_stereoVisual |
| void * | m_user_data = nullptr |
Definition at line 29 of file GHOST_ContextEGL.hh.
| GHOST_ContextEGL::GHOST_ContextEGL | ( | const GHOST_System *const | system, |
| bool | stereoVisual, | ||
| EGLNativeWindowType | nativeWindow, | ||
| EGLNativeDisplayType | nativeDisplay, | ||
| EGLint | contextProfileMask, | ||
| EGLint | contextMajorVersion, | ||
| EGLint | contextMinorVersion, | ||
| EGLint | contextFlags, | ||
| EGLint | contextResetNotificationStrategy, | ||
| EGLenum | api ) |
Constructor.
Definition at line 189 of file GHOST_ContextEGL.cc.
|
override |
|
overridevirtual |
Activates the drawing context of this window.
Implements GHOST_Context.
Definition at line 291 of file GHOST_ContextEGL.cc.
References EGL_CHK, GHOST_kFailure, and GHOST_kSuccess.
| EGLConfig GHOST_ContextEGL::getConfig | ( | ) | const |
Definition at line 281 of file GHOST_ContextEGL.cc.
Referenced by GHOST_XrGraphicsBindingOpenGL::initFromGhostContext().
| EGLContext GHOST_ContextEGL::getContext | ( | ) | const |
Definition at line 286 of file GHOST_ContextEGL.cc.
Referenced by GHOST_XrGraphicsBindingOpenGL::initFromGhostContext().
| EGLDisplay GHOST_ContextEGL::getDisplay | ( | ) | const |
Definition at line 276 of file GHOST_ContextEGL.cc.
Referenced by GHOST_XrGraphicsBindingOpenGL::initFromGhostContext().
|
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 267 of file GHOST_ContextEGL.cc.
References GHOST_kSuccess.
|
overridevirtual |
Call immediately after new to initialize. If this fails then immediately delete the object.
Implements GHOST_Context.
Definition at line 331 of file GHOST_ContextEGL.cc.
References api_string(), EGL_CHK, egl_print_error(), error(), GHOST_kFailure, GHOST_kSuccess, and GHOST_Context::m_stereoVisual.
|
overridevirtual |
Release the drawing context of the calling thread.
Implements GHOST_Context.
Definition at line 301 of file GHOST_ContextEGL.cc.
References EGL_CHK, GHOST_kFailure, and GHOST_kSuccess.
|
overridevirtual |
Removes references to native handles from this context and then returns
Implements GHOST_Context.
Definition at line 640 of file GHOST_ContextEGL.cc.
References GHOST_kSuccess.
|
overridevirtual |
Sets the swap interval for swapBuffers.
| interval | The swap interval to use. |
Reimplemented from GHOST_Context.
Definition at line 254 of file GHOST_ContextEGL.cc.
References EGL_CHK, GHOST_kFailure, and GHOST_kSuccess.
|
overridevirtual |
Swaps front and back buffers of a window.
Implements GHOST_Context.
Definition at line 249 of file GHOST_ContextEGL.cc.
References EGL_CHK, GHOST_kFailure, and GHOST_kSuccess.
|
friend |
Definition at line 31 of file GHOST_ContextEGL.hh.