NAME
lam_tile_core - liblamina tilemap creation and access
- Tilemap management functions.
SYNOPSIS
Functions
uint32_t lam_tm_new (uint32_t img_ref, uint32_t w, uint32_t h)
Register a new tilemap.
const lam_tm_t * lam_tm_get (uint32_t tm_ref)
Retrieve a tilemap descriptor.
Detailed Description
Tilemap management functions.
Function Documentation
const lam_tm_t * lam_tm_get (uint32_t tm_ref)
Retrieve a tilemap descriptor.
Parameters
tm_ref Tilemap handle.
Returns
Pointer to descriptor, or NULL if invalid.
uint32_t lam_tm_new (uint32_t img_ref, uint32_t w, uint32_t h)
Register a new tilemap. Divides the given image into fixed-size tiles.
Parameters
img_ref Image reference (texture ID).
w Tile width.
h Tile height.
Returns
Tilemap handle (tm_ref).
Author
Generated automatically by Doxygen for liblamina from the source code.