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)
 Construct a GL canvas with its private context and private display lists.
 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.
 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.
void setContext (FXGLContext *ctx, FXbool owned=false)
 Change context.
FXGLContextgetContext () const
 Get context.
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 this window's context is current.
virtual void swapBuffers ()
 Swap front and back buffer.
FXbool isShared () const
 Return true if it is sharing display lists.
virtual void save (FXStream &store) const
 Save object to stream.
virtual void load (FXStream &store)
 Load object from stream.
virtual ~FXGLCanvas ()
 Destructor.

Protected Attributes

FXGLContextcontext

Detailed Description

GLCanvas, an area drawn by another object.


The documentation for this class was generated from the following file:

Copyright © 1997-2011 Jeroen van der Zijp