2020-06-02 11:46:18 +02:00
|
|
|
#include "MeshAsset.h"
|
2023-01-29 18:58:59 +01:00
|
|
|
#include "Graphics/Graphics.h"
|
2020-06-02 11:46:18 +02:00
|
|
|
#include "Graphics/Mesh.h"
|
2023-02-13 14:56:13 +01:00
|
|
|
#include "AssetRegistry.h"
|
2020-06-02 11:46:18 +02:00
|
|
|
|
|
|
|
|
using namespace Seele;
|
|
|
|
|
|
|
|
|
|
MeshAsset::MeshAsset()
|
|
|
|
|
{
|
|
|
|
|
}
|
2020-06-08 01:44:47 +02:00
|
|
|
|
2023-02-13 14:56:13 +01:00
|
|
|
MeshAsset::MeshAsset(std::string_view folderPath, std::string_view name)
|
|
|
|
|
: Asset(folderPath, name)
|
2020-06-02 11:46:18 +02:00
|
|
|
{
|
2020-06-08 01:44:47 +02:00
|
|
|
}
|
2023-02-13 14:56:13 +01:00
|
|
|
|
2020-06-08 01:44:47 +02:00
|
|
|
MeshAsset::~MeshAsset()
|
|
|
|
|
{
|
|
|
|
|
}
|
2023-02-13 14:56:13 +01:00
|
|
|
|
|
|
|
|
void MeshAsset::save(ArchiveBuffer& buffer) const
|
2020-06-08 01:44:47 +02:00
|
|
|
{
|
2023-11-01 13:38:49 +01:00
|
|
|
Serialization::save(buffer, meshes);
|
2020-06-08 01:44:47 +02:00
|
|
|
}
|
2023-02-13 14:56:13 +01:00
|
|
|
|
|
|
|
|
void MeshAsset::load(ArchiveBuffer& buffer)
|
2020-06-08 01:44:47 +02:00
|
|
|
{
|
2023-11-01 13:38:49 +01:00
|
|
|
Serialization::load(buffer, meshes);
|
2020-08-06 00:54:43 +02:00
|
|
|
}
|