![]() |
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 *sharegroup, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0) | |
FXbool | isShared () const |
virtual void | create () |
virtual void | detach () |
virtual void | destroy () |
virtual FXbool | makeCurrent () |
virtual FXbool | makeNonCurrent () |
virtual FXbool | isCurrent () const |
void * | getContext () const |
virtual void | swapBuffers () |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXGLCanvas () |
Static Public Member Functions | |
static void * | getCurrentContext () |
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 an OpenGL-capable canvas, with its own private display list.
FX::FXGLCanvas::FXGLCanvas | ( | FXComposite * | p, | |
FXGLVisual * | vis, | |||
FXGLCanvas * | sharegroup, | |||
FXObject * | tgt = NULL , |
|||
FXSelector | sel = 0 , |
|||
FXuint | opts = 0 , |
|||
FXint | x = 0 , |
|||
FXint | y = 0 , |
|||
FXint | w = 0 , |
|||
FXint | h = 0 | |||
) |
Construct an OpenGL-capable canvas, sharing display list with another GL canvas.
This canvas becomes a member of a display list share group. All members of the display list share group have to have the same visual.
virtual FX::FXGLCanvas::~FXGLCanvas | ( | ) | [virtual] |
Destructor.
FXbool FX::FXGLCanvas::isShared | ( | ) | const |
Return TRUE if it is sharing display lists.
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.
static void* FX::FXGLCanvas::getCurrentContext | ( | ) | [static] |
Return current context, if any.
void* FX::FXGLCanvas::getContext | ( | ) | const [inline] |
Get GL context handle.
virtual void FX::FXGLCanvas::swapBuffers | ( | ) | [virtual] |
Swap front and back buffer.
virtual void FX::FXGLCanvas::save | ( | FXStream & | store | ) | const [virtual] |
virtual void FX::FXGLCanvas::load | ( | FXStream & | store | ) | [virtual] |
![]() |