|
Blender
V2.93
|
#include <GHOST_ContextCGL.h>
Inherits GHOST_Context.
Public Member Functions | |
| GHOST_ContextCGL (bool stereoVisual, NSView *metalView, CAMetalLayer *metalLayer, NSOpenGLView *openglView) | |
| ~GHOST_ContextCGL () | |
| GHOST_TSuccess | swapBuffers () |
| GHOST_TSuccess | activateDrawingContext () |
| GHOST_TSuccess | releaseDrawingContext () |
| unsigned int | getDefaultFramebuffer () |
| GHOST_TSuccess | initializeDrawingContext () |
| GHOST_TSuccess | releaseNativeHandles () |
| GHOST_TSuccess | setSwapInterval (int interval) |
| GHOST_TSuccess | getSwapInterval (int &) |
| GHOST_TSuccess | updateDrawingContext () |
Public Member Functions inherited from GHOST_Context | |
| GHOST_Context (bool stereoVisual) | |
| virtual | ~GHOST_Context () |
| bool | isStereoVisual () const |
| virtual bool | isUpsideDown () const |
Public Member Functions inherited from GHOST_IContext | |
| virtual | ~GHOST_IContext () |
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 |
Definition at line 36 of file GHOST_ContextCGL.h.
| GHOST_ContextCGL::GHOST_ContextCGL | ( | bool | stereoVisual, |
| NSView * | metalView, | ||
| CAMetalLayer * | metalLayer, | ||
| NSOpenGLView * | openglView | ||
| ) |
Constructor.
Definition at line 56 of file GHOST_ContextCGL.mm.
| GHOST_ContextCGL::~GHOST_ContextCGL | ( | ) |
Destructor.
Definition at line 82 of file GHOST_ContextCGL.mm.
|
virtual |
Activates the drawing context of this window.
Implements GHOST_Context.
Definition at line 159 of file GHOST_ContextCGL.mm.
References GHOST_kFailure, GHOST_kSuccess, init, and blender::compositor::pool.
|
virtual |
Gets the OpenGL frame-buffer associated with the OpenGL context
Reimplemented from GHOST_Context.
Definition at line 185 of file GHOST_ContextCGL.mm.
|
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 139 of file GHOST_ContextCGL.mm.
References GHOST_kFailure, GHOST_kSuccess, init, and blender::compositor::pool.
|
virtual |
Call immediately after new to initialize. If this fails then immediately delete the object.
Implements GHOST_Context.
Definition at line 243 of file GHOST_ContextCGL.mm.
References error(), GHOST_kFailure, GHOST_kSuccess, init, GHOST_Context::initClearGL(), GHOST_Context::initContextGLEW(), GHOST_Context::m_stereoVisual, makeAttribList(), and blender::compositor::pool.
|
virtual |
Release the drawing context of the calling thread.
Implements GHOST_Context.
Definition at line 172 of file GHOST_ContextCGL.mm.
References GHOST_kFailure, GHOST_kSuccess, init, and blender::compositor::pool.
|
virtual |
Removes references to native handles from this context and then returns
Implements GHOST_Context.
Definition at line 322 of file GHOST_ContextCGL.mm.
References GHOST_kSuccess.
|
virtual |
Sets the swap interval for swapBuffers.
| interval | The swap interval to use. |
Reimplemented from GHOST_Context.
Definition at line 126 of file GHOST_ContextCGL.mm.
References GHOST_kFailure, GHOST_kSuccess, init, and blender::compositor::pool.
|
virtual |
Swaps front and back buffers of a window.
Implements GHOST_Context.
Definition at line 108 of file GHOST_ContextCGL.mm.
References GHOST_kFailure, GHOST_kSuccess, init, and blender::compositor::pool.
|
virtual |
Updates the drawing context of this window. Needed whenever the window is changed.
Reimplemented from GHOST_Context.
Definition at line 190 of file GHOST_ContextCGL.mm.
References GHOST_kFailure, GHOST_kSuccess, init, blender::compositor::pool, and update().