class Game::Texture
Defined in:
game/texture.cr
Constructors
Class Method Summary
Instance Method Summary
-
#draw(x, y, rotation = 0, scale = 1, tint = Color::White)
-
#get(filename, image : Image)
-
#height(*args, **options)
-
#height(*args, **options, &)
-
#load(image : Image)
-
#load(filename : String)
-
#texture : LibRay::Texture2D
-
#to_image
-
#to_struct
-
#unload
-
#width(*args, **options)
-
#width(*args, **options, &)
Constructor Detail
def self.
new(filename : String)
#
Class Method Detail
def self.
get(filename, image :
Image)
#
def self.
load(image :
Image)
#
def self.
load(filename)
#
Instance Method Detail
def
draw(x, y, rotation =
0, scale =
1, tint =
Color::White)
#
def
get(filename, image :
Image)
#
def
height(*args, **options)
#
def
height(*args, **options, &)
#
def
load(filename : String)
#
def
texture : LibRay::Texture2D
#
def
width(*args, **options)
#
def
width(*args, **options, &)
#