enum

CrImage::Util::SpriteLayout

Inherits Enum / Comparable / Value / Object

Sprite sheet layout strategies.

Different layout algorithms for organizing sprites:

  • Horizontal : Single row, left to right
  • Vertical : Single column, top to bottom
  • Grid : Uniform grid with automatic dimensions
  • Packed : Efficient packing to minimize wasted space

Constants

Horizontal = 0
Vertical = 1
Grid = 2
Packed = 3

Instance methods

grid?

Returns true if this enum value equals Grid

Source
horizontal?

Returns true if this enum value equals Horizontal

Source
packed?

Returns true if this enum value equals Packed

Source
vertical?

Returns true if this enum value equals Vertical

Source