|
Blender V5.0
|
#include <GHOST_IContext.hh>
Inherited by GHOST_Context.
Public Member Functions | |
| virtual | ~GHOST_IContext ()=default |
| virtual GHOST_TSuccess | activateDrawingContext ()=0 |
| virtual GHOST_TSuccess | releaseDrawingContext ()=0 |
| virtual unsigned int | getDefaultFramebuffer ()=0 |
| virtual GHOST_TSuccess | swapBufferAcquire ()=0 |
| virtual GHOST_TSuccess | swapBufferRelease ()=0 |
Static Public Member Functions | |
| static GHOST_IContext * | getActiveDrawingContext () |
Interface for GHOST context.
You can create a off-screen context (windowless) with the system's GHOST_ISystem::createOffscreenContext method.
Definition at line 25 of file GHOST_IContext.hh.
|
virtualdefault |
Destructor.
|
pure virtual |
Activates the drawing context.
Implemented in GHOST_Context, GHOST_ContextD3D, GHOST_ContextEGL, GHOST_ContextGLX, GHOST_ContextMTL, GHOST_ContextNone, GHOST_ContextSDL, GHOST_ContextVK, and GHOST_ContextWGL.
|
static |
Returns the thread's currently active drawing context.
Definition at line 32 of file GHOST_Context.cc.
References GHOST_Context::getActiveDrawingContext().
Referenced by GHOST_GetActiveGPUContext().
|
pure virtual |
Gets the OpenGL frame-buffer associated with the OpenGL context
Implemented in GHOST_Context, GHOST_ContextD3D, and GHOST_ContextMTL.
|
pure virtual |
Release the drawing context of the calling thread.
Implemented in GHOST_Context, GHOST_ContextD3D, GHOST_ContextEGL, GHOST_ContextGLX, GHOST_ContextMTL, GHOST_ContextNone, GHOST_ContextSDL, GHOST_ContextVK, and GHOST_ContextWGL.
|
pure virtual |
Acquire next buffer for drawing.
Implemented in GHOST_Context, GHOST_ContextD3D, GHOST_ContextEGL, GHOST_ContextGLX, GHOST_ContextMTL, GHOST_ContextNone, GHOST_ContextSDL, GHOST_ContextVK, and GHOST_ContextWGL.
|
pure virtual |
Swaps front and back buffers of a window.
Implemented in GHOST_Context, GHOST_ContextD3D, GHOST_ContextEGL, GHOST_ContextGLX, GHOST_ContextMTL, GHOST_ContextNone, GHOST_ContextSDL, GHOST_ContextVK, and GHOST_ContextWGL.