Class HeadlessEngineWrapper
- java.lang.Object
-
- com.google.ar.sceneform.rendering.FilamentEngineWrapper
-
- com.google.ar.sceneform.rendering.HeadlessEngineWrapper
-
- All Implemented Interfaces:
IEngine
public class HeadlessEngineWrapper extends FilamentEngineWrapper
Interface for the swiftshader backed version of the Filament engine.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TAG
-
Constructor Summary
Constructors Constructor Description HeadlessEngineWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.android.filament.SwapChain
createSwapChain(java.lang.Object surface)
Valid surface types: - Android: Surface - Other: nonecom.google.android.filament.SwapChain
createSwapChain(java.lang.Object surface, long flags)
Valid surface types: - Android: Surface - Other: nonecom.google.android.filament.SwapChain
createSwapChainFromNativeSurface(com.google.android.filament.NativeSurface surface, long flags)
void
destroy()
void
destroySwapChain(com.google.android.filament.SwapChain swapChain)
-
Methods inherited from class com.google.ar.sceneform.rendering.FilamentEngineWrapper
createCamera, createCamera, createFence, createRenderer, createScene, createView, destroyEntity, destroyFence, destroyIndexBuffer, destroyIndirectLight, destroyMaterial, destroyMaterialInstance, destroyRenderer, destroyScene, destroySkybox, destroyStream, destroyTexture, destroyVertexBuffer, destroyView, flushAndWait, getFilamentEngine, getLightManager, getRenderableManager, getTransformManager, isValid
-
-
-
-
Method Detail
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceIEngine
- Overrides:
destroy
in classFilamentEngineWrapper
-
createSwapChain
public com.google.android.filament.SwapChain createSwapChain(@NonNull java.lang.Object surface)
Description copied from interface:IEngine
Valid surface types: - Android: Surface - Other: none- Specified by:
createSwapChain
in interfaceIEngine
- Overrides:
createSwapChain
in classFilamentEngineWrapper
-
createSwapChain
public com.google.android.filament.SwapChain createSwapChain(@NonNull java.lang.Object surface, long flags)
Description copied from interface:IEngine
Valid surface types: - Android: Surface - Other: noneFlags: see CONFIG flags in SwapChain.
- Specified by:
createSwapChain
in interfaceIEngine
- Overrides:
createSwapChain
in classFilamentEngineWrapper
- See Also:
SwapChain.CONFIG_DEFAULT
,SwapChain.CONFIG_TRANSPARENT
,SwapChain.CONFIG_READABLE
-
createSwapChainFromNativeSurface
public com.google.android.filament.SwapChain createSwapChainFromNativeSurface(@NonNull com.google.android.filament.NativeSurface surface, long flags)
- Specified by:
createSwapChainFromNativeSurface
in interfaceIEngine
- Overrides:
createSwapChainFromNativeSurface
in classFilamentEngineWrapper
-
destroySwapChain
public void destroySwapChain(@NonNull com.google.android.filament.SwapChain swapChain)
- Specified by:
destroySwapChain
in interfaceIEngine
- Overrides:
destroySwapChain
in classFilamentEngineWrapper
-
-