Use fonts defined in placefiles

This commit is contained in:
Dan Paulat 2023-10-08 22:05:17 -05:00
parent 11ea4676cf
commit 810b61f8f9
5 changed files with 92 additions and 5 deletions

View file

@ -2,8 +2,11 @@
#include <scwx/qt/gl/gl_context.hpp>
#include <scwx/qt/gl/draw/draw_item.hpp>
#include <scwx/qt/types/imgui_font.hpp>
#include <scwx/gr/placefile.hpp>
#include <boost/unordered/unordered_flat_map.hpp>
namespace scwx
{
namespace qt
@ -44,6 +47,16 @@ public:
*/
void StartText();
/**
* Configures the fonts for drawing the placefile text.
*
* @param [in] fonts A map of ImGui fonts
*/
void
SetFonts(const boost::unordered_flat_map<std::size_t,
std::shared_ptr<types::ImGuiFont>>&
fonts);
/**
* Adds placefile text to the internal draw list.
*