mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 22:53:34 +00:00
working on fonts
This commit is contained in:
20
runtime/Includes/Graphics/Font.inl
git.filemode.normal_file
20
runtime/Includes/Graphics/Font.inl
git.filemode.normal_file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
#include <Graphics/Font.h>
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
void FontRegistry::RegisterFont(std::shared_ptr<Font> font)
|
||||
{
|
||||
m_fonts_registry.insert(font);
|
||||
}
|
||||
|
||||
void FontRegistry::UnregisterFont(std::shared_ptr<Font> font)
|
||||
{
|
||||
m_fonts_registry.erase(font);
|
||||
}
|
||||
|
||||
bool FontRegistry::IsFontKnown(std::shared_ptr<Font> font)
|
||||
{
|
||||
return m_fonts_registry.find(font) != m_fonts_registry.end();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user