#ifndef SIMGEAR_TEXTUREBUILDER_HXX
#define SIMGEAR_TEXTUREBUILDER_HXX 1
+#include <osg/StateSet>
#include <osg/Texture>
#include "EffectBuilder.hxx"
{
public:
// Hack to force inclusion of TextureBuilder.cxx in library
- static osg::Texture* buildFromType(Effect* effect, const std::string& type,
+ static osg::Texture* buildFromType(Effect* effect, Pass* pass, const std::string& type,
const SGPropertyNode*props,
- const osgDB::ReaderWriter::Options* options);
+ const SGReaderWriterOptions* options);
};
+
+struct TextureUnitBuilder : public PassAttributeBuilder
+{
+ void buildAttribute(Effect* effect, Pass* pass, const SGPropertyNode* prop,
+ const SGReaderWriterOptions* options);
+};
+
+
+bool makeTextureParameters(SGPropertyNode* paramRoot, const osg::StateSet* ss);
}
#endif