mirror of
https://github.com/bailwillharr/engine.git
synced 2024-09-21 13:01:19 +00:00
27 lines
466 B
C++
27 lines
466 B
C++
|
#include "resources/font.h"
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
#include <stb_truetype.h>
|
||
|
|
||
|
#include "log.h"
|
||
|
#include "util/files.h"
|
||
|
|
||
|
namespace engine::resources {
|
||
|
|
||
|
Font::Font(const std::string& path) {
|
||
|
// auto font_buffer = util::ReadBinaryFile(path);
|
||
|
|
||
|
// constexpr int FIRST_CHAR = 32;
|
||
|
// constexpr int NUM_CHARS = 96;
|
||
|
// constexpr float SCALE = 128.0f;
|
||
|
|
||
|
// TODO finish this
|
||
|
|
||
|
LOG_INFO("Loaded font: {}", path);
|
||
|
}
|
||
|
|
||
|
Font::~Font() {}
|
||
|
|
||
|
} // namespace engine::resources
|