Fixes to the Impostor implementation.

This commit is contained in:
Robert Osfield
2003-04-09 21:53:09 +00:00
parent 3dc180f3fd
commit 2166f9b701
4 changed files with 31 additions and 7 deletions

View File

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

View File

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