1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
matabstrix/src/mtllib.hpp

22 lines
325 B
C++

#ifndef _MTLLIB_HPP_
#define _MTLLIB_HPP_
#include "resource.hpp"
#include "material.hpp"
#include <string>
#include <map>
struct Mtllib:
Resource
{
RESOURCE(Mtllib)
const Material *operator[](const std::string &name) const;
private:
std::map<std::string, const Material*> _materials;
};
#endif // _MTLLIB_HPP_