KKKIIO/selene/render2d_types does not have a README file
pub(all) struct CircleDrawCommand2D {
center : Vec2
radius : Double
transform : Transform
alpha_mode : AlphaMode2D
blend_mode : BlendMode2D
fill_color : Color
stroke_color : Color?
}pub(all) struct ColoredGeometryDrawCommand2D {
triangles : Array[ColoredTriangle2D]
alpha_mode : AlphaMode2D
blend_mode : BlendMode2D
}pub(all) struct ColoredTriangle2D {
a : ColoredVertex2D
b : ColoredVertex2D
c : ColoredVertex2D
} derive(Eq, Debug)pub(all) enum DrawCommand2D {
Image(ImageDrawCommand2D)
ImageMaterial(ImageMaterialDrawCommand2D)
Text(TextDrawCommand2D)
Rect(RectDrawCommand2D)
Circle(CircleDrawCommand2D)
Geometry(GeometryDrawCommand2D)
GradientRect(GradientRectDrawCommand2D)
RoundedChrome(RoundedChromeDrawCommand2D)
ColoredGeometry(ColoredGeometryDrawCommand2D)
PushClip(ClipRectCommand2D)
PopClip
}pub(all) struct GeometryDrawCommand2D {
vertices : Array[Vec2]
topology : GeometryTopology2D
origin : Vec2
transform : Transform
alpha_mode : AlphaMode2D
blend_mode : BlendMode2D
color : Color
}pub(all) struct GradientRectDrawCommand2D {
rect : Rect
transform : Transform
alpha_mode : AlphaMode2D
blend_mode : BlendMode2D
radii : RoundedCornerRadii2D
output_scale : Double
start : Vec2
end : Vec2
stops : Array[GradientStop2D]
}pub(all) struct ImageDrawCommand2D {
image : ImageHandle
destination : Rect
source : ImageRegion2D?
transform : Transform
uv_transform : Transform
repeat : RepeatMode
alpha_mode : AlphaMode2D
blend_mode : BlendMode2D
color : Color
}fn ImageDropShadow2D::ImageDropShadow2D(color : Color, offset? : Vec2, blur_radius? : Double) -> ImageDropShadow2Dpub(all) struct ImageMaterialDrawCommand2D {
image : ImageDrawCommand2D
opacity : Double
brightness : Double
saturation : Double
drop_shadow : ImageDropShadow2D?
}fn ImageMaterialDrawCommand2D::ImageMaterialDrawCommand2D(image : ImageDrawCommand2D, opacity? : Double, brightness? : Double, saturation? : Double, drop_shadow? : ImageDropShadow2D?) -> ImageMaterialDrawCommand2Dpub(all) struct RectDrawCommand2D {
rect : Rect
transform : Transform
alpha_mode : AlphaMode2D
blend_mode : BlendMode2D
fill_color : Color
stroke_color : Color?
}pub(all) struct RenderFrame2D {
passes : Array[RenderPass2D]
world_commands : Array[DrawCommand2D]
ui_commands : Array[DrawCommand2D]
}pub(all) struct RenderPass2D {
camera_entity_id : UInt?
order : Int
viewport : Rect
load_op : RenderPassLoadOp2D
clear_color : Color
target : RenderPassTarget2D
world_commands : Array[DrawCommand2D]
ui_commands : Array[DrawCommand2D]
world_batches : Array[Array[DrawCommand2D]]
ui_batches : Array[Array[DrawCommand2D]]
}pub(all) struct RoundedChromeDrawCommand2D {
rect : Rect
radii : RoundedCornerRadii2D
fill_color : Color?
border_widths : EdgeWidths2D
border_color : Color?
outline : RoundedOutline2D?
shadows : Array[RoundedShadowLayer2D]
output_scale : Double
alpha_mode : AlphaMode2D
blend_mode : BlendMode2D
} derive(Eq, Hash, Debug)pub(all) struct TextDrawCommand2D {
text : String
sections : Array[TextSection2D]
position : Vec2
transform : Transform
blend_mode : BlendMode2D
style : TextStyle2D
max_width : Double?
max_height : Double?
wrap : Bool
ellipsis : Bool
}pub(all) struct TextStyle2D {
font : FontHandle?
family : String
size : Double
weight : FontWeight
color : Color
line_height : Double
letter_spacing : Double
align : HAlign
baseline : VAlign
}fn tessellate_colored_path_geometry(geometry : PathGeometry2D, scale : Vec2, offset : Vec2, stroke_width : Double, color : Color, output_scale? : Double) -> Array[ColoredTriangle2D]fn tessellate_path_geometry(geometry : PathGeometry2D, scale : Vec2, offset : Vec2, stroke_width : Double, output_scale? : Double) -> PathTessellation2DECS game engine in MoonBit
Dependencies