/* SPDX-License-Identifier: MIT. Copyright (c) 2026 Joerg Burbach.
 * Coordinates are Int32 millimetres; indices refer to the flattened vertex array.
 * scene contains the uncompressed SCN1/SCN2 attribute stream, without geometry.
 * Caller supplies/consumes that documented memory layout; no file or rendering API.
 */
#ifndef FORMA_H
#define FORMA_H
#include <stdint.h>
#include <stddef.h>
typedef struct { int32_t *xyz; uint32_t *indices; size_t vertices, faces; uint8_t *scene; size_t scene_size; } forma_geometry;
int forma_decode(const uint8_t *, size_t, forma_geometry *);
int forma_encode(const forma_geometry *, uint8_t **, size_t *);
void forma_free(forma_geometry *);
#endif
