Update text rendering.

This commit is contained in:
jmsgrogan 2023-01-18 17:31:16 +00:00
parent 8536908eab
commit 8130308f7f
27 changed files with 503 additions and 77 deletions

View file

@ -1,6 +1,7 @@
#pragma once
#include "FontItem.h"
#include "Color.h"
#include <wrl.h>
#include <dwrite.h>
@ -32,7 +33,9 @@ public:
void setD2dInterface(DirectX2dInterface* d2dIterface);
private:
void updateTextFormat(const FontItem& font);
void updateTextFormat(SceneText* text);
D2D1::ColorF toD2dColor(const Color& color);
DirectX2dInterface* mD2dInterface{ nullptr };
Microsoft::WRL::ComPtr<ID2D1SolidColorBrush> mTextBrush;