class OSGUTIL_EXPORT osgUtil::BufferRequirementsVisitor

A visitor for traversing a scene graph establishing the OpenGL buffers required to support rendering of that scene graph.

Inheritance:


Public Methods

[more] BufferRequirementsVisitor()
Default to traversing all children, and reqiresDoubleBuffer, requiresRGB and requiresDepthBuffer to true and with alpha and stencil off
[more]void setRequiresDoubleBuffer(const bool flag)
[more]const bool requiresDoubleBuffer() const
[more]void setRequiresRGB(const bool flag)
[more]const bool requiresRGB() const
[more]void setRequiresDepthBuffer(const bool flag)
[more]const bool requiresDepthBuffer() const
[more]void setMinumumNumAlphaBits(const unsigned int bits)
[more]const unsigned int getMinumumNumAlphaBits() const
[more]const bool requiresAlphaBuffer() const
[more]void setMinumumNumStencilBits(const unsigned int bits)
[more]const unsigned int getMinumumNumStencilBits() const
[more]const bool requiresStencilBuffer() const
[more]virtual void apply(osg::StateSet& stateset)
[more]virtual void apply(osg::Node& node)
[more]virtual void apply(osg::Geode& geode)
[more]virtual void apply(osg::Impostor& impostor)

Protected Fields

[more]bool _requiresDoubleBuffer
[more]bool _requiresRBG
[more]bool _requiresDepthBuffer
[more]unsigned int _minimumNumberAlphaBits
[more]unsigned int _minimumNumberStencilBits


Documentation

A visitor for traversing a scene graph establishing the OpenGL buffers required to support rendering of that scene graph. The results can then be used by applications to set up there windows with the corret visuals. Have a look at src/osgGLUT/Viewer.cpp's Viewer::open() method for an example how to use it.
o BufferRequirementsVisitor()
Default to traversing all children, and reqiresDoubleBuffer, requiresRGB and requiresDepthBuffer to true and with alpha and stencil off

ovoid setRequiresDoubleBuffer(const bool flag)

oconst bool requiresDoubleBuffer() const

ovoid setRequiresRGB(const bool flag)

oconst bool requiresRGB() const

ovoid setRequiresDepthBuffer(const bool flag)

oconst bool requiresDepthBuffer() const

ovoid setMinumumNumAlphaBits(const unsigned int bits)

oconst unsigned int getMinumumNumAlphaBits() const

oconst bool requiresAlphaBuffer() const

ovoid setMinumumNumStencilBits(const unsigned int bits)

oconst unsigned int getMinumumNumStencilBits() const

oconst bool requiresStencilBuffer() const

ovirtual void apply(osg::StateSet& stateset)

ovirtual void apply(osg::Node& node)

ovirtual void apply(osg::Geode& geode)

ovirtual void apply(osg::Impostor& impostor)

obool _requiresDoubleBuffer

obool _requiresRBG

obool _requiresDepthBuffer

ounsigned int _minimumNumberAlphaBits

ounsigned int _minimumNumberStencilBits


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.