class Crono::Renderer

Defined in:

crono/renderer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(window : SDL::Window) #

[View source]

Instance Method Detail

def animate(image_sprites, location : Tuple(Int32, Int32)) #

Draws an image for the current animation


[View source]
def animation_counter : UInt16 #

[View source]
def animation_counter=(animation_counter : UInt16) #

[View source]
def clear(*args, **options) #

[View source]
def clear(*args, **options, &) #

[View source]
def color #

[View source]
def color=(color) #

[View source]
def draw(image : Image, location : Tuple(Int32, Int32), angle = 0) #

Draws an image


[View source]
def draw(font : Font, location : Tuple(Int32, Int32)) #

Draws some text


[View source]
def sdl : SDL::Renderer #

[View source]