|
Blender
V3.3
|
#include <GHOST_ContextEGL.h>
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 () | |
| 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) |
| 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 () |
Public Member Functions inherited from GHOST_IContext | |
| virtual | ~GHOST_IContext () |
Friends | |
| class | GHOST_XrGraphicsBindingOpenGL |
Additional Inherited Members | |
Protected Member Functions inherited from GHOST_Context | |
| void | initContextGLEW () |
Static Protected Member Functions inherited from GHOST_Context | |
| static void | initClearGL () |
Protected Attributes inherited from GHOST_Context | |
| bool | m_stereoVisual |
| void * | m_user_data = nullptr |
Definition at line 23 of file GHOST_ContextEGL.h.
| 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 194 of file GHOST_ContextEGL.cpp.
| GHOST_ContextEGL::~GHOST_ContextEGL | ( | ) |
|
virtual |
Activates the drawing context of this window.
Implements GHOST_Context.
Definition at line 294 of file GHOST_ContextEGL.cpp.
References bindAPI(), EGL_CHK, GHOST_kFailure, and GHOST_kSuccess.
| EGLConfig GHOST_ContextEGL::getConfig | ( | ) | const |
Definition at line 284 of file GHOST_ContextEGL.cpp.
Referenced by GHOST_XrGraphicsBindingOpenGL::initFromGhostContext().
| EGLContext GHOST_ContextEGL::getContext | ( | ) | const |
Definition at line 289 of file GHOST_ContextEGL.cpp.
Referenced by GHOST_XrGraphicsBindingOpenGL::initFromGhostContext().
| EGLDisplay GHOST_ContextEGL::getDisplay | ( | ) | const |
Definition at line 279 of file GHOST_ContextEGL.cpp.
Referenced by GHOST_XrGraphicsBindingOpenGL::initFromGhostContext().
|
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 270 of file GHOST_ContextEGL.cpp.
References GHOST_kSuccess.
|
virtual |
Call immediately after new to initialize. If this fails then immediately delete the object.
Implements GHOST_Context.
Definition at line 347 of file GHOST_ContextEGL.cpp.
References api_string(), bindAPI(), EGL_CHK, error(), GHOST_kFailure, GHOST_kSuccess, GHOST_Context::initClearGL(), GHOST_Context::initContextGLEW(), and GHOST_Context::m_stereoVisual.
|
virtual |
Release the drawing context of the calling thread.
Implements GHOST_Context.
Definition at line 304 of file GHOST_ContextEGL.cpp.
References bindAPI(), EGL_CHK, GHOST_kFailure, and GHOST_kSuccess.
|
virtual |
Removes references to native handles from this context and then returns
Implements GHOST_Context.
Definition at line 615 of file GHOST_ContextEGL.cpp.
References GHOST_kSuccess.
|
virtual |
Sets the swap interval for swapBuffers.
| interval | The swap interval to use. |
Reimplemented from GHOST_Context.
Definition at line 257 of file GHOST_ContextEGL.cpp.
References EGL_CHK, GHOST_kFailure, and GHOST_kSuccess.
|
virtual |
Swaps front and back buffers of a window.
Implements GHOST_Context.
Definition at line 252 of file GHOST_ContextEGL.cpp.
References EGL_CHK, GHOST_kFailure, and GHOST_kSuccess.
|
friend |
Definition at line 25 of file GHOST_ContextEGL.h.