![]() |
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=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. | |
| 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. | |
Static Public Member Functions | |
| static FXbool | hasCurrent () |
| Return true if thread has ANY current context. | |
GL Context.
| 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.
|
|