D2d offscreen rendering finish up.
This commit is contained in:
parent
8c814ce89f
commit
c63138c455
32 changed files with 288 additions and 64 deletions
|
@ -1,5 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "Color.h"
|
||||
|
||||
#include <wrl.h>
|
||||
|
||||
class SceneModel;
|
||||
|
@ -7,12 +9,17 @@ class DirectX2dInterface;
|
|||
|
||||
struct ID2D1SolidColorBrush;
|
||||
|
||||
namespace D2D1
|
||||
{
|
||||
class ColorF;
|
||||
}
|
||||
|
||||
class DirectX2dPainter
|
||||
{
|
||||
public:
|
||||
void startDrawing();
|
||||
|
||||
void clearBackground();
|
||||
void clearBackground(const Color& color);
|
||||
|
||||
void finishDrawing();
|
||||
|
||||
|
@ -21,9 +28,9 @@ public:
|
|||
void setD2dInterface(DirectX2dInterface* d2dIterface);
|
||||
|
||||
private:
|
||||
void createRectangle();
|
||||
static D2D1::ColorF toD2dColor(const Color& color);
|
||||
|
||||
Microsoft::WRL::ComPtr<ID2D1SolidColorBrush> mWorkingBrush;
|
||||
Microsoft::WRL::ComPtr<ID2D1SolidColorBrush> mSolidBrush;
|
||||
|
||||
DirectX2dInterface* mD2dInterface{ nullptr };
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue