ttypt/lam-tm.h(3)liblaminaVersion 1.0.0

NAME

ttypt/lam-tm.h - Public header for the liblamina tilemap system.

SYNOPSIS

#include <stdint.h>

Data Structures

struct lam_tm_t

Tilemap descriptor.

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.

void lam_tile_draw (uint32_t ref, uint32_t idx, uint32_t x, uint32_t y, uint32_t w, uint32_t h, uint32_t rx, uint32_t ry)

Draw a single tile from a tilemap.

void lam_tile_map_draw (uint32_t ref, const uint16_t *tiles, uint32_t map_w, uint32_t map_h, int32_t start_x, int32_t start_y, uint32_t scale)

Render a complete 2D grid map from an array of tile indices.

void lam_tile_draw_ground_3d (uint32_t ref, uint32_t idx, float x, float y, float z, float w, float h)

Draw a single tile lying flat on the 3D ground plane (Z = elevation).

void lam_tile_draw_billboard_3d (uint32_t ref, uint32_t idx, float x, float y, float z, float w, float h, float anchor_x, float anchor_y)

Draw a billboard sprite standing upright in 3D world space.

Detailed Description

Public header for the liblamina tilemap system.

Declares the API for managing and rendering 2D tilemaps in the liblamina rendering layer.

Author

Generated automatically by Doxygen for liblamina from the source code.