#include <FXGLContext.h>
Public Member Functions | |
FXGLContext (FXApp *a, FXGLVisual *vis) | |
FXGLContext (FXApp *a, FXGLVisual *vis, FXGLContext *shared) | |
FXbool | isShared () const |
FXGLVisual * | getVisual () 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 () |
FXApp * | getApp () const |
FXEventLoop * | getEventLoop () const |
FXID | id () const |
void | setUserData (void *ptr) |
void * | getUserData () const |
virtual long | onDefault (FXObject *, FXSelector, void *) |
const FXchar * | getClassName () 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 Attributes | |
void * | ctx |
FXID | xid |
FX::FXGLContext::FXGLContext | ( | FXApp * | a, | |
FXGLVisual * | vis | |||
) |
Construct an OpenGL context with its own private display list.
FX::FXGLContext::FXGLContext | ( | FXApp * | a, | |
FXGLVisual * | vis, | |||
FXGLContext * | shared | |||
) |
Construct an OpenGL context sharing display lists with an existing GL context.
virtual FX::FXGLContext::~FXGLContext | ( | ) | [virtual] |
Destructor.
FXbool FX::FXGLContext::isShared | ( | ) | const |
Return TRUE if it is sharing display lists.
FXGLVisual* FX::FXGLContext::getVisual | ( | ) | const [inline] |
Get the visual.
virtual void FX::FXGLContext::create | ( | ) | [virtual] |
virtual void FX::FXGLContext::detach | ( | ) | [virtual] |
virtual void FX::FXGLContext::destroy | ( | ) | [virtual] |
FXbool FX::FXGLContext::begin | ( | FXDrawable * | drawable | ) |
Make OpenGL context current prior to performing OpenGL commands.
FXbool FX::FXGLContext::end | ( | ) |
Make OpenGL context non current.
void FX::FXGLContext::swapBuffers | ( | ) |
Swap front and back buffer.
void FX::FXGLContext::swapSubBuffers | ( | FXint | x, | |
FXint | y, | |||
FXint | w, | |||
FXint | h | |||
) |
Copy part of backbuffer to front buffer [Mesa].
virtual void FX::FXGLContext::save | ( | FXStream & | store | ) | const [virtual] |
virtual void FX::FXGLContext::load | ( | FXStream & | store | ) | [virtual] |
FXApp* FX::FXId::getApp | ( | ) | const [inline, inherited] |
Get application.
FXEventLoop* FX::FXId::getEventLoop | ( | ) | const [inline, inherited] |
Get event loop which owns this.
FXID FX::FXId::id | ( | ) | const [inline, inherited] |
Get XID handle.
void FX::FXId::setUserData | ( | void * | ptr | ) | [inline, inherited] |
Set user data pointer.
void* FX::FXId::getUserData | ( | ) | const [inline, inherited] |
Get user data pointer.
virtual long FX::FXObject::onDefault | ( | FXObject * | , | |
FXSelector | , | |||
void * | ||||
) | [virtual, inherited] |
Called for unhandled messages.
Reimplemented in FX::FXDelegator, FX::FXGLViewer, FX::FXMDIChild, and FX::FXMDIClient.
const FXchar* FX::FXObject::getClassName | ( | ) | const [inherited] |
Get class name of some object.
bool FX::FXObject::isMemberOf | ( | const FXMetaClass * | metaclass | ) | const [inherited] |
Check if object is member of metaclass.
virtual long FX::FXObject::tryHandle | ( | FXObject * | sender, | |
FXSelector | sel, | |||
void * | ptr | |||
) | [virtual, inherited] |
Try handle message safely.
QTransString FX::FXObject::tr | ( | const char * | text, | |
const char * | hint = 0 | |||
) | [inherited] |
Returns a human translated version of the text to the locale language (warning: uses a virtual method call, so can't use before construction)
virtual void* FX::FXObject::getPythonObject | ( | ) | const [inline, virtual, inherited] |
Returns the python object representing this instance (if created in python).
virtual void FX::FXObject::decouplePythonObject | ( | ) | const [inline, virtual, inherited] |
Causes decoupling of python object from this object (deletes self).