]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/material/TextureBuilder.hxx
Random buildings - initial commit.
[simgear.git] / simgear / scene / material / TextureBuilder.hxx
index 395ca38260b8fb9a4bb4aa7c8cb2c1400061324d..c4225a212cfd8c5e861c8bf72c9d01efb4cbf0b8 100644 (file)
@@ -27,11 +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