class

Game::Texture

Inherits Reference < Object

Constructors

new(image : Image)
Source
new(filename : String)
Source

Class methods

get(filename, image : Image)
Source
load(image : Image)
Source
load(filename)
Source

Instance methods

draw(x, y, rotation = 0, scale = 1, tint = Color::White)
Source
get(filename, image : Image)
Source
height(*args, **options)
Source
height(*args, **options, &)
Source
load(image : Image)
Source
load(filename : String)
Source
texture
Source
to_image
Source
to_struct
Source
unload
Source
width(*args, **options)
Source
width(*args, **options, &)
Source