class Engine::Sprite

Direct Known Subclasses

Defined in:

engine/engine.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(adata) #

[View source]

Instance Method Detail

def background(scale = v2(1, 1), offset = v2(0, 0), color = Color::WHITE) #

[View source]
def clone #

[View source]
def draw(pos : Vector2, scale : Vector2 = v2(1, 1), angle = 0.0, color = Color::WHITE) #

[View source]
def draw_sliced(box : AABB, color = Color::WHITE) #

[View source]
def get_pixel(p) #

[View source]
def tex_rect(box : AABB, offset = v2(0, 0), scale = v2(1, 1)) #

[View source]
def tex_triangle(p1, t1, p2, t2, p3, t3) #

[View source]
def tex_triangle(p1, p2, p3, offset = v2(0, 0), scale = v2(1, 1)) #

[View source]
def to_unsafe : LibEngine::Sprite #

[View source]