The Snivy Video Game Is Complete
This commit is contained in:
10
src/resource/font.cpp
Normal file
10
src/resource/font.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "font.h"
|
||||
|
||||
namespace game::resource
|
||||
{
|
||||
Font::Font(const std::string& path, float size)
|
||||
{
|
||||
internal = ImGui::GetIO().Fonts->AddFontFromFileTTF(path.c_str(), size);
|
||||
}
|
||||
ImFont* Font::get() { return internal; };
|
||||
}
|
||||
Reference in New Issue
Block a user