Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXGLCanvas Class Reference

GLCanvas, an area drawn by another object. More...

#include <FXGLCanvas.h>

Inheritance diagram for FX::FXGLCanvas:

FX::FXCanvas FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject FX::FXGLViewer List of all members.

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

void * getCurrentContext ()

Detailed Description

GLCanvas, an area drawn by another object.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]
 

Destroy the server-side resources for this window.

Reimplemented from FX::FXWindow.

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.

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]
 

Save object to stream.

Reimplemented from FX::FXWindow.

Reimplemented in FX::FXGLViewer.

virtual void FX::FXGLCanvas::load FXStream store  )  [virtual]
 

Load object from stream.

Reimplemented from FX::FXWindow.

Reimplemented in FX::FXGLViewer.

Copyright © 1997-2005 Jeroen van der Zijp