|
virtual Color | GetClearColor () const |
| 获取清屏颜色
|
|
Size | GetOutputSize () const |
| 获取渲染输出大小
|
|
RenderContext & | GetContext () |
| 获取渲染上下文
|
|
virtual void | Resize (uint32_t width, uint32_t height)=0 |
| 重设渲染输出大小 更多...
|
|
void | SetClearColor (const Color &clear_color) |
| 设置清屏颜色
|
|
void | SetVSyncEnabled (bool enabled) |
| 开启或关闭垂直同步
|
|
void | ResetResolutionWhenWindowResized (bool enabled) |
| 窗口大小变化时自动调整分辨率
|
|
virtual void | CreateBitmap (Bitmap &bitmap, StringView file_path)=0 |
| 创建位图 更多...
|
|
virtual void | CreateBitmap (Bitmap &bitmap, const BinaryData &data)=0 |
| 创建位图 更多...
|
|
virtual void | CreateBitmap (Bitmap &bitmap, const PixelSize &size, const BinaryData &data, PixelFormat format)=0 |
| 从内存加载位图位图资源 更多...
|
|
virtual void | CreateGifImage (GifImage &gif, StringView file_path)=0 |
| 创建GIF图像 更多...
|
|
virtual void | CreateGifImage (GifImage &gif, const BinaryData &data)=0 |
| 创建GIF图像 更多...
|
|
virtual void | CreateGifImageFrame (GifImage::Frame &frame, const GifImage &gif, size_t frame_index)=0 |
| 创建GIF关键帧 更多...
|
|
virtual void | CreateFontCollection (FontCollection &collection, Vector< String > &family_names, const Vector< String > &file_paths)=0 |
| 创建字体集合 更多...
|
|
virtual void | CreateFontCollection (FontCollection &collection, Vector< String > &family_names, const Vector< BinaryData > &datas)=0 |
| 创建字体集合 更多...
|
|
virtual void | CreateTextLayout (TextLayout &layout, StringView content, const TextStyle &style)=0 |
| 创建文字布局 更多...
|
|
virtual void | CreateLineShape (Shape &shape, const Point &begin_pos, const Point &end_pos)=0 |
| 创建线段形状 更多...
|
|
virtual void | CreateRectShape (Shape &shape, const Rect &rect)=0 |
| 创建矩形形状 更多...
|
|
virtual void | CreateRoundedRectShape (Shape &shape, const Rect &rect, const Vec2 &radius)=0 |
| 创建圆角矩形形状 更多...
|
|
virtual void | CreateEllipseShape (Shape &shape, const Point ¢er, const Vec2 &radius)=0 |
| 创建椭圆形状 更多...
|
|
virtual void | CreateShapeSink (ShapeMaker &maker)=0 |
| 创建几何图形生成器 更多...
|
|
virtual void | CreateBrush (Brush &brush, const Color &color)=0 |
| 创建纯色画刷 更多...
|
|
virtual void | CreateBrush (Brush &brush, const LinearGradientStyle &style)=0 |
| 创建线性渐变画刷 更多...
|
|
virtual void | CreateBrush (Brush &brush, const RadialGradientStyle &style)=0 |
| 创建径向渐变画刷 更多...
|
|
virtual void | CreateBrush (Brush &brush, RefPtr< Image > image, const Rect &src_rect)=0 |
| 创建图像画刷 更多...
|
|
virtual void | CreateStrokeStyle (StrokeStyle &stroke_style)=0 |
| 创建线条样式 更多...
|
|
virtual void | CreatePixelShader (PixelShader &shader, const BinaryData &cso_data)=0 |
| 创建像素着色器 更多...
|
|
virtual RefPtr< RenderContext > | CreateContextForBitmap (RefPtr< Bitmap > bitmap, const Size &desired_size)=0 |
| 创建渲染上下文,将上下文的渲染输出到位图中 更多...
|
|
virtual RefPtr< RenderContext > | CreateContextForBitmapInPixels (RefPtr< Bitmap > bitmap, const PixelSize &desired_size)=0 |
| 创建渲染上下文,将上下文的渲染输出到位图中 更多...
|
|
virtual RefPtr< RenderContext > | CreateContextForCommandList (RefPtr< Image > cmd_list)=0 |
| 创建渲染上下文,将上下文的渲染输出到命令集中 更多...
|
|
virtual void | Clear ()=0 |
| 清除绘制内容 更多...
|
|
virtual void | Present ()=0 |
| 将绘制内容呈现至窗口 更多...
|
|
virtual void | MakeContextForWindow (RefPtr< Window > window)=0 |
| 为窗口创建渲染上下文 更多...
|
|
virtual void | Destroy () |
| 销毁渲染器资源 更多...
|
|
void | HandleEvent (EventModuleContext &ctx) override |
| 处理事件 更多...
|
|
virtual void | SetupModule () |
| 启动模块 更多...
|
|
virtual void | DestroyModule () |
| 销毁模块 更多...
|
|
virtual void | OnUpdate (UpdateModuleContext &ctx) |
| 更新时 更多...
|
|
virtual void | HandleEvent (EventModuleContext &ctx) |
| 事件处理 更多...
|
|
virtual void | BeforeRender (RenderModuleContext &ctx) |
| 渲染前 更多...
|
|
virtual void | OnRender (RenderModuleContext &ctx) |
| 渲染时 更多...
|
|
virtual void | AfterRender (RenderModuleContext &ctx) |
| 渲染后 更多...
|
|