flix3dengine_native library

Native runtime API for Dart FFI consumers that do not need Flutter UI APIs.

Classes

Flix3DAsset
A reusable 3D asset containing validated triangle meshes.
Flix3DCamera
Perspective camera lens attached to a scene entity.
Flix3DDirectionalLight
Linear directional light attached to a scene entity.
Flix3DEntity
A scene object identified by a stable, scene-unique ID.
Flix3DGameInput
Movement and camera input consumed by the native first-person game loop.
Flix3DMaterial
A PBR material description. Texture paths are retained as metadata.
Flix3DMesh
An indexed triangle mesh with optional vertex normals and morph targets.
Flix3DModelImporter
Imports triangle geometry from OBJ, glTF 2.0 JSON, or binary GLB 2.0.
Flix3DMorphTarget
Vertex deltas for one glTF morph target.
Flix3DNativeMaterial
An owned native PBR factor resource.
Flix3DNativeModel
An owned native mesh imported by the C++ OBJ pipeline.
Flix3DNativeRuntime
Owns a native C++ engine instance loaded from the package's FFI asset.
Flix3DNativeScene
A thread-safe native scene with C++-owned entity and transform state.
Flix3DPlayerState
Snapshot of the native first-person player's state.
Flix3DScene
A mutable scene entity collection; rendering is provided by a renderer backend.
Flix3DTransform
Position, Euler rotation, and scale for a scene entity.
Vector3
An immutable three-component vector used for model vertices and transforms.

Enums

Flix3DAssetFormat
Source format for a mesh asset.

Functions

flix3dExportObj(Flix3DAsset asset) → Uint8List
Writes an imported or procedural mesh collection as a Wavefront OBJ file.

Typedefs

Flix3DResourceResolver = Future<Uint8List?> Function(String uri)