MeVisLab Toolbox Reference
macos::GLContext Class Reference

OpenGL context management. More...

#include <macOpenGL.h>

Public Types

typedef CGLContextObj GLCtx
 OpenGL context structure. More...
 

Static Public Member Functions

static GLCtx create ()
 Returns new context or 0 in case of an error. More...
 
static void destroy (GLCtx &ctx)
 destroys given context More...
 
static void activate (GLCtx &ctx)
 Make given context current. More...
 
static GLCtx current ()
 Return currently active context. More...
 

Detailed Description

OpenGL context management.

Definition at line 26 of file macOpenGL.h.

Member Typedef Documentation

◆ GLCtx

typedef CGLContextObj macos::GLContext::GLCtx

OpenGL context structure.

Definition at line 31 of file macOpenGL.h.

Member Function Documentation

◆ activate()

static void macos::GLContext::activate ( GLCtx ctx)
static

Make given context current.

◆ create()

static GLCtx macos::GLContext::create ( )
static

Returns new context or 0 in case of an error.

◆ current()

static GLCtx macos::GLContext::current ( )
static

Return currently active context.

◆ destroy()

static void macos::GLContext::destroy ( GLCtx ctx)
static

destroys given context


The documentation for this class was generated from the following file: