22#include <kiwano/base/Module.h>
23#include <kiwano/render/Font.h>
24#include <kiwano/render/GifImage.h>
25#include <kiwano/render/TextStyle.h>
26#include <kiwano/render/RenderContext.h>
27#include <kiwano/platform/Window.h>
55 virtual Color GetClearColor()
const;
59 Size GetOutputSize()
const;
67 virtual void Resize(uint32_t width, uint32_t height) = 0;
71 void SetClearColor(
const Color& clear_color);
75 void SetVSyncEnabled(
bool enabled);
79 void ResetResolutionWhenWindowResized(
bool enabled);
232 virtual void Destroy();
243 bool auto_reset_resolution_;
时间模块上下文
Definition: Module.h:96
GIF图像
Definition: GifImage.h:38
基础模块
Definition: Module.h:111
引用计数智能指针
Definition: RefBasePtr.hpp:35
渲染上下文
Definition: RenderContext.h:62
渲染器
Definition: Renderer.h:47
virtual void CreateRoundedRectShape(Shape &shape, const Rect &rect, const Vec2 &radius)=0
创建圆角矩形形状内部资源
virtual void CreateTexture(Texture &texture, StringView file_path)=0
创建纹理内部资源
RenderContext & GetContext()
获取渲染上下文
Definition: Renderer.h:251
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 CreateShapeSink(ShapeMaker &maker)=0
创建几何图形生成器内部资源
virtual void CreateFontCollection(Font &font, Vector< String > &family_names, const BinaryData &data)=0
创建字体集内部资源
virtual void CreateTexture(Texture &texture, const BinaryData &data)=0
创建纹理内部资源
virtual void CreateBrush(Brush &brush, const RadialGradientStyle &style)=0
创建径向渐变画刷内部资源
Size GetOutputSize() const
获取渲染输出大小
Definition: Renderer.h:256
virtual void CreateGifImageFrame(GifImage::Frame &frame, const GifImage &gif, size_t frame_index)=0
创建GIF关键帧内部资源
virtual Color GetClearColor() const
获取清屏颜色
Definition: Renderer.h:261
virtual void CreateTextLayout(TextLayout &layout, StringView content, const TextStyle &style)=0
创建文字布局内部资源
virtual void Present()=0
将绘制内容呈现至窗口
virtual void CreateBrush(Brush &brush, const LinearGradientStyle &style)=0
创建线性渐变画刷内部资源
virtual void CreateStrokeStyle(StrokeStyle &stroke_style)=0
创建线条样式内部资源
virtual void Resize(uint32_t width, uint32_t height)=0
重设渲染输出大小
virtual void CreateBrush(Brush &brush, RefPtr< Texture > texture)=0
创建纹理画刷内部资源
virtual void CreateBrush(Brush &brush, const Color &color)=0
创建纯色画刷内部资源
virtual void CreateGifImage(GifImage &gif, StringView file_path)=0
创建GIF图像内部资源
virtual void Clear()=0
清除绘制内容
virtual void CreateTexture(Texture &texture, const PixelSize &size, const BinaryData &data, PixelFormat format)=0
从内存加载位图纹理资源
virtual void MakeContextForWindow(RefPtr< Window > window)=0
为窗口创建渲染上下文
virtual void CreateFontCollection(Font &font, Vector< String > &family_names, StringView file_path)=0
创建字体集内部资源
virtual void CreateEllipseShape(Shape &shape, const Point ¢er, const Vec2 &radius)=0
创建椭圆形状内部资源
virtual RefPtr< RenderContext > CreateTextureRenderContext(RefPtr< Texture > texture, const PixelSize &desired_size)=0
创建纹理渲染上下文,将上下文的渲染输出到纹理中
virtual void CreateGifImage(GifImage &gif, const BinaryData &data)=0
创建GIF图像内部资源
形状生成器
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