README

Milky2018/selene/render2d_types does not have a README file

#
ClipRectCommand2D

pub(all) struct ClipRectCommand2D {
rect :
Rect

}

#
DrawCommand2D

pub(all) enum DrawCommand2D {
Image(ImageDrawCommand2D)
Text(TextDrawCommand2D)
Rect(RectDrawCommand2D)
Circle(CircleDrawCommand2D)
GradientRect(GradientRectDrawCommand2D)
PushClip(ClipRectCommand2D)
PopClip
}

#
ImageRegion2D

pub(all) struct ImageRegion2D {
position :
Vec2

size :
Vec2

}

#
RenderFrame2D

pub(all) struct RenderFrame2D {
passes : Array[RenderPass2D]
world_commands : Array[DrawCommand2D]
ui_commands : Array[DrawCommand2D]
}

#
RenderPass2D

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]]
}

#
RenderPassLoadOp2D

pub(all) enum RenderPassLoadOp2D {
Load
Clear
} derive(Eq,
Debug
)

#
RenderPassTarget2D

pub(all) enum RenderPassTarget2D {
Screen
Offscreen(String)
} derive(Eq,
Debug
)

#
TextDrawCommand2D

pub(all) struct TextDrawCommand2D {
text : String
position :
Vec2

transform :
Transform

blend_mode :
BlendMode2D

style : TextStyle2D
}

#
TextStyle2D

#
empty_render_frame2d

fn empty_render_frame2d() -> RenderFrame2D

Source Files