Basic Font integration.
This commit is contained in:
parent
ce11c52ae5
commit
72123bc333
36 changed files with 325 additions and 198 deletions
|
@ -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()
|
||||
|
|
|
@ -11,7 +11,9 @@ class MouseEvent;
|
|||
class KeyboardEvent;
|
||||
|
||||
class DrawingContext;
|
||||
class FontsManager;
|
||||
enum class DrawingMode;
|
||||
|
||||
class Widget;
|
||||
using WidgetPtr = std::unique_ptr<Widget>;
|
||||
class IPlatformWindow;
|
||||
|
@ -43,7 +45,7 @@ public:
|
|||
|
||||
IPlatformWindow* getPlatformWindow() const;
|
||||
|
||||
void setPlatformWindow(IPlatformWindowPtr window, DrawingMode drawingMode);
|
||||
void setPlatformWindow(IPlatformWindowPtr window, FontsManager* fontsManager, DrawingMode drawingMode);
|
||||
|
||||
void map();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue