moving experimental features to a new folder

This commit is contained in:
2024-12-04 18:34:53 +01:00
parent f5ffd97e48
commit 34ea0822a7
9 changed files with 126 additions and 32 deletions

View File

@@ -58,6 +58,7 @@ namespace mlx
FontRegistry m_font_registry;
ImageRegistry m_image_registry;
std::vector<std::unique_ptr<GraphicsSupport>> m_graphics;
std::shared_ptr<Font> p_last_font_bound;
std::function<int(Handle)> f_loop_hook;
std::unique_ptr<RenderCore> p_render_core;
#ifdef PROFILER

View File

@@ -98,6 +98,7 @@ namespace mlx
m_in.RegisterWindow(m_graphics.back()->GetWindow());
}
}
m_graphics.back()->GetScene().BindFont(p_last_font_bound);
return static_cast<void*>(&m_graphics.back()->GetID());
}
@@ -162,6 +163,8 @@ namespace mlx
m_font_registry.RegisterFont(font);
}
p_last_font_bound = font;
for(auto& gs : m_graphics)
{
if(gs)