Basic Font integration.

This commit is contained in:
James Grogan 2022-11-15 09:32:28 +00:00
parent ce11c52ae5
commit 72123bc333
36 changed files with 325 additions and 198 deletions

View file

@ -9,7 +9,9 @@
#include "Scene.h"
#include "TriMesh.h"
#include "AbstractPainter.h"
#include "DrawingContext.h"
#include "FontsManager.h"
#include "IPlatformWindow.h"
#include "Screen.h"
@ -89,10 +91,10 @@ IPlatformWindow* Window::getPlatformWindow() const
return nullptr;
}
void Window::setPlatformWindow(IPlatformWindowPtr window, DrawingMode drawingMode)
void Window::setPlatformWindow(IPlatformWindowPtr window, FontsManager* fontsManager, DrawingMode drawingMode)
{
mPlatformWindow = std::move(window);
mDrawingContext = std::make_unique<DrawingContext>(this, drawingMode);
mDrawingContext = std::make_unique<DrawingContext>(this, fontsManager, drawingMode);
}
void Window::map()