| 1234567891011121314151617181920212223242526 |
- #pragma once
- #include <irrlicht/irrlicht.h>
- #include <nlohmann/json.hpp>
- #include "materials/passes.h"
- namespace wp::core::objects::images
- {
- using json = nlohmann::json;
- class material
- {
- public:
- static material* fromFile (irr::io::path filename);
- static material* fromJSON (json data);
- void insertPass (materials::passes* mass);
- std::vector <materials::passes*>* getPasses ();
- protected:
- material ();
- private:
- std::vector <materials::passes*> m_passes;
- };
- };
|