Toast Engine
Loading...
Searching...
No Matches
font.hpp
Go to the documentation of this file.
1
8
9#pragma once
11#include <toast/export.hpp>
12
13namespace assets {
14
15class TOAST_API Font : public Asset {
16public:
17 explicit Font(std::vector<uint8_t> data) : m_data(std::move(data)) { }
18
19 [[nodiscard]]
20 auto type() const -> std::string_view override {
21 return "font";
22 }
23
24 [[nodiscard]]
25 auto get() const noexcept -> const std::vector<uint8_t>& {
26 return m_data;
27 }
28
29private:
30 std::vector<uint8_t> m_data;
31};
32
33}
Base types for the asset system.