X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscene%2Fmaterial%2Fmat.hxx;h=9e2d06e432d58d7f490a85c4222040ab4f87ece2;hb=416fb94ae880d2f1ec1b16fbe621ae1219fb1b31;hp=ac2e5f1bb26d6343b708e82a63f56c9e5fed673c;hpb=9cbbe5559844317f44744788ddb308101a1e75e9;p=simgear.git diff --git a/simgear/scene/material/mat.hxx b/simgear/scene/material/mat.hxx index ac2e5f1b..9e2d06e4 100644 --- a/simgear/scene/material/mat.hxx +++ b/simgear/scene/material/mat.hxx @@ -39,13 +39,13 @@ #include #include -#include namespace osg { class StateSet; } +#include #include #include #include @@ -87,6 +87,8 @@ public: */ SGMaterial( const osgDB::ReaderWriter::Options*, const SGPropertyNode *props); + SGMaterial(const simgear::SGReaderWriterXMLOptions*, + const SGPropertyNode *props); /** * Destructor. */ @@ -270,12 +272,15 @@ protected: protected: struct _internal_state { + _internal_state(simgear::Effect *e, bool l, + const simgear::SGReaderWriterXMLOptions *o); _internal_state(simgear::Effect *e, const std::string &t, bool l, - const osgDB::ReaderWriter::Options *o); + const simgear::SGReaderWriterXMLOptions *o); + void add_texture(const std::string &t, int i); osg::ref_ptr effect; - std::string texture_path; + std::vector > texture_paths; bool effect_realized; - osg::ref_ptr options; + osg::ref_ptr options; }; private: @@ -361,9 +366,9 @@ private: // Internal constructors and methods. //////////////////////////////////////////////////////////////////// - void read_properties(const osgDB::ReaderWriter::Options* options, + void read_properties(const simgear::SGReaderWriterXMLOptions* options, const SGPropertyNode *props); - void buildEffectProperties(const osgDB::ReaderWriter::Options* options); + void buildEffectProperties(const simgear::SGReaderWriterXMLOptions* options); };