feat: add DevPanel

This commit is contained in:
2026-04-25 14:24:50 +08:00
parent ada0603a2f
commit 4ca2133ff3
13 changed files with 404 additions and 39 deletions

View File

@@ -4,6 +4,8 @@
#include <Cubed/tools/log.hpp>
#include <Cubed/tools/shader_tools.hpp>
namespace fs = std::filesystem;
namespace Cubed {
@@ -12,7 +14,7 @@ Font::Font() {
if (FT_Init_FreeType(&m_ft)) {
Logger::error("FREETYPE: Could not init FreeType Library");
}
if (FT_New_Face(m_ft, ASSETS_PATH "fonts/IBMPlexSans-Regular.ttf", 0, &m_face)) {
if (FT_New_Face(m_ft, font_path().c_str(), 0, &m_face)) {
Logger::error("FREETYPE: Failed to load font");
}
@@ -125,4 +127,8 @@ GLuint Font::text_texture() {
return m_text_texture;
}
const fs::path& Font::font_path() {
return m_font_path;
}
}