Flix3DNativeRuntime class
Owns a native C++ engine instance loaded from the package's FFI asset.
Constructors
- Flix3DNativeRuntime.open({String? path})
-
Loads the native library bundled by this package's build hook.
factory
Properties
- frameCount → int
-
Number of update calls accepted by the native runtime.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Whether this native instance has completed initialization.
no setter
- playerState → Flix3DPlayerState
-
Current player position, camera angles, and objective state.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createMaterial(
Flix3DMaterial material) → Flix3DNativeMaterial -
createScene(
) → Flix3DNativeScene - Creates an independently owned native scene with thread-safe entities.
-
dispose(
) → void - Stops the runtime and releases its native handle.
-
importObj(
Uint8List bytes, {String filename = 'model.obj'}) → Flix3DNativeModel - Parses OBJ geometry in native C++, returning an owned native mesh handle.
-
initialize(
) → bool - Initializes the native engine instance.
-
isWall(
int x, int z) → bool - Returns whether an integer grid cell is solid or outside the level.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetGame(
) → void - Resets the native level, player position, and objectives.
-
shutdown(
) → void - Stops the native engine without releasing its handle.
-
tick(
double deltaSeconds) → void -
Advances the native engine by
deltaSeconds. -
toString(
) → String -
A string representation of this object.
inherited
-
updateGame(
double deltaSeconds, {Flix3DGameInput input = const Flix3DGameInput()}) → void - Advances native gameplay and applies movement and camera input.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited