Skip to content
Permalink
Browse files

Add getPreRenderList getPostRenderList to RenderStage.

  • Loading branch information
dedowsdi authored and robertosfield committed Jan 17, 2020
1 parent 3256642 commit ad11fd06be3c8ed90b39147b8f11ce52e29bac0f
Showing with 8 additions and 2 deletions.
  1. +8 −2 include/osgUtil/RenderStage
@@ -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);
@@ -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;

@@ -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;

0 comments on commit ad11fd0

Please sign in to comment.
You can’t perform that action at this time.