]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/material/TextureBuilder.hxx
Random buildings - initial commit.
[simgear.git] / simgear / scene / material / TextureBuilder.hxx
index 259ef61417caad04094ff850bf43c7a511d93dc7..c4225a212cfd8c5e861c8bf72c9d01efb4cbf0b8 100644 (file)
@@ -17,6 +17,7 @@
 #ifndef SIMGEAR_TEXTUREBUILDER_HXX
 #define SIMGEAR_TEXTUREBUILDER_HXX 1
 
+#include <osg/StateSet>
 #include <osg/Texture>
 #include "EffectBuilder.hxx"
 
@@ -26,9 +27,18 @@ class TextureBuilder : public EffectBuilder<osg::Texture>
 {
 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