effect.cpp 427 B

1234567891011121314151617
  1. #include "effect.h"
  2. namespace wp
  3. {
  4. effect::effect (json json_data, irr::io::path basepath)
  5. {
  6. json::const_iterator file = json_data.find ("file");
  7. json::const_iterator pass = json_data.find ("passes");
  8. if (file != json_data.end () && (*file).is_string () == true)
  9. {
  10. std::string file_s = *file;
  11. this->m_file = basepath + "/" + file_s.c_str ();
  12. }
  13. }
  14. };