SpriteSheet Module
Functions for creating sprite sheets from various sources.
These are factory functions intended for use at initialization time.
Functions and values
| Function or value |
Description
|
|
|
|
Create a sprite sheet from explicit frame rectangles.
|
Full Usage:
fromGrid texture frameWidth frameHeight columns animations
Parameters:
Texture2D
frameWidth : int
frameHeight : int
columns : int
animations : GridAnimationDef[]
Returns: SpriteSheet
|
Create a sprite sheet from a uniform grid layout.
|
|
Create a single-animation sprite sheet.
|
|
Create a sprite sheet for a single static frame (no animation).
|
Full Usage:
tryGetAnimationIndex name sheet
Parameters:
string
sheet : SpriteSheet
Returns: int voption
Modifiers: inline |
Try to get the index for an animation name. Use at load time to resolve animation names to indices for zero-allocation playback.
|
Full Usage:
withNormalMap nm sheet
Parameters:
Texture2D
sheet : SpriteSheet
Returns: SpriteSheet
|
Add a normal map to an existing sprite sheet.
|
Mibo.Raylib