22#include <kiwano/render/Renderer.h>
23#include <kiwano/render/DirectX/D3DDeviceResources.h>
24#include <kiwano/render/DirectX/RenderContextImpl.h>
46 void CreateFontCollection(
Font& font, Vector<String>& family_names,
StringView file_path)
override;
48 void CreateFontCollection(
Font& font, Vector<String>& family_names,
const BinaryData& data)
override;
52 void CreateLineShape(
Shape& shape,
const Point& begin_pos,
const Point& end_pos)
override;
54 void CreateRectShape(
Shape& shape,
const Rect& rect)
override;
56 void CreateRoundedRectShape(
Shape& shape,
const Rect& rect,
const Vec2& radius)
override;
58 void CreateEllipseShape(
Shape& shape,
const Point& center,
const Vec2& radius)
override;
60 void CreateShapeSink(
ShapeMaker& maker)
override;
62 void CreateBrush(
Brush& brush,
const Color& color)
override;
70 void CreateStrokeStyle(
StrokeStyle& stroke_style)
override;
75 void Clear()
override;
77 void Present()
override;
79 void Resize(uint32_t width, uint32_t height)
override;
83 void Destroy()
override;
91 using ID2DDeviceResources = kiwano::graphics::directx::ID2DDeviceResources;
92 using ID3DDeviceResources = kiwano::graphics::directx::ID3DDeviceResources;
94 ComPtr<ID2DDeviceResources> d2d_res_;
95 ComPtr<ID3DDeviceResources> d3d_res_;
时间模块上下文
Definition: Module.h:96
GIF图像
Definition: GifImage.h:38
引用计数智能指针
Definition: RefBasePtr.hpp:35
Definition: RendererImpl.h:30
渲染器
Definition: Renderer.h:47
形状生成器
Definition: ShapeMaker.h:45
线条样式
Definition: StrokeStyle.h:68
文本布局
Definition: TextLayout.h:37
文本样式
Definition: TextStyle.h:51
纹理
Definition: Texture.h:64
PixelFormat
像素格式
Definition: Texture.h:54
二进制数据
Definition: BinaryData.h:30
GIF帧
Definition: GifImage.h:88
线性渐变样式
Definition: Brush.h:59
径向渐变样式
Definition: Brush.h:74