-
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. 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.
-
-
-
-