Blender V4.3
GHOST_IContext Class Referenceabstract

#include <GHOST_IContext.hh>

Inherited by GHOST_Context.

Public Member Functions

virtual ~GHOST_IContext ()
 
virtual GHOST_TSuccess activateDrawingContext ()=0
 
virtual GHOST_TSuccess releaseDrawingContext ()=0
 
virtual unsigned int getDefaultFramebuffer ()=0
 
virtual GHOST_TSuccess swapBuffers ()=0
 

Detailed Description

Interface for GHOST context.

You can create a off-screen context (windowless) with the system's GHOST_ISystem::createOffscreenContext method.

See also
GHOST_ISystem::createOffscreenContext

Definition at line 23 of file GHOST_IContext.hh.

Constructor & Destructor Documentation

◆ ~GHOST_IContext()

virtual GHOST_IContext::~GHOST_IContext ( )
inlinevirtual

Destructor.

Definition at line 28 of file GHOST_IContext.hh.

Member Function Documentation

◆ activateDrawingContext()

virtual GHOST_TSuccess GHOST_IContext::activateDrawingContext ( )
pure virtual

Activates the drawing context.

Returns
A boolean success indicator.

Implemented in GHOST_Context, GHOST_ContextCGL, GHOST_ContextD3D, GHOST_ContextEGL, GHOST_ContextGLX, GHOST_ContextNone, GHOST_ContextSDL, GHOST_ContextVK, and GHOST_ContextWGL.

Referenced by GHOST_ActivateGPUContext().

◆ getDefaultFramebuffer()

virtual unsigned int GHOST_IContext::getDefaultFramebuffer ( )
pure virtual

◆ releaseDrawingContext()

virtual GHOST_TSuccess GHOST_IContext::releaseDrawingContext ( )
pure virtual

Release the drawing context of the calling thread.

Returns
A boolean success indicator.

Implemented in GHOST_Context, GHOST_ContextCGL, GHOST_ContextD3D, GHOST_ContextEGL, GHOST_ContextGLX, GHOST_ContextNone, GHOST_ContextSDL, GHOST_ContextVK, and GHOST_ContextWGL.

Referenced by GHOST_ReleaseGPUContext().

◆ swapBuffers()


The documentation for this class was generated from the following file: