FX::FXGLContext Class Reference

#include <FXGLContext.h>

Inheritance diagram for FX::FXGLContext:

FX::FXId FX::FXObject List of all members.

Detailed Description

A GL context is an object representing the OpenGL state information. Multiple GL context may share display lists to conserve memory. When drawing multiple windows, it may be advantageous to share not only display lists, but also GL contexts. Since the GL context is created for a certain frame-buffer configuration, sharing of GL contexts is only possible if the windows sharing the GL context all have the same GL visual. However, display lists may be shared between different GL contexts.

Definition at line 50 of file FXGLContext.h.

Public Member Functions

 FXGLContext (FXApp *a, FXGLVisual *vis)
 FXGLContext (FXApp *a, FXGLVisual *vis, FXGLContext *shared)
FXbool isShared () const
FXGLVisualgetVisual () const
virtual void create ()
virtual void detach ()
virtual void destroy ()
FXbool begin (FXDrawable *drawable)
FXbool end ()
void swapBuffers ()
void swapSubBuffers (FXint x, FXint y, FXint w, FXint h)
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXGLContext ()
FXAppgetApp () const
FXEventLoopgetEventLoop () const
FXID id () const
void setUserData (void *ptr)
void * getUserData () const
virtual long onDefault (FXObject *, FXSelector, void *)
const FXchargetClassName () const
bool isMemberOf (const FXMetaClass *metaclass) const
virtual long tryHandle (FXObject *sender, FXSelector sel, void *ptr)
QTransString tr (const char *text, const char *hint=0)
virtual void * getPythonObject () const
virtual void decouplePythonObject () const

Protected Member Functions

 FXGLContext ()

Protected Attributes

void * ctx
FXID xid


The documentation for this class was generated from the following file:
(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:34:03 2009 for TnFOX by doxygen v1.4.7