Package 

Class Engine.Builder


  • 
    public class Engine.Builder
    
                        

    Constructs Engine objects using a builder pattern.

    • Constructor Detail

      • Engine.Builder

        Engine.Builder()
    • Method Detail

      • 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.
      • 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 name
        value - true to enable, false to disable