Kiwano Engine v1.3.x
渲染模块

struct  kiwano::GradientStop
 渐变转换点 更多...
 
struct  kiwano::LinearGradientStyle
 线性渐变样式 更多...
 
struct  kiwano::RadialGradientStyle
 径向渐变样式 更多...
 
class  kiwano::Brush
 画刷 更多...
 
class  kiwano::Color
 
struct  kiwano::FontWeight
 字体粗细值 更多...
 
class  kiwano::Font
 字体 更多...
 
class  kiwano::FontCache
 纹理缓存 更多...
 
class  kiwano::GifImage
 GIF图像 更多...
 
class  kiwano::Layer
 图层 更多...
 
class  kiwano::RenderContext
 渲染上下文 更多...
 
class  kiwano::Renderer
 渲染器 更多...
 
class  kiwano::Shape
 形状 更多...
 
class  kiwano::ShapeMaker
 形状生成器 更多...
 
class  kiwano::StrokeStyle
 线条样式 更多...
 
class  kiwano::TextLayout
 文本布局 更多...
 
class  kiwano::TextStyle
 文本样式 更多...
 
class  kiwano::Texture
 纹理 更多...
 
class  kiwano::TextureCache
 纹理缓存 更多...
 

类型定义

typedef math::Vec2T< uint32_t > kiwano::PixelSize
 像素大小
 

枚举

enum class  kiwano::GradientExtendMode { GradientExtendMode::Clamp , GradientExtendMode::Wrap , GradientExtendMode::Mirror }
 渐变扩充模式 更多...
 
enum class  kiwano::FontPosture { FontPosture::Normal , FontPosture::Oblique , FontPosture::Italic }
 字体形态 更多...
 
enum class  kiwano::FontStretch {
  Unknown , UltraCondensed , ExtraCondensed , FontStretch::Condensed ,
  SemiCondensed , FontStretch::Normal , SemiExpanded , FontStretch::Expanded ,
  ExtraExpanded , UltraExpanded
}
 字体拉伸 更多...
 
enum class  kiwano::TextAntialiasMode { TextAntialiasMode::Default , TextAntialiasMode::ClearType , TextAntialiasMode::GrayScale , TextAntialiasMode::None }
 文字抗锯齿模式 更多...
 
enum class  kiwano::BlendMode {
  SourceOver = 0 , Copy = 1 , Min = 2 , Add = 3 ,
  Max = 4
}
 混合模式
 
enum class  kiwano::CombineMode { CombineMode::Union , CombineMode::Intersect , CombineMode::Xor , CombineMode::Exclude }
 形状合并方式 更多...
 
enum class  kiwano::CapStyle { CapStyle::Flat , CapStyle::Square , CapStyle::Round , CapStyle::Triangle }
 线条端点样式 更多...
 
enum class  kiwano::LineJoinStyle { LineJoinStyle::Miter , LineJoinStyle::Bevel , LineJoinStyle::Round }
 线条交点样式 更多...
 
enum class  kiwano::DashStyle {
  DashStyle::Solid , DashStyle::Dash , DashStyle::Dot , DashStyle::DashDot ,
  DashStyle::DashDotDot
}
 线条虚线样式 更多...
 
enum class  kiwano::TextAlign { TextAlign::Left , TextAlign::Right , TextAlign::Center , TextAlign::Justified }
 文本对齐方式 更多...
 
enum class  kiwano::InterpolationMode { InterpolationMode::Linear , InterpolationMode::Nearest }
 插值模式 更多...
 
enum class  kiwano::PixelFormat { Bpp32RGBA , Bpp32BGRA }
 像素格式 更多...
 

详细描述

枚举类型说明

◆ CapStyle

enum class kiwano::CapStyle
strong

线条端点样式

线条端点样式表示线段端点部分的形状

枚举值
Flat 

扁端点

Square 

方形端点,方形突出部分等于线段宽度的一半

Round 

圆形端点,圆直径等于线段宽度

Triangle 

三角样式,三角斜边长度等于线段宽度

◆ CombineMode

enum class kiwano::CombineMode
strong

形状合并方式

枚举值
Union 

并集 (A + B)

Intersect 

交集 (A + B)

Xor 

对称差集 ((A - B) + (B - A))

Exclude 

差集 (A - B)

◆ DashStyle

enum class kiwano::DashStyle
strong

线条虚线样式

线条虚线样式表示线段的间隙

枚举值
Solid 

无间断的实线

Dash 

斜角样式

Dot 

圆角样式

DashDot 

圆角样式

DashDotDot 

圆角样式

◆ FontPosture

enum class kiwano::FontPosture
strong

字体形态

枚举值
Normal 

正常

Oblique 

倾斜体

Italic 

斜体

◆ FontStretch

enum class kiwano::FontStretch
strong

字体拉伸

枚举值
Condensed 

压缩

Normal 

正常

Expanded 

扩大

◆ GradientExtendMode

enum class kiwano::GradientExtendMode
strong

渐变扩充模式

该模式用于指定画笔如何绘制正常区域外的部分

枚举值
Clamp 

夹模式,重复绘制边界颜色

Wrap 

包裹模式,重复画笔内容

Mirror 

镜像模式,反转画笔内容

◆ InterpolationMode

enum class kiwano::InterpolationMode
strong

插值模式

插值模式指定了位图在缩放和旋转时像素颜色的计算方式

枚举值
Linear 

双线性插值,对周围四个像素进行两次线性插值计算,在图像放大时可能会模糊

Nearest 

最邻近插值,取最邻近的像素点的颜色值

◆ LineJoinStyle

enum class kiwano::LineJoinStyle
strong

线条交点样式

线条交点样式表示两条线相交部分的形状

枚举值
Miter 

斜切样式

Bevel 

斜角样式

Round 

圆角样式

◆ PixelFormat

enum class kiwano::PixelFormat
strong

像素格式

像素格式指定了从内存加载位图时内存以何种方式排列

◆ TextAlign

enum class kiwano::TextAlign
strong

文本对齐方式

枚举值
Left 

左对齐

Right 

右对齐

Center 

居中对齐

Justified 

两端对齐

◆ TextAntialiasMode

enum class kiwano::TextAntialiasMode
strong

文字抗锯齿模式

枚举值
Default 

系统默认

ClearType 

ClearType 抗锯齿

GrayScale 

灰度抗锯齿

None 

不启用抗锯齿