Inviwo 0.9.12-pre
Inviwo documentation
|
Keeper of the default render context. More...
#include <rendercontext.h>
Public Member Functions | |
ContextHolder * | getDefaultRenderContext () |
bool | hasDefaultRenderContext () const |
ContextHolder * | setDefaultRenderContext (Canvas *canvas) |
ContextHolder * | setDefaultRenderContext (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 > | |
Singleton (const Singleton &)=delete | |
void | operator= (const Singleton &)=delete |
Additional Inherited Members | |
Static Public Member Functions inherited from inviwo::Singleton< RenderContext > | |
static void | init () |
static void | init (RenderContext *instance) |
static RenderContext * | getPtr () |
static void | deleteInstance () |
static bool | isInitialized () |
Keeper of the default render context.