MeVisLabToolboxReference
macx::GLContext Class Reference

OpenGL context management. More...

#include <macOpenGL.h>

List of all members.

Public Types

typedef CGLContextObj GLCtx
 OpenGL context structure.

Static Public Member Functions

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

Detailed Description

OpenGL context management.

Definition at line 16 of file macOpenGL.h.


Member Typedef Documentation

typedef CGLContextObj macx::GLContext::GLCtx

OpenGL context structure.

Definition at line 21 of file macOpenGL.h.


Member Function Documentation

static void macx::GLContext::activate ( GLCtx ctx) [static]

Make given context current.

static GLCtx macx::GLContext::create ( ) [static]

Returns new context or 0 in case of an error.

static GLCtx macx::GLContext::createFullScreen ( ) [static]

Returns new full-screen context or 0 in case of an error.

static GLCtx macx::GLContext::current ( ) [static]

Return currently active context.

static void macx::GLContext::destroy ( GLCtx ctx) [static]

destroys given context


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