GSDL::Draw
Constructors
new(window : SDL3::Window)
SourceInstance methods
blend_mode
Sourceblend_mode=(mode : LibSDL3::BlendMode)
Sourcecamera
Sourcecamera=(camera : Camera | Nil)
Sourcecircle_fill(x : Num, y : Num, radius : Num, color = Color::White, z_index = 0)
Sourcecircle_fill(circle : Circle)
Sourcecircle_outline(x : Num, y : Num, radius : Num, color = Color::White, z_index = 0)
Sourcecircle_outline(circle : Circle)
Sourceclear
Sourceclip_rect
Sourceclip_rect=(rect : SDL3::Rect | Nil)
Sourcecolor
Sourcecolor=(color : Color)
Sourcecommand_count
Sourcecontent_scale
Sourcecreate_texture(surface : Surface) : Texture
Sourceculling_enabled
Sourcecurrent_clip_rect
Sourcecurrent_clip_rect=(current_clip_rect : SDL3::Rect | Nil)
Sourcecurrent_scale_x
Sourcecurrent_scale_y
Sourcedestroy
Sourcedraw
Sourceflush_count
Sourcegeometry(vertices : Vertices, indices : Array(Int32), z_index : Int32 = 0, texture : Texture | Nil = nil, sort_y : Float32 | Nil = nil)
Sourceline(x1 : Num, y1 : Num, x2 : Num, y2 : Num, color = Color::White, z_index = 0)
Sourceline(p1 : FPoint, p2 : FPoint, color = Color::White, z_index = 0)
Sourceline(line : Line)
Sourcelines(points : Points, color = Color::White, z_index = 0)
Sourcelogical_presentation
Sourcepixel(pixel : Pixel)
Sourcepixels(pixels : Pixels)
Sourcepoint(x : Num, y : Num, color = Color::White, z_index = 0)
Sourcepoint(point : Point, color = Color::White, z_index = 0)
Sourcepoints(points : Points, color = Color::White, z_index = 0)
Sourcepop_clip
Sourceprojection
Sourceprojection=(projection : ProjectionMatrix | Nil)
Sourcepush_clip(rect : Rect)
Sourcerects_fill(rects : FRects, color = Color::White, z_index = 0)
Sourcerects_outline(rects : FRects, color = Color::White, z_index = 0)
Sourcescale
Sourcetarget
Sourcetarget=(texture : Texture | Nil)
Sourcetexture(texture : Texture, x : Float32 = 0.0_f32, y : Float32 = 0.0_f32, source_rect : FRect | Nil = nil, dest_rect : FRect | Nil = nil, flip : Int32 = 0, z_index : Int32 = 0, color : Color = Color::White, tint : Color | Nil = nil, destroy : Bool = false, draw_immediately : Bool = false, sort_y : Float32 | Nil = nil)
Sourcetexture_rotated(texture : Texture, x : Float32 = 0.0_f32, y : Float32 = 0.0_f32, source_rect : FRect | Nil = nil, dest_rect : FRect | Nil = nil, angle : Num = 0.0, center : Point = Point.new, flip : Int32 = 0, color : Color = Color::White, tint : Color | Nil = nil, z_index : Int32 = 0, destroy : Bool = false, draw_immediately : Bool = false, sort_y : Float32 | Nil = nil)
Sourceto_sdl
Sourcewith_camera(camera : Camera | Nil, &)
Sourcewith_projection(projection : ProjectionMatrix | Nil, &)
Sourcewith_target(texture : Texture | Nil, &)
SourceNested types
- GSDL::Draw::Command
- GSDL::Draw::DrawColorCommand
- GSDL::Draw::DrawCommand
- GSDL::Draw::DrawFRectCommand
- GSDL::Draw::DrawFRectsCommand
- GSDL::Draw::DrawGeometryCommand
- GSDL::Draw::DrawLineCommand
- GSDL::Draw::DrawLinesCommand
- GSDL::Draw::DrawPointCommand
- GSDL::Draw::DrawPointsCommand
- GSDL::Draw::DrawPointsCommandBase
- GSDL::Draw::DrawTextureCommand
- GSDL::Draw::Layer