Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::RenderContext Class Reference

Keeper of the default render context. More...

#include <rendercontext.h>

Inheritance diagram for inviwo::RenderContext:

Public Member Functions

ContextHoldergetDefaultRenderContext ()
bool hasDefaultRenderContext () const
ContextHoldersetDefaultRenderContext (Canvas *canvas)
ContextHoldersetDefaultRenderContext (std::unique_ptr< ContextHolder > context)
void activateDefaultRenderContext () const
 Activate the default Inviwo render context. Should only be called from the main GUI thread.
void activateLocalRenderContext () const
 Activate the thread local Inviwo render context. Will activate the inviwo render context associated with the calling thread.
Canvas::ContextID activeContext () const
void clearContext ()
void registerContext (Canvas::ContextID id, std::string_view name, std::unique_ptr< ContextHolder > context)
void unRegisterContext (Canvas::ContextID id)
std::string getContextName (Canvas::ContextID id) const
void setContextName (Canvas::ContextID id, std::string_view name)
std::thread::id getContextThreadId (Canvas::ContextID id) const
void setContextThreadId (Canvas::ContextID id, std::thread::id)
template<typename C>
void forEachContext (C callback)
Public Member Functions inherited from inviwo::Singleton< RenderContext >
void operator= (const Singleton &)=delete

Additional Inherited Members

Static Public Member Functions inherited from inviwo::Singleton< RenderContext >
static void init ()
static RenderContextgetPtr ()
static void deleteInstance ()
static bool isInitialized ()

Detailed Description

Keeper of the default render context.


The documentation for this class was generated from the following file:
  • rendercontext.h