![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
GL Context. More...
#include <FXGLContext.h>
Public Member Functions | |
| FXGLContext (FXApp *a, FXGLVisual *vis, FXGLContext *shr=nullptr) | |
| Construct an GLContext with given GL Visual. More... | |
| virtual void | create () |
| Create context. | |
| virtual void | detach () |
| Detach context. | |
| virtual void | destroy () |
| Destroy context. | |
| void | setVisual (FXGLVisual *vis) |
| Change visual. | |
| FXGLVisual * | getVisual () const |
| Get the visual. | |
| void | setShared (FXGLContext *ctx) |
| Change share context. | |
| FXGLContext * | getShared () const |
| Get share context. | |
| FXDrawable * | drawable () 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. | |
Public Member Functions inherited from FX::FXId | |
| FXApp * | getApp () const |
| Get application. | |
| FXID | id () const |
| Get XID handle. | |
| void | setUserData (FXptr ptr) |
| Set user data pointer. | |
| FXptr | getUserData () const |
| Get user data pointer. | |
| virtual | ~FXId () |
| Destructor. | |
Public Member Functions inherited from FX::FXObject | |
| const FXchar * | getClassName () const |
| Get class name of some object. | |
| FXbool | isMemberOf (const FXMetaClass *metaclass) const |
| Check if object is member of metaclass. | |
| virtual long | tryHandle (FXObject *sender, FXSelector sel, void *ptr) |
| Try handle message safely, catching certain exceptions. | |
| virtual long | onDefault (FXObject *, FXSelector, void *) |
| Called for unhandled messages. | |
| virtual | ~FXObject () |
| Virtual destructor. | |
Static Public Member Functions | |
| static FXbool | hasCurrent () |
| Return true if thread has ANY current context. | |
Additional Inherited Members | |
Protected Member Functions inherited from FX::FXId | |
| FXId (FXApp *a) | |
Protected Attributes inherited from FX::FXId | |
| FXID | xid |
GL Context.
| FX::FXGLContext::FXGLContext | ( | FXApp * | a, |
| FXGLVisual * | vis, | ||
| FXGLContext * | shr = nullptr |
||
| ) |
Construct an GLContext with given GL Visual.
Optionally share GL objects (textures, etc) with another GLContext shr.
|
|