class SFMLDebugDraw

Defined in:

chipmunk_crsfml.cr

Constructors

Instance Method Summary

Instance methods inherited from class CP::Space::DebugDraw

color_for_shape(shape : Shape) : Color color_for_shape, draw(space : Space) draw, draw_circle(pos : Vect, angle : Float64, radius : Float64, outline_color : Color, fill_color : Color) draw_circle, draw_dot(size : Float64, pos : Vect, color : Color) draw_dot, draw_fat_segment(a : Vect, b : Vect, radius : Float64, outline_color : Color, fill_color : Color) draw_fat_segment, draw_polygon(verts : Slice(Vect), radius : Float64, outline_color : Color, fill_color : Color) draw_polygon, draw_segment(a : Vect, b : Vect, color : Color) draw_segment, flags : Flags flags, flags=(flags : Flags) flags=

Constructor methods inherited from class CP::Space::DebugDraw

new(flags : CP::Space::DebugDraw::Flags = Flags::All) new

Class methods inherited from class CP::Space::DebugDraw

color_for_hash(hash : Int, intensity : Number) : Color color_for_hash

Constructor Detail

def self.new(target : SF::RenderTarget, states : SF::RenderStates = SF::RenderStates::Default) #

[View source]

Instance Method Detail

def draw_circle(pos : CP::Vect, angle : Float64, radius : Float64, outline_color : Color, fill_color : Color) #
Description copied from class CP::Space::DebugDraw

Draw a filled, stroked circle.


[View source]
def draw_dot(size : Float64, pos : CP::Vect, color : Color) #
Description copied from class CP::Space::DebugDraw

Draw a dot.


[View source]
def draw_fat_segment(a : CP::Vect, b : CP::Vect, radius : Float64, outline_color : Color, fill_color : Color) #
Description copied from class CP::Space::DebugDraw

Draw a thick line segment.


[View source]
def draw_polygon(verts : Slice(CP::Vect), radius : Float64, outline_color : Color, fill_color : Color) #
Description copied from class CP::Space::DebugDraw

Draw a convex polygon.


[View source]
def draw_segment(a : CP::Vect, b : CP::Vect, color : Color) #
Description copied from class CP::Space::DebugDraw

Draw a line segment.


[View source]
def states : SF::RenderStates #

[View source]
def states=(states : SF::RenderStates) #

[View source]
def update #

[View source]