Skip to content

Commit

Permalink
Add getPreRenderList getPostRenderList to RenderStage.
Browse files Browse the repository at this point in the history
  • Loading branch information
dedowsdi committed Jan 21, 2020
1 parent aebc71a commit a90a9a0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions include/osgUtil/RenderStage
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class OSGUTIL_EXPORT RenderStage : public RenderBin
{
public:

typedef std::pair< int , osg::ref_ptr<RenderStage> > RenderStageOrderPair;
typedef std::list< RenderStageOrderPair > RenderStageList;

RenderStage();
RenderStage(SortMode mode);
Expand Down Expand Up @@ -236,6 +238,12 @@ class OSGUTIL_EXPORT RenderStage : public RenderBin

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. */
bool getStats(Statistics& stats) const;

Expand Down Expand Up @@ -266,8 +274,6 @@ protected:

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;

bool _stageDrawnThisFrame;
Expand Down

0 comments on commit a90a9a0

Please sign in to comment.