class OSGUTIL_EXPORT osgUtil::RenderStage

RenderState base class.

Inheritance:


Public Fields

[more]DependencyList _dependencyList
[more]osg::ref_ptr<osg::Camera> _camera
[more]osg::ref_ptr<osg::Viewport> _viewport
[more]GLbitfield _clearMask
[more]osg::ref_ptr<osg::ColorMask> _colorMask
[more]osg::Vec4 _clearColor
[more]osg::Vec4 _clearAccum
[more]double _clearDepth
[more]int _clearStencil
[more]mutable osg::ref_ptr<RenderStageLighting> _renderStageLighting

Public Methods

[more] RenderStage()
[more]virtual osg::Object* cloneType() const
[more]virtual osg::Object* clone(const osg::CopyOp&) const
[more]virtual bool isSameKindAs(const osg::Object* obj) const
[more]virtual const char* className() const
[more]virtual void reset()
[more]void setViewport(osg::Viewport* viewport)
Set the viewport
[more]const osg::Viewport* getViewport() const
Get the const viewport.
[more]osg::Viewport* getViewport()
Get the viewport.
[more]void setClearMask(const GLbitfield mask)
Set the clear mask used in glClear().
[more]const GLbitfield getClearMask() const
Get the clear mask
[more]void setColorMask(osg::ColorMask* cm)
[more]osg::ColorMask* getColorMask()
[more]const osg::ColorMask* getColorMask() const
[more]void setClearColor(const osg::Vec4& color)
Set the clear color used in glClearColor().
[more]const osg::Vec4& getClearColor() const
Get the clear color
[more]void setClearAccum(const osg::Vec4& color)
Set the clear accum used in glClearAccum().
[more]const osg::Vec4& getClearAccum() const
Get the clear accum
[more]void setClearDepth(const double depth)
Set the clear depth used in glClearDepth().
[more]const double getClearDepth() const
Get the clear depth
[more]void setClearStencil(const int stencil)
Set the clear stencil value used in glClearStencil().
[more]const int getClearStencil() const
Get the clear color
[more]void setCamera(osg::Camera* camera)
[more]osg::Camera* getCamera()
[more]const osg::Camera* getCamera() const
[more]void setRenderStageLighting(RenderStageLighting* rsl)
[more]RenderStageLighting* getRenderStageLighting() const
[more]virtual void addLight(osg::Light* light, osg::Matrix* matrix)
[more]virtual void draw(osg::State& state, RenderLeaf*& previous)
[more]void addToDependencyList(RenderStage* rs)
[more]bool getStats(osg::Statistics* primStats)
extract stats for current draw list.

Public Members

[more]typedef std::vector< osg::ref_ptr<RenderStage> > DependencyList bool _stageDrawnThisFrame

Protected Methods

[more]virtual ~RenderStage()


Inherited from RenderBin:

Public Fields

oint _binNum
oRenderBin* _parent
oRenderStage* _stage
oRenderBinList _bins
oRenderGraphList _renderGraphList

Public Methods

otypedef std::map< int, osg::ref_ptr<RenderBin> >static RenderBinList RenderBin* createRenderBin(const std::string& binName)
ostatic void addRenderBinPrototype(RenderBin* proto)
ostatic void removeRenderBinPrototype(RenderBin* proto)
oRenderBin* find_or_insert(int binNum, const std::string& binName)
ovoid addRenderGraph(RenderGraph* rg)
ovoid sort()
ovirtual void sort_local()
ovirtual void draw_local(osg::State& state, RenderLeaf*& previous)
ovoid getPrims(osg::Statistics* primStats)
obool getPrims(osg::Statistics* primStats, const int nbin)

Public Members

otypedef std::map< std::string, osg::ref_ptr<RenderBin> >static RenderBinPrototypeList RenderBinPrototypeList s_renderBinPrototypeList


Documentation

RenderState base class. Used for encapsulate a complete stage in rendering - setting up of viewport, the projection and model matrices and rendering the RenderBin's enclosed with this RenderStage. RenderStage also has a dependency list of other RenderStages, each of which must be called before the rendering of this stage. These 'pre' rendering stages are used for advanced rendering techniques like multistage pixel shading or impostors.
o RenderStage()

ovirtual osg::Object* cloneType() const

ovirtual osg::Object* clone(const osg::CopyOp&) const

ovirtual bool isSameKindAs(const osg::Object* obj) const

ovirtual const char* className() const

ovirtual void reset()

ovoid setViewport(osg::Viewport* viewport)
Set the viewport

oconst osg::Viewport* getViewport() const
Get the const viewport.

oosg::Viewport* getViewport()
Get the viewport.

ovoid setClearMask(const GLbitfield mask)
Set the clear mask used in glClear(). Defaults to GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT.

oconst GLbitfield getClearMask() const
Get the clear mask

ovoid setColorMask(osg::ColorMask* cm)

oosg::ColorMask* getColorMask()

oconst osg::ColorMask* getColorMask() const

ovoid setClearColor(const osg::Vec4& color)
Set the clear color used in glClearColor(). glClearColor is only called if mask & GL_COLOR_BUFFER_BIT is true

oconst osg::Vec4& getClearColor() const
Get the clear color

ovoid setClearAccum(const osg::Vec4& color)
Set the clear accum used in glClearAccum(). glClearAcumm is only called if mask & GL_ACCUM_BUFFER_BIT is true

oconst osg::Vec4& getClearAccum() const
Get the clear accum

ovoid setClearDepth(const double depth)
Set the clear depth used in glClearDepth(). Defaults to 1.0 glClearDepth is only called if mask & GL_DEPTH_BUFFER_BIT is true

oconst double getClearDepth() const
Get the clear depth

ovoid setClearStencil(const int stencil)
Set the clear stencil value used in glClearStencil(). Defaults to 1.0 glClearStencil is only called if mask & GL_STENCIL_BUFFER_BIT is true

oconst int getClearStencil() const
Get the clear color

ovoid setCamera(osg::Camera* camera)

oosg::Camera* getCamera()

oconst osg::Camera* getCamera() const

ovoid setRenderStageLighting(RenderStageLighting* rsl)

oRenderStageLighting* getRenderStageLighting() const

ovirtual void addLight(osg::Light* light, osg::Matrix* matrix)

ovirtual void draw(osg::State& state, RenderLeaf*& previous)

ovoid addToDependencyList(RenderStage* rs)

obool getStats(osg::Statistics* primStats)
extract stats for current draw list.

otypedef std::vector< osg::ref_ptr<RenderStage> > DependencyList bool _stageDrawnThisFrame

oDependencyList _dependencyList

oosg::ref_ptr<osg::Camera> _camera

oosg::ref_ptr<osg::Viewport> _viewport

oGLbitfield _clearMask

oosg::ref_ptr<osg::ColorMask> _colorMask

oosg::Vec4 _clearColor

oosg::Vec4 _clearAccum

odouble _clearDepth

oint _clearStencil

omutable osg::ref_ptr<RenderStageLighting> _renderStageLighting

ovirtual ~RenderStage()


Direct child classes:
RenderToTextureStage

Alphabetic index HTML hierarchy of classes or Java



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