arx-convert
Version:
Converts various Arx Fatalis formats to JSON or YAML and back
18 lines (17 loc) • 482 B
TypeScript
import { BinaryIO } from '../common/BinaryIO.js';
/**
* @see https://github.com/arx/ArxLibertatis/blob/1.2.1/src/graphics/data/FastSceneFormat.h#L73
*/
export type ArxVertex = {
x: number;
y: number;
z: number;
u: number;
v: number;
llfColorIdx?: number;
};
export declare class Vertex {
static readFrom(binary: BinaryIO<ArrayBufferLike>): ArxVertex;
static accumulateFrom({ x, y, z, u, v }: ArxVertex): ArrayBuffer;
static sizeOf(): number;
}