|
void | CreateTexture (Texture &texture, StringView file_path) override |
| 创建纹理内部资源 更多...
|
|
void | CreateTexture (Texture &texture, const BinaryData &data) override |
| 创建纹理内部资源 更多...
|
|
void | CreateTexture (Texture &texture, const PixelSize &size, const BinaryData &data, PixelFormat format) override |
| 从内存加载位图纹理资源 更多...
|
|
void | CreateGifImage (GifImage &gif, StringView file_path) override |
| 创建GIF图像内部资源 更多...
|
|
void | CreateGifImage (GifImage &gif, const BinaryData &data) override |
| 创建GIF图像内部资源 更多...
|
|
void | CreateGifImageFrame (GifImage::Frame &frame, const GifImage &gif, size_t frame_index) override |
| 创建GIF关键帧内部资源 更多...
|
|
void | CreateFontCollection (Font &font, Vector< String > &family_names, StringView file_path) override |
| 创建字体集内部资源 更多...
|
|
void | CreateFontCollection (Font &font, Vector< String > &family_names, const BinaryData &data) override |
| 创建字体集内部资源 更多...
|
|
void | CreateTextLayout (TextLayout &layout, StringView content, const TextStyle &style) override |
| 创建文字布局内部资源 更多...
|
|
void | CreateLineShape (Shape &shape, const Point &begin_pos, const Point &end_pos) override |
| 创建线段形状内部资源 更多...
|
|
void | CreateRectShape (Shape &shape, const Rect &rect) override |
| 创建矩形形状内部资源 更多...
|
|
void | CreateRoundedRectShape (Shape &shape, const Rect &rect, const Vec2 &radius) override |
| 创建圆角矩形形状内部资源 更多...
|
|
void | CreateEllipseShape (Shape &shape, const Point ¢er, const Vec2 &radius) override |
| 创建椭圆形状内部资源 更多...
|
|
void | CreateShapeSink (ShapeMaker &maker) override |
| 创建几何图形生成器内部资源 更多...
|
|
void | CreateBrush (Brush &brush, const Color &color) override |
| 创建纯色画刷内部资源 更多...
|
|
void | CreateBrush (Brush &brush, const LinearGradientStyle &style) override |
| 创建线性渐变画刷内部资源 更多...
|
|
void | CreateBrush (Brush &brush, const RadialGradientStyle &style) override |
| 创建径向渐变画刷内部资源 更多...
|
|
void | CreateBrush (Brush &brush, RefPtr< Texture > texture) override |
| 创建纹理画刷内部资源 更多...
|
|
void | CreateStrokeStyle (StrokeStyle &stroke_style) override |
| 创建线条样式内部资源 更多...
|
|
RefPtr< RenderContext > | CreateTextureRenderContext (RefPtr< Texture > texture, const PixelSize &desired_size) override |
| 创建纹理渲染上下文,将上下文的渲染输出到纹理中 更多...
|
|
void | Clear () override |
| 清除绘制内容 更多...
|
|
void | Present () override |
| 将绘制内容呈现至窗口 更多...
|
|
void | Resize (uint32_t width, uint32_t height) override |
| 重设渲染输出大小 更多...
|
|
void | MakeContextForWindow (RefPtr< Window > window) override |
| 为窗口创建渲染上下文 更多...
|
|
void | Destroy () override |
| 销毁渲染器资源 更多...
|
|
void | HandleEvent (EventModuleContext &ctx) override |
| 事件处理 更多...
|
|
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 | CreateTexture (Texture &texture, StringView file_path)=0 |
| 创建纹理内部资源 更多...
|
|
virtual void | CreateTexture (Texture &texture, const BinaryData &data)=0 |
| 创建纹理内部资源 更多...
|
|
virtual void | CreateTexture (Texture &texture, 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 (Font &font, Vector< String > &family_names, StringView file_path)=0 |
| 创建字体集内部资源 更多...
|
|
virtual void | CreateFontCollection (Font &font, Vector< String > &family_names, const BinaryData &data)=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< Texture > texture)=0 |
| 创建纹理画刷内部资源 更多...
|
|
virtual void | CreateStrokeStyle (StrokeStyle &stroke_style)=0 |
| 创建线条样式内部资源 更多...
|
|
virtual RefPtr< RenderContext > | CreateTextureRenderContext (RefPtr< Texture > texture, const PixelSize &desired_size)=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) |
| 渲染后 更多...
|
|