MeVisLab Toolbox Reference
macOpenGL.h File Reference
#include <macSymbolVisibilityMacros.h>
#include <OpenGL/CGLTypes.h>

Go to the source code of this file.

Classes

class  macos::GLContext
 OpenGL context management. More...
 

Namespaces

 macos
 AppleScript support.
 

Macros

#define MACX__CREATE_AND_ACTIVATE_GLCONTEXT
 Convenience macro to create and activate an OpenGL context. More...
 
#define MACX__DESTROY_GLCONTEXT_AND_ACTIVATE_PREVIOUS
 Convenience macro to activate the previously used OpenGL context and destroy the current one. More...
 

Macro Definition Documentation

◆ MACX__CREATE_AND_ACTIVATE_GLCONTEXT

#define MACX__CREATE_AND_ACTIVATE_GLCONTEXT
Value:
CGLContextObj GLCtx
OpenGL context structure.
Definition: macOpenGL.h:31
static void activate(GLCtx &ctx)
Make given context current.
static GLCtx create()
Returns new context or 0 in case of an error.
static GLCtx current()
Return currently active context.

Convenience macro to create and activate an OpenGL context.

Definition at line 49 of file macOpenGL.h.

◆ MACX__DESTROY_GLCONTEXT_AND_ACTIVATE_PREVIOUS

#define MACX__DESTROY_GLCONTEXT_AND_ACTIVATE_PREVIOUS
Value:
static void destroy(GLCtx &ctx)
destroys given context

Convenience macro to activate the previously used OpenGL context and destroy the current one.

Definition at line 55 of file macOpenGL.h.