Back to Filament

Builder

docs/android/dokka/filament-android/com.google.android.filament/-engine/-builder/index.md

1.75.02.2 KB
Original Source

//filament-android/com.google.android.filament/Engine/Builder

Builder

[main]
open class Builder

Constructs Engine objects using a builder pattern.

Constructors

Builder[main]
constructor()

Functions

NameSummary
backend[main]
open fun backend(backend: Engine.Backend): Engine.Builder
Sets the Backend for the Engine.
build[main]
open fun build(): Engine
Creates an instance of Engine
colorGrading[main]
open fun colorGrading(colorGrading: ColorGrading.Builder): Engine.Builder
Sets the builder used to create the default ColorGrading object.
config[main]
open fun config(config: Engine.Config): Engine.Builder
Configure the Engine with custom parameters.
feature[main]
open fun feature(name: String, value: Boolean): Engine.Builder
Set a feature flag value.
featureLevel[main]
open fun featureLevel(featureLevel: Engine.FeatureLevel): Engine.Builder
Sets the initial featureLevel for the Engine.
paused[main]
open fun paused(paused: Boolean): Engine.Builder
Sets the initial paused state of the rendering thread.
sharedContext[main]
open fun sharedContext(sharedContext: Any): Engine.Builder
Sets a sharedContext for the Engine.