Implementing basic asset serialization
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
#include "Asset.h"
|
||||
#include "Containers/Map.h"
|
||||
#include "Math/Math.h"
|
||||
|
||||
namespace Seele
|
||||
{
|
||||
@@ -7,12 +9,12 @@ DECLARE_NAME_REF(Gfx, Texture2D)
|
||||
class FontAsset : public Asset
|
||||
{
|
||||
public:
|
||||
static constexpr uint64 IDENTIFIER = 0x10;
|
||||
FontAsset();
|
||||
FontAsset(const std::string& directory, const std::string& name);
|
||||
FontAsset(const std::filesystem::path& fullPath);
|
||||
FontAsset(std::string_view folderPath, std::string_view name);
|
||||
virtual ~FontAsset();
|
||||
virtual void save(Gfx::PGraphics graphics) override;
|
||||
virtual void load(Gfx::PGraphics graphics) override;
|
||||
virtual void save(ArchiveBuffer& buffer) const override;
|
||||
virtual void load(ArchiveBuffer& buffer) override;
|
||||
|
||||
struct Glyph
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user