]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/material/TextureBuilder.hxx
materials.xml format update
[simgear.git] / simgear / scene / material / TextureBuilder.hxx
index 259ef61417caad04094ff850bf43c7a511d93dc7..55df27360e178bb531a9d83afc0502050917ab9e 100644 (file)
@@ -17,6 +17,7 @@
 #ifndef SIMGEAR_TEXTUREBUILDER_HXX
 #define SIMGEAR_TEXTUREBUILDER_HXX 1
 
+#include <osg/StateSet>
 #include <osg/Texture>
 #include "EffectBuilder.hxx"
 
@@ -28,7 +29,16 @@ public:
     // Hack to force inclusion of TextureBuilder.cxx in library
     static osg::Texture* buildFromType(Effect* effect, const std::string& type,
                                        const SGPropertyNode*props,
-                                       const osgDB::ReaderWriter::Options* options);
+                                       const SGReaderWriterXMLOptions* options);
 };
+
+struct TextureUnitBuilder : public PassAttributeBuilder
+{
+    void buildAttribute(Effect* effect, Pass* pass, const SGPropertyNode* prop,
+                        const SGReaderWriterXMLOptions* options);
+};
+
+
+bool makeTextureParameters(SGPropertyNode* paramRoot, const osg::StateSet* ss);
 }
 #endif