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 *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)
FXGLContextgetContext () 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 ()


Detailed Description

GLCanvas, an area drawn by another object.

See also:


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 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.


Member Function Documentation

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]

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.

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]

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-2009 Jeroen van der Zijp