class Engine::Polygon

Defined in:

engine/physics.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(points : Array(Vector2) | Nil = nil) #

[View source]

Instance Method Detail

def add_point(v) #

[View source]
def draw(pos, a, color = Color::WHITE) #

[View source]
def draw_textured(pos, a, tex : Texture, color = Color::WHITE, offset = v2(0, 0), scale = v2(1, 1)) #

[View source]
def finalize #

[View source]
def free #

[View source]
def to_unsafe #

[View source]