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

FXGLCanvas Class Reference

GLCanvas, an area drawn by another object.

#include <FXGLCanvas.h>

Inheritance diagram for FXGLCanvas:

FXCanvas FXWindow FXDrawable FXId FXObject FXGLViewer List of all members.

Public Methods

 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
 Return TRUE if it is sharing display lists.

virtual void create ()
 Create all of the server-side resources for this window.

virtual void detach ()
 Detach the server-side resources for this window.

virtual void destroy ()
 Destroy the server-side resources for this window.

virtual FXbool makeCurrent ()
 Make OpenGL context current prior to performing OpenGL commands.

virtual FXbool makeNonCurrent ()
 Make OpenGL context non current.

virtual FXbool isCurrent () const
 Return TRUE if context is current.

void * getContext () const
 Get GL context handle.

virtual void swapBuffers ()
 Swap front and back buffer.

virtual void save (FXStream &store) const
 Save object to stream.

virtual void load (FXStream &store)
 Load object from stream.

virtual ~FXGLCanvas ()
 Destructor.


Constructor & Destructor Documentation

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.

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.