![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXGLCanvas.h>
Public Member Functions | |
FXGLCanvas (FXComposite *p, FXGLVisual *vis, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0) | |
FXGLCanvas (FXComposite *p, FXGLVisual *vis, FXGLCanvas *share, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0) | |
FXGLCanvas (FXComposite *p, FXGLContext *ctx, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0) | |
void | setContext (FXGLContext *ctx, FXbool owned=false) |
FXGLContext * | getContext () const |
virtual void | create () |
virtual void | detach () |
virtual void | destroy () |
virtual FXbool | makeCurrent () |
virtual FXbool | makeNonCurrent () |
virtual FXbool | isCurrent () const |
virtual void | swapBuffers () |
FXbool | isShared () const |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXGLCanvas () |
See also:
FX::FXGLCanvas::FXGLCanvas | ( | FXComposite * | p, | |
FXGLVisual * | vis, | |||
FXObject * | tgt = NULL , |
|||
FXSelector | sel = 0 , |
|||
FXuint | opts = 0 , |
|||
FXint | x = 0 , |
|||
FXint | y = 0 , |
|||
FXint | w = 0 , |
|||
FXint | h = 0 | |||
) |
Construct a GL canvas with its private context and private display lists.
FX::FXGLCanvas::FXGLCanvas | ( | FXComposite * | p, | |
FXGLVisual * | vis, | |||
FXGLCanvas * | share, | |||
FXObject * | tgt = NULL , |
|||
FXSelector | sel = 0 , |
|||
FXuint | opts = 0 , |
|||
FXint | x = 0 , |
|||
FXint | y = 0 , |
|||
FXint | w = 0 , |
|||
FXint | h = 0 | |||
) |
Construct a GL canvas with its private context but shared display lists.
FX::FXGLCanvas::FXGLCanvas | ( | FXComposite * | p, | |
FXGLContext * | ctx, | |||
FXObject * | tgt = NULL , |
|||
FXSelector | sel = 0 , |
|||
FXuint | opts = 0 , |
|||
FXint | x = 0 , |
|||
FXint | y = 0 , |
|||
FXint | w = 0 , |
|||
FXint | h = 0 | |||
) |
Construct a GL canvas with a shared context.
virtual FX::FXGLCanvas::~FXGLCanvas | ( | ) | [virtual] |
Destructor.
void FX::FXGLCanvas::setContext | ( | FXGLContext * | ctx, | |
FXbool | owned = false | |||
) |
Change context.
FXGLContext* FX::FXGLCanvas::getContext | ( | ) | const [inline] |
Get context.
virtual void FX::FXGLCanvas::create | ( | ) | [virtual] |
Create all of the server-side resources for this window.
Reimplemented from FX::FXWindow.
Reimplemented in FX::FXGLViewer.
virtual void FX::FXGLCanvas::detach | ( | ) | [virtual] |
Detach the server-side resources for this window.
Reimplemented from FX::FXWindow.
Reimplemented in FX::FXGLViewer.
virtual void FX::FXGLCanvas::destroy | ( | ) | [virtual] |
virtual FXbool FX::FXGLCanvas::makeCurrent | ( | ) | [virtual] |
Make OpenGL context current prior to performing OpenGL commands.
virtual FXbool FX::FXGLCanvas::makeNonCurrent | ( | ) | [virtual] |
Make OpenGL context non current.
virtual FXbool FX::FXGLCanvas::isCurrent | ( | ) | const [virtual] |
Return true if this window's context is current.
virtual void FX::FXGLCanvas::swapBuffers | ( | ) | [virtual] |
Swap front and back buffer.
FXbool FX::FXGLCanvas::isShared | ( | ) | const |
Return true if it is sharing display lists.
virtual void FX::FXGLCanvas::save | ( | FXStream & | store | ) | const [virtual] |
virtual void FX::FXGLCanvas::load | ( | FXStream & | store | ) | [virtual] |
![]() |