class Crono::Image
- Crono::Image
- Reference
- Object
Defined in:
crono/image.crConstructors
Class Method Summary
-
.load_tiles(src : String, dimentions : TSize)
Returns Array(NamedTuple) The total number of sprites would be (img.full_width / dimentions[0]) * (img.full_height / dimentions[1])
Instance Method Summary
- #dimentions : {Int32, Int32}
- #dimentions=(dimentions : Tuple(Int32, Int32))
-
#full_height
returns the full height of the image
-
#full_width
returns the full width of the image
-
#height
returns the height you want
-
#sdl : SDL::Texture
TODO find a better name for this proxy method
- #src : String
- #src=(src : String)
-
#width
returns the width you want
Constructor Detail
Class Method Detail
Returns Array(NamedTuple) The total number of sprites would be (img.full_width / dimentions[0]) * (img.full_height / dimentions[1])