HI Sascha,

On 1/9/07, Sascha Seewald <[EMAIL PROTECTED]> wrote:
looking at the GraphicWindowXYZ code I wonder what the
osg::GraphicsContextXYZ class is used for. Even for X11 (which is
already working) none of the context methods are implemented! Instead
all calls to glX are made from within the GraphicsWindowX11 class. Which
is perfectly fine, but GraphicsContext seems obsolete to me then.

What is the rational behind that implemetation?

osg::GraphicsContext is the base class that can be used as the handle
to a graphics context that general purpose OSG can use to do
operations that require a graphics context of any form - be it a
graphics window or a pbuffer.

osgViewer::GraphisWindow extends osg::GraphicsContext adding windowing
specific features such as event handling that a pbuffer can't have.

The pbuffer implementations will subclass directly from
osg::GraphicsContext, so we'll have a osg::GraphicsContextX11 and
GraphicsWindowX11 - one being a pure pbuffer graphics context and the
later being a full blown window.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to