Add getPreRenderList getPostRenderList to RenderStage.
This commit is contained in:
parent
aebc71a113
commit
a90a9a0a15
@ -38,6 +38,8 @@ class OSGUTIL_EXPORT RenderStage : public RenderBin
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
typedef std::pair< int , osg::ref_ptr<RenderStage> > RenderStageOrderPair;
|
||||||
|
typedef std::list< RenderStageOrderPair > RenderStageList;
|
||||||
|
|
||||||
RenderStage();
|
RenderStage();
|
||||||
RenderStage(SortMode mode);
|
RenderStage(SortMode mode);
|
||||||
@ -236,6 +238,12 @@ class OSGUTIL_EXPORT RenderStage : public RenderBin
|
|||||||
|
|
||||||
void addPostRenderStage(RenderStage* rs, int order = 0);
|
void addPostRenderStage(RenderStage* rs, int order = 0);
|
||||||
|
|
||||||
|
const RenderStageList& getPreRenderList() const { return _preRenderList; }
|
||||||
|
RenderStageList& getPreRenderList() { return _preRenderList; }
|
||||||
|
|
||||||
|
const RenderStageList& getPostRenderList() const { return _postRenderList; }
|
||||||
|
RenderStageList& getPostRenderList() { return _postRenderList; }
|
||||||
|
|
||||||
/** Extract stats for current draw list. */
|
/** Extract stats for current draw list. */
|
||||||
bool getStats(Statistics& stats) const;
|
bool getStats(Statistics& stats) const;
|
||||||
|
|
||||||
@ -266,8 +274,6 @@ protected:
|
|||||||
|
|
||||||
virtual ~RenderStage();
|
virtual ~RenderStage();
|
||||||
|
|
||||||
typedef std::pair< int , osg::ref_ptr<RenderStage> > RenderStageOrderPair;
|
|
||||||
typedef std::list< RenderStageOrderPair > RenderStageList;
|
|
||||||
typedef std::vector< osg::ref_ptr<osg::Camera> > Cameras;
|
typedef std::vector< osg::ref_ptr<osg::Camera> > Cameras;
|
||||||
|
|
||||||
bool _stageDrawnThisFrame;
|
bool _stageDrawnThisFrame;
|
||||||
|
Loading…
Reference in New Issue
Block a user