diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-10 18:45:13 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-10 18:45:13 +0100 |
commit | b25bc3cc32c5a9057c66ad282fa1cdfe0ed6094a (patch) | |
tree | 469ffd495b9114ff7f7a7ccca75e4a1977c1f662 /assetFactory/assimp.h | |
parent | Support loading textures from an in memory buffer (diff) | |
download | ilt-b25bc3cc32c5a9057c66ad282fa1cdfe0ed6094a.tar.bz2 ilt-b25bc3cc32c5a9057c66ad282fa1cdfe0ed6094a.tar.xz ilt-b25bc3cc32c5a9057c66ad282fa1cdfe0ed6094a.zip |
First cut loading assets using assimp
This is far from perfect, specifically the created texture atlas is not compatibile with wrapping texture UVs
Diffstat (limited to 'assetFactory/assimp.h')
-rw-r--r-- | assetFactory/assimp.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/assetFactory/assimp.h b/assetFactory/assimp.h new file mode 100644 index 0000000..55b551d --- /dev/null +++ b/assetFactory/assimp.h @@ -0,0 +1,14 @@ +#pragma once + +#include "persistence.h" + +class AssImp : public Persistence::Persistable { +public: + using Ptr = std::shared_ptr<AssImp>; + + void postLoad() override; + + bool persist(Persistence::PersistenceStore & store) override; + + std::string path; +}; |