Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXGLContext Class Reference

GL Context. More...

#include <FXGLContext.h>

Inheritance diagram for FX::FXGLContext:
FX::FXId FX::FXObject

List of all members.

Public Member Functions

 FXGLContext (FXApp *a, FXGLVisual *vis, FXGLContext *shr=NULL)
 Construct an GLContext with given GL Visual.
virtual void create ()
 Create context.
virtual void detach ()
 Detach context.
virtual void destroy ()
 Destroy context.
void setVisual (FXGLVisual *vis)
 Change visual.
FXGLVisualgetVisual () const
 Get the visual.
void setShared (FXGLContext *ctx)
 Change share context.
FXGLContextgetShared () const
 Get share context.
FXDrawabledrawable () const
 Return active drawable.
FXbool begin (FXDrawable *draw)
 Make context current on drawable.
FXbool end ()
 Make context non current.
void swapBuffers ()
 Swap front and back buffer.
FXbool isCurrent () const
 Return true if THIS context is current.
FXbool isDoubleBuffer () const
 Has double buffering.
FXbool isStereo () const
 Has stereo buffering.
virtual void save (FXStream &store) const
 Save object to stream.
virtual void load (FXStream &store)
 Load object from stream.
virtual ~FXGLContext ()
 Destructor.

Static Public Member Functions

static FXbool hasCurrent ()
 Return true if thread has ANY current context.

Detailed Description

GL Context.


Constructor & Destructor Documentation

FX::FXGLContext::FXGLContext ( FXApp a,
FXGLVisual vis,
FXGLContext shr = NULL 
)

Construct an GLContext with given GL Visual.

Optionally share GL objects (textures, etc) with another GLContext shr.


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

Copyright © 1997-2011 Jeroen van der Zijp