HeadlessEngineWrapper

  • HeadlessEngineWrapper provides an interface for the swiftshader-backed Filament engine, enabling off-screen rendering.

  • It allows the creation and destruction of swap chains for rendering to various surfaces.

  • Inherits functionalities from FilamentEngineWrapper and IEngine for managing entities, cameras, scenes, and other rendering resources.

  • Offers methods for creating and destroying core Filament components like cameras, renderers, scenes, and more.

  • Includes a public constructor and a destroy() method for lifecycle management.

public class HeadlessEngineWrapper

Interface for the swiftshader backed version of the Filament engine.

Fields

public static final String TAG

Public Constructors

Public Methods

SwapChain
createSwapChain(Object surface, long flags)
Valid surface types: - Android: Surface - Other: none

Flags: see CONFIG flags in SwapChain.

SwapChain
createSwapChain(Object surface)
Valid surface types: - Android: Surface - Other: none
SwapChain
createSwapChainFromNativeSurface(NativeSurface surface, long flags)
void
void
destroySwapChain(SwapChain swapChain)

Inherited Methods

Fields

public static final String TAG

Public Constructors

public HeadlessEngineWrapper ()

Public Methods

public SwapChain createSwapChain (Object surface, long flags)

Valid surface types: - Android: Surface - Other: none

Flags: see CONFIG flags in SwapChain.

Parameters
surface
flags

public SwapChain createSwapChain (Object surface)

Valid surface types: - Android: Surface - Other: none

Parameters
surface

public SwapChain createSwapChainFromNativeSurface (NativeSurface surface, long flags)

Parameters
surface
flags

public void destroy ()

public void destroySwapChain (SwapChain swapChain)

Parameters
swapChain