ttypt/lam.h(3)liblaminaVersion 1.0.0

NAME

ttypt/lam.h - Public header for the liblamina rendering and input system.

SYNOPSIS

#include <stdint.h>
#include <stddef.h>
#include './lam-key.h'

Macros

#define LAM_RGBA(r, g, b, a)
#define LAM_RGB(r, g, b)
#define LAM_COLOR_A(c)
#define LAM_COLOR_R(c)
#define LAM_COLOR_G(c)
#define LAM_COLOR_B(c)
#define LAM_COLOR_WHITE 0xFFFFFFFF

Typedefs

typedef void lam_lambda_t(uint8_t *color, uint32_t x, uint32_t y, void *ctx)

Software rendering callback.

typedef int lam_key_cb_t(unsigned short code, unsigned short type, int value)

Keyboard event callback prototype.

typedef float(* lam_particle_surface_fn) (void *user_ctx, float wx, float wy)

Optional surface/floor elevation callback: returns surface Z at (wx, wy).

Enumerations

enum lam_key_flags { LAM_INPUT_MULTILINE = 1, LAM_INPUT_NUMERIC = 2 }

Input field flags used by keyboard handlers.

enum lam_cursor_t

Standard pointer cursor shapes for desktop backends.

Functions

void lam_size (uint32_t *width, uint32_t *height)

Obtain the current framebuffer dimensions.

void lam_init (void)

Initialise the OpenGL context, window, and input system.

Detailed Description

Public header for the liblamina rendering and input system.

liblamina is a lightweight, cross-platform 2D/3D graphics layer providing a unified API across OpenGL, framebuffer, WebGL2/WASM, and software backends.

It manages window/framebuffer creation, texture and sprite drawing, color and tint management, 3D terrain/billboard streaming, and basic input event handling.

Function Documentation

void lam_size (uint32_t * width, uint32_t * height)

Obtain the current framebuffer dimensions.

Parameters

width Framebuffer width in pixels.
height Framebuffer height in pixels.

Author

Generated automatically by Doxygen for liblamina from the source code.