Files
Seele/src/Engine/Asset/MeshAsset.h
T

24 lines
573 B
C++
Raw Normal View History

2020-06-02 11:46:18 +02:00
#pragma once
#include "Asset.h"
namespace Seele
{
DECLARE_REF(Mesh);
2020-06-08 01:44:47 +02:00
DECLARE_REF(MaterialAsset);
2020-06-02 11:46:18 +02:00
class MeshAsset : public Asset
{
public:
MeshAsset();
MeshAsset(const std::string& directory, const std::string& name);
2020-06-08 01:44:47 +02:00
MeshAsset(const std::filesystem::path& fullPath);
virtual ~MeshAsset();
virtual void save() override;
virtual void load() override;
void addMesh(PMesh mesh);
const Array<PMesh> getMeshes() const;
2020-06-02 11:46:18 +02:00
private:
2020-06-08 01:44:47 +02:00
Array<PMesh> meshes;
Array<PMaterialAsset> referencedMaterials;
2020-06-02 11:46:18 +02:00
};
DEFINE_REF(MeshAsset);
} // namespace Seele