struct Fluorite::SpriteSheet::Core::SpriteFrameRect

Overview

Value struct representing a single animation frame's UV and pixel bounds within the packed atlas

Included Modules

Defined in:

fluorite/sprite_sheet/core/pipeline.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(index : Int32, column : Int32, row : Int32, x : Int32, y : Int32, width : Int32, height : Int32, u0 : Float64, v0 : Float64, u1 : Float64, v1 : Float64, timestamp_sec : Float64 = 0.0) #

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

Instance Method Detail

def column : Int32 #

def height : Int32 #

def index : Int32 #

def row : Int32 #

def timestamp_sec : Float64 #

def u0 : Float64 #

def u1 : Float64 #

def v0 : Float64 #

def v1 : Float64 #

def width : Int32 #

def x : Int32 #

def y : Int32 #