-
public class Engine.BuilderConstructs
Engineobjects using a builder pattern.
-
-
Constructor Summary
Constructors Constructor Description Engine.Builder()
-
Method Summary
Modifier and Type Method Description Engine.Builderbackend(Engine.Backend backend)Sets the Backend for the Engine. Engine.BuildersharedContext(Object sharedContext)Sets a sharedContext for the Engine. Engine.Builderconfig(Engine.Config config)Configure the Engine with custom parameters. Engine.BuilderfeatureLevel(Engine.FeatureLevel featureLevel)Sets the initial featureLevel for the Engine. Engine.Builderpaused(boolean paused)Sets the initial paused state of the rendering thread. Engine.Builderfeature(@NonNull() String name, boolean value)Set a feature flag value. Enginebuild()Creates an instance of Engine -
-
Method Detail
-
backend
Engine.Builder backend(Engine.Backend backend)
Sets the Backend for the Engine.
- Parameters:
backend- Driver backend to use
-
sharedContext
Engine.Builder sharedContext(Object sharedContext)
Sets a sharedContext for the Engine.
- Parameters:
sharedContext- A platform-dependant OpenGL context used as a shared contextwhen creating filament's internal context.
-
config
Engine.Builder config(Engine.Config config)
Configure the Engine with custom parameters.
- Parameters:
config- A Config object
-
featureLevel
Engine.Builder featureLevel(Engine.FeatureLevel featureLevel)
Sets the initial featureLevel for the Engine.
- Parameters:
featureLevel- The feature level at which initialize Filament.
-
paused
Engine.Builder paused(boolean paused)
Sets the initial paused state of the rendering thread.
Warning: This is an experimental API. See setPaused forcaveats.
- Parameters:
paused- Whether to start the rendering thread paused.
-
feature
Engine.Builder feature(@NonNull() String name, boolean value)
Set a feature flag value. This is the only way to set constant feature flags.
- Parameters:
name- feature namevalue- true to enable, false to disable
-
-
-
-