Hook up d2d offscreen rendering.
This commit is contained in:
parent
0c84a53643
commit
53a9f7bd15
9 changed files with 130 additions and 58 deletions
|
@ -1,15 +1,29 @@
|
|||
#pragma once
|
||||
|
||||
class AbstractGeometricItem;
|
||||
#include <wrl.h>
|
||||
|
||||
class SceneModel;
|
||||
class DirectX2dInterface;
|
||||
|
||||
struct ID2D1SolidColorBrush;
|
||||
|
||||
class DirectX2dPainter
|
||||
{
|
||||
public:
|
||||
void paint(AbstractGeometricItem* item);
|
||||
void startDrawing();
|
||||
|
||||
void clearBackground();
|
||||
|
||||
void finishDrawing();
|
||||
|
||||
void paint(SceneModel* model);
|
||||
|
||||
void setD2dInterface(DirectX2dInterface* d2dIterface);
|
||||
|
||||
private:
|
||||
void createRectangle();
|
||||
|
||||
Microsoft::WRL::ComPtr<ID2D1SolidColorBrush> mWorkingBrush;
|
||||
|
||||
DirectX2dInterface* mD2dInterface{ nullptr };
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue