Fixes to the Impostor implementation.
This commit is contained in:
@@ -198,7 +198,10 @@ class SG_EXPORT ImpostorSpriteManager : public Referenced
|
||||
void remove(ImpostorSprite* is);
|
||||
|
||||
ImpostorSprite* createOrReuseImpostorSprite(int s,int t,int frameNumber);
|
||||
|
||||
|
||||
StateSet* createOrReuseStateSet();
|
||||
|
||||
void reset();
|
||||
|
||||
protected:
|
||||
|
||||
@@ -210,6 +213,10 @@ class SG_EXPORT ImpostorSpriteManager : public Referenced
|
||||
|
||||
ImpostorSprite* _first;
|
||||
ImpostorSprite* _last;
|
||||
|
||||
typedef std::vector< ref_ptr<StateSet> > StateSetList;
|
||||
StateSetList _stateSetList;
|
||||
unsigned int _reuseStateSetIndex;
|
||||
|
||||
|
||||
};
|
||||
|
||||
@@ -244,8 +244,6 @@ class OSGUTIL_EXPORT CullVisitor : public osg::NodeVisitor, public osg::CullStac
|
||||
osg::ref_ptr<RenderStage> _rootRenderStage;
|
||||
RenderBin* _currentRenderBin;
|
||||
|
||||
osg::ref_ptr<osg::StateSet> _localPreRenderState;
|
||||
|
||||
ComputeNearFarMode _computeNearFar;
|
||||
float _computed_znear;
|
||||
float _computed_zfar;
|
||||
|
||||
Reference in New Issue
Block a user