23 lines
418 B
C++
23 lines
418 B
C++
#pragma once
|
|
|
|
#include "asset/object/model.h"
|
|
#include "assimp/Importer.hpp"
|
|
#include "assimp/postprocess.h"
|
|
#include "assimp/scene.h"
|
|
|
|
namespace veng {
|
|
|
|
typedef Model& inModel;
|
|
|
|
class Loader {
|
|
public:
|
|
void setPath(std::string path);
|
|
void loadModel(inModel model);
|
|
std::vector<std::uint8_t> readTexture();
|
|
|
|
private:
|
|
Assimp::Importer importer_;
|
|
const struct aiScene* scene_ = nullptr;
|
|
};
|
|
} // namespace veng
|