.TH "ttypt/lam.h" 3 "Version 1.0.0" "liblamina" \" -*- nroff -*- .ad l .nh .SH NAME ttypt/lam.h \- Public header for the liblamina rendering and input system\&. .SH SYNOPSIS .br .PP \fR#include \fP .br \fR#include \fP .br \fR#include '\&./lam\-key\&.h'\fP .br .SS "Macros" .in +1c .ti -1c .RI "#define \fBLAM_RGBA\fP(r, g, b, a)" .br .ti -1c .RI "#define \fBLAM_RGB\fP(r, g, b)" .br .ti -1c .RI "#define \fBLAM_COLOR_A\fP(c)" .br .ti -1c .RI "#define \fBLAM_COLOR_R\fP(c)" .br .ti -1c .RI "#define \fBLAM_COLOR_G\fP(c)" .br .ti -1c .RI "#define \fBLAM_COLOR_B\fP(c)" .br .ti -1c .RI "#define \fBLAM_COLOR_WHITE\fP 0xFFFFFFFF" .br .in -1c .SS "Typedefs" .in +1c .ti -1c .RI "typedef void \fBlam_lambda_t\fP(uint8_t *color, uint32_t x, uint32_t y, void *ctx)" .br .RI "Software rendering callback\&. " .ti -1c .RI "typedef int \fBlam_key_cb_t\fP(unsigned short code, unsigned short type, int value)" .br .RI "Keyboard event callback prototype\&. " .ti -1c .RI "typedef float(* \fBlam_particle_surface_fn\fP) (void *user_ctx, float wx, float wy)" .br .RI "Optional surface/floor elevation callback: returns surface Z at (wx, wy)\&. " .in -1c .SS "Enumerations" .in +1c .ti -1c .RI "enum \fBlam_key_flags\fP { \fBLAM_INPUT_MULTILINE\fP = 1, \fBLAM_INPUT_NUMERIC\fP = 2 }" .br .RI "Input field flags used by keyboard handlers\&. " .ti -1c .RI "enum \fBlam_cursor_t\fP " .br .RI "Standard pointer cursor shapes for desktop backends\&. " .in -1c .SS "Functions" .in +1c .ti -1c .RI "void \fBlam_size\fP (uint32_t *width, uint32_t *height)" .br .RI "Obtain the current framebuffer dimensions\&. " .ti -1c .RI "void \fBlam_init\fP (void)" .br .RI "Initialise the OpenGL context, window, and input system\&. " .in -1c .SH "Detailed Description" .PP 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\&. .PP It manages window/framebuffer creation, texture and sprite drawing, color and tint management, 3D terrain/billboard streaming, and basic input event handling\&. .SH "Function Documentation" .PP .SS "void lam_size (uint32_t * width, uint32_t * height)" .PP Obtain the current framebuffer dimensions\&. .PP \fBParameters\fP .RS 4 \fIwidth\fP Framebuffer width in pixels\&. .br \fIheight\fP Framebuffer height in pixels\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for liblamina from the source code\&.