* Load materials from model file. */
| 31 | * Load materials from model file. |
| 32 | */ |
| 33 | static std::vector<MaterialUnmanaged> Load(const std::string& fileName) { |
| 34 | int count = 0; |
| 35 | ::Material* mats = ::LoadMaterials(fileName.c_str(), &count); |
| 36 | return std::vector<MaterialUnmanaged>(mats, mats + count); |
| 37 | } |
| 38 | |
| 39 | GETTERSETTER(::Shader, Shader, shader) |
| 40 | GETTERSETTER(::MaterialMap*, Maps, maps) |