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

Keeper of the default render context. More...

#include <inviwo/core/util/rendercontext.h>

Inheritance diagram for inviwo::RenderContext:

Public Member Functions

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 ()
template<typename C>
void forEachContext (C callback)
std::string getContextName (Canvas::ContextID id) const
std::thread::id getContextThreadId (Canvas::ContextID id) const
ContextHoldergetDefaultRenderContext ()
bool hasDefaultRenderContext () const
void registerContext (Canvas::ContextID id, std::string_view name, std::unique_ptr< ContextHolder > context)
void setContextName (Canvas::ContextID id, std::string_view name)
void setContextThreadId (Canvas::ContextID id, std::thread::id)
ContextHoldersetDefaultRenderContext (Canvas *canvas)
ContextHoldersetDefaultRenderContext (std::unique_ptr< ContextHolder > context)
void unRegisterContext (Canvas::ContextID id)
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 deleteInstance ()
static RenderContextgetPtr ()
static void init ()
static bool isInitialized ()

Detailed Description

Keeper of the default render context.


The documentation for this class was generated from the following file:
  • include/inviwo/core/util/rendercontext.h