Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

556 B
Raw Blame
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team

/** One triangle as a `.gltf`, its bytes stored plainly. */
export function plainTriangle(): Uint8Array;

/** The same triangle with every bufferView meshopt-compressed. */
export function meshoptTriangle(): Promise<Uint8Array>;

/** The same triangle with its geometry in a Draco blob. */
export function dracoTriangle(extraAttributes?: Record<string, {
    componentType: number; normalized?: boolean; values: number[];
}>): Promise<Uint8Array>;