class IconRenderer::Assets::Spritesheet

Overview

Represents the metadata of a spritesheet and its sprites.

Defined in:

assets.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(sprites : Hash(String, Sprite), texture_file_name : String, size : Tuple(Int32, Int32)) #

[View source]
def self.new(obj : PList::Value) #

Shorthand for initializing a spritesheet with its .plist representation.


[View source]

Instance Method Detail

def size : Tuple(Int32, Int32) #

[View source]
def sprites : Hash(String, Sprite) #

[View source]
def texture_file_name : String #

[View source]