Omnidome
Fulldome Mapping Software Toolkit
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Typedefs | Functions
ContextSwitch.h File Reference
#include <functional>
#include <QOpenGLContext>
Include dependency graph for ContextSwitch.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 omni
 Header to document namespaces.
 
 omni::visual
 Namespace for OpenGL visualization.
 

Typedefs

typedef std::function< void(QOpenGLFunctions &)> omni::visual::ContextFunctor
 

Functions

void omni::visual::withCurrentContext (ContextFunctor)
 Do OpenGL operations with current context, if it exists. More...
 
void omni::visual::contextSwitch (QOpenGLContext *_context, ContextFunctor f)
 
void omni::visual::primaryContextSwitch (ContextFunctor)
 Switch to primary context to create OpenGL objects like textures etc. More...