33 #ifndef H_DC_DECODE_OBJ
34 #define H_DC_DECODE_OBJ
36 #include <Dynacoe/Decoders/Decoder.h>
37 #include <Dynacoe/Util/Chain.h>
38 #include <Dynacoe/Material.h>
43 class DecodeOBJ :
public Decoder {
46 DecodeOBJ() : Decoder(Assets::Type::Model, std::vector<std::string>{
"obj"}) {}
48 const std::string & name,
49 const std::string & extension,
50 const uint8_t * buffer,
55 struct ResourceMaterial {
57 std::vector<std::pair<int, AssetID>> textures;
60 bool loadMtllib(
const Chain &);
61 std::map<std::string, ResourceMaterial*> mtls;