Archon::Display::Context Struct Reference

The representation of an OpenGL rendering context, state-machine or pipeline. More...

#include <archon/display/context.H>

Inheritance diagram for Archon::Display::Context:

Inheritance graph
[legend]
Collaboration diagram for Archon::Display::Context:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual Ref< VisualgetVisual ()=0
 Get the associated visual descriptor.
virtual bool isDirect ()=0
 Tell whether direct rendering is enabled for this context.

Detailed Description

The representation of an OpenGL rendering context, state-machine or pipeline.

This class is a wrapper around OpenGLs GLXContext.

Any thread that wishes to call OpenGL rendering primitives, must first be bound to a rendering context and to a drawable such as a window. This is done by instantiating the Bind class.

New rendering contexts are created by calling Visual::createContext.

See also:
Bind

Drawable

Window

Visual::createContext

http://www.opengl.org

http://www.mesa3d.org

Definition at line 78 of file context.H.


Member Function Documentation

virtual Ref<Visual> Archon::Display::Context::getVisual  )  [pure virtual]
 

Get the associated visual descriptor.

Returns:
A descriptor for the visual used by this rendering context.

Implemented in Archon::Display::ContextX11.

virtual bool Archon::Display::Context::isDirect  )  [pure virtual]
 

Tell whether direct rendering is enabled for this context.

Direct rendering contexts offers better performance but generally works only on a display of the local host.

Implemented in Archon::Display::ContextX11.


The documentation for this struct was generated from the following file:
Generated on Sun Jul 30 22:56:45 2006 for Archon by  doxygen 1.4.4