22#include <kiwano/render/Renderer.h>
23#include <kiwano/render/DirectX/D3DDeviceResources.h>
24#include <kiwano/render/DirectX/RenderContextImpl.h>
46 void CreateFontCollection(
FontCollection& collection, Vector<String>& family_names,
47 const Vector<String>& file_paths)
override;
49 void CreateFontCollection(
FontCollection& collection, Vector<String>& family_names,
50 const Vector<BinaryData>& datas)
override;
54 void CreateLineShape(
Shape& shape,
const Point& begin_pos,
const Point& end_pos)
override;
56 void CreateRectShape(
Shape& shape,
const Rect& rect)
override;
58 void CreateRoundedRectShape(
Shape& shape,
const Rect& rect,
const Vec2& radius)
override;
60 void CreateEllipseShape(
Shape& shape,
const Point& center,
const Vec2& radius)
override;
62 void CreateShapeSink(
ShapeMaker& maker)
override;
64 void CreateBrush(
Brush& brush,
const Color& color)
override;
72 void CreateStrokeStyle(
StrokeStyle& stroke_style)
override;
83 void Clear()
override;
85 void Present()
override;
87 void Resize(uint32_t width, uint32_t height)
override;
91 void Destroy()
override;
99 using ID2DDeviceResources = kiwano::graphics::directx::ID2DDeviceResources;
100 using ID3DDeviceResources = kiwano::graphics::directx::ID3DDeviceResources;
102 ComPtr<ID2DDeviceResources> d2d_res_;
103 ComPtr<ID3DDeviceResources> d3d_res_;
位图
Definition: Bitmap.h:95
时间模块上下文
Definition: Module.h:96
字体集合
Definition: Font.h:89
GIF图像
Definition: GifImage.h:38
像素着色器
Definition: Shader.h:53
引用计数智能指针
Definition: RefBasePtr.hpp:35
Definition: RendererImpl.h:30
渲染器
Definition: Renderer.h:48
形状生成器
Definition: ShapeMaker.h:45
线条样式
Definition: StrokeStyle.h:68
文本布局
Definition: TextLayout.h:37
文本样式
Definition: TextStyle.h:64
PixelFormat
像素格式
Definition: Bitmap.h:54
二进制数据
Definition: BinaryData.h:30
GIF帧
Definition: GifImage.h:88
线性渐变样式
Definition: Brush.h:59
径向渐变样式
Definition: Brush.h:74