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

FX::FXGLContext Class Reference

GL Context. More...

#include <FXGLContext.h>

Inheritance diagram for FX::FXGLContext:
FX::FXId FX::FXObject

Public Member Functions

 FXGLContext (FXApp *a, FXGLVisual *vis, FXGLContext *shr=nullptr)
 Construct an GLContext with given GL Visual. More...
 
virtual void create ()
 Create context.
 
virtual void detach ()
 Detach context.
 
virtual void destroy ()
 Destroy context.
 
void setVisual (FXGLVisual *vis)
 Change visual.
 
FXGLVisualgetVisual () const
 Get the visual.
 
void setShared (FXGLContext *ctx)
 Change share context.
 
FXGLContextgetShared () const
 Get share context.
 
FXDrawabledrawable () const
 Return active drawable.
 
FXbool begin (FXDrawable *draw)
 Make context current on drawable.
 
FXbool end ()
 Make context non current.
 
void swapBuffers ()
 Swap front and back buffer.
 
FXbool isCurrent () const
 Return true if THIS context is current.
 
FXbool isDoubleBuffer () const
 Has double buffering.
 
FXbool isStereo () const
 Has stereo buffering.
 
virtual void save (FXStream &store) const
 Save object to stream.
 
virtual void load (FXStream &store)
 Load object from stream.
 
virtual ~FXGLContext ()
 Destructor.
 
- Public Member Functions inherited from FX::FXId
FXAppgetApp () const
 Get application.
 
FXID id () const
 Get XID handle.
 
void setUserData (FXptr ptr)
 Set user data pointer.
 
FXptr getUserData () const
 Get user data pointer.
 
virtual ~FXId ()
 Destructor.
 
- Public Member Functions inherited from FX::FXObject
const FXchar * getClassName () const
 Get class name of some object.
 
FXbool isMemberOf (const FXMetaClass *metaclass) const
 Check if object is member of metaclass.
 
virtual long tryHandle (FXObject *sender, FXSelector sel, void *ptr)
 Try handle message safely, catching certain exceptions.
 
virtual long onDefault (FXObject *, FXSelector, void *)
 Called for unhandled messages.
 
virtual ~FXObject ()
 Virtual destructor.
 

Static Public Member Functions

static FXbool hasCurrent ()
 Return true if thread has ANY current context.
 

Additional Inherited Members

- Protected Member Functions inherited from FX::FXId
 FXId (FXApp *a)
 
- Protected Attributes inherited from FX::FXId
FXID xid
 

Detailed Description

GL Context.

Constructor & Destructor Documentation

◆ FXGLContext()

FX::FXGLContext::FXGLContext ( FXApp a,
FXGLVisual vis,
FXGLContext shr = nullptr 
)

Construct an GLContext with given GL Visual.

Optionally share GL objects (textures, etc) with another GLContext shr.


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

Copyright © 1997-2022 Jeroen van der Zijp