class

SFMLDebugDraw

Inherits CP::Space::DebugDraw / Reference / Object

Constructors

new(target : SF::RenderTarget, states : SF::RenderStates = SF::RenderStates::Default)
Source

Instance methods

draw_circle(pos : CP::Vect, angle : Float64, radius : Float64, outline_color : Color, fill_color : Color)

Draw a filled, stroked circle.

Source
draw_dot(size : Float64, pos : CP::Vect, color : Color)

Draw a dot.

Source
draw_fat_segment(a : CP::Vect, b : CP::Vect, radius : Float64, outline_color : Color, fill_color : Color)

Draw a thick line segment.

Source
draw_polygon(verts : Slice(CP::Vect), radius : Float64, outline_color : Color, fill_color : Color)

Draw a convex polygon.

Source
draw_segment(a : CP::Vect, b : CP::Vect, color : Color)

Draw a line segment.

Source
states
Source
states=(states : SF::RenderStates)
Source
update
Source

Nested types