Futher work on TextureAtlasBuilder/Visitor, now functioning enough to deploy on real models.

This commit is contained in:
Robert Osfield
2006-08-28 15:46:02 +00:00
parent 1055bd013d
commit 19f3d975dd
2 changed files with 254 additions and 48 deletions

View File

@@ -722,15 +722,19 @@ class OSGUTIL_EXPORT Optimizer
protected:
void addStateSet(osg::StateSet* stateset);
bool pushStateSet(osg::StateSet* stateset);
void popStateSet();
typedef std::set<osg::StateSet*> StateSets;
typedef std::set<osg::Drawable*> Drawables;
typedef std::map<osg::StateSet*, Drawables> StateSetMap;
typedef std::set<osg::Texture2D*> Textures;
typedef std::vector<osg::StateSet*> StateSetStack;
TextureAtlasBuilder _builder;
StateSets _statesets;
Textures _textures;
StateSetMap _statesetMap;
StateSetStack _statesetStack;
Textures _textures;
};