Class FilamentEngineWrapper
- java.lang.Object
-
- com.google.ar.sceneform.rendering.FilamentEngineWrapper
-
- All Implemented Interfaces:
IEngine
- Direct Known Subclasses:
HeadlessEngineWrapper
public class FilamentEngineWrapper extends java.lang.Object implements IEngine
Wraps calls to Filament engine.
-
-
Constructor Summary
Constructors Constructor Description FilamentEngineWrapper(com.google.android.filament.Engine engine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.android.filament.Camera
createCamera()
com.google.android.filament.Camera
createCamera(int entity)
com.google.android.filament.Fence
createFence()
com.google.android.filament.Renderer
createRenderer()
com.google.android.filament.Scene
createScene()
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)
com.google.android.filament.View
createView()
void
destroy()
void
destroyEntity(int entity)
void
destroyFence(com.google.android.filament.Fence fence)
void
destroyIndexBuffer(com.google.android.filament.IndexBuffer indexBuffer)
void
destroyIndirectLight(com.google.android.filament.IndirectLight ibl)
void
destroyMaterial(com.google.android.filament.Material material)
void
destroyMaterialInstance(com.google.android.filament.MaterialInstance materialInstance)
void
destroyRenderer(com.google.android.filament.Renderer renderer)
void
destroyScene(com.google.android.filament.Scene scene)
void
destroySkybox(com.google.android.filament.Skybox skybox)
void
destroyStream(com.google.android.filament.Stream stream)
void
destroySwapChain(com.google.android.filament.SwapChain swapChain)
void
destroyTexture(com.google.android.filament.Texture texture)
void
destroyVertexBuffer(com.google.android.filament.VertexBuffer vertexBuffer)
void
destroyView(com.google.android.filament.View view)
void
flushAndWait()
com.google.android.filament.Engine
getFilamentEngine()
com.google.android.filament.LightManager
getLightManager()
com.google.android.filament.RenderableManager
getRenderableManager()
com.google.android.filament.TransformManager
getTransformManager()
boolean
isValid()
-
-
-
Method Detail
-
getFilamentEngine
public com.google.android.filament.Engine getFilamentEngine()
- Specified by:
getFilamentEngine
in interfaceIEngine
-
createSwapChain
public com.google.android.filament.SwapChain createSwapChain(java.lang.Object surface)
Description copied from interface:IEngine
Valid surface types: - Android: Surface - Other: none- Specified by:
createSwapChain
in interfaceIEngine
-
createSwapChain
public com.google.android.filament.SwapChain createSwapChain(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
- See Also:
SwapChain.CONFIG_DEFAULT
,SwapChain.CONFIG_TRANSPARENT
,SwapChain.CONFIG_READABLE
-
createSwapChainFromNativeSurface
public com.google.android.filament.SwapChain createSwapChainFromNativeSurface(com.google.android.filament.NativeSurface surface, long flags)
- Specified by:
createSwapChainFromNativeSurface
in interfaceIEngine
-
destroySwapChain
public void destroySwapChain(com.google.android.filament.SwapChain swapChain)
- Specified by:
destroySwapChain
in interfaceIEngine
-
createView
public com.google.android.filament.View createView()
- Specified by:
createView
in interfaceIEngine
-
destroyView
public void destroyView(com.google.android.filament.View view)
- Specified by:
destroyView
in interfaceIEngine
-
createRenderer
public com.google.android.filament.Renderer createRenderer()
- Specified by:
createRenderer
in interfaceIEngine
-
destroyRenderer
public void destroyRenderer(com.google.android.filament.Renderer renderer)
- Specified by:
destroyRenderer
in interfaceIEngine
-
createCamera
public com.google.android.filament.Camera createCamera()
- Specified by:
createCamera
in interfaceIEngine
-
createCamera
public com.google.android.filament.Camera createCamera(int entity)
- Specified by:
createCamera
in interfaceIEngine
-
createScene
public com.google.android.filament.Scene createScene()
- Specified by:
createScene
in interfaceIEngine
-
destroyScene
public void destroyScene(com.google.android.filament.Scene scene)
- Specified by:
destroyScene
in interfaceIEngine
-
destroyStream
public void destroyStream(com.google.android.filament.Stream stream)
- Specified by:
destroyStream
in interfaceIEngine
-
createFence
public com.google.android.filament.Fence createFence()
- Specified by:
createFence
in interfaceIEngine
-
destroyFence
public void destroyFence(com.google.android.filament.Fence fence)
- Specified by:
destroyFence
in interfaceIEngine
-
destroyIndexBuffer
public void destroyIndexBuffer(com.google.android.filament.IndexBuffer indexBuffer)
- Specified by:
destroyIndexBuffer
in interfaceIEngine
-
destroyVertexBuffer
public void destroyVertexBuffer(com.google.android.filament.VertexBuffer vertexBuffer)
- Specified by:
destroyVertexBuffer
in interfaceIEngine
-
destroyIndirectLight
public void destroyIndirectLight(com.google.android.filament.IndirectLight ibl)
- Specified by:
destroyIndirectLight
in interfaceIEngine
-
destroyMaterial
public void destroyMaterial(com.google.android.filament.Material material)
- Specified by:
destroyMaterial
in interfaceIEngine
-
destroyMaterialInstance
public void destroyMaterialInstance(com.google.android.filament.MaterialInstance materialInstance)
- Specified by:
destroyMaterialInstance
in interfaceIEngine
-
destroySkybox
public void destroySkybox(com.google.android.filament.Skybox skybox)
- Specified by:
destroySkybox
in interfaceIEngine
-
destroyTexture
public void destroyTexture(com.google.android.filament.Texture texture)
- Specified by:
destroyTexture
in interfaceIEngine
-
destroyEntity
public void destroyEntity(int entity)
- Specified by:
destroyEntity
in interfaceIEngine
-
getTransformManager
public com.google.android.filament.TransformManager getTransformManager()
- Specified by:
getTransformManager
in interfaceIEngine
-
getLightManager
public com.google.android.filament.LightManager getLightManager()
- Specified by:
getLightManager
in interfaceIEngine
-
getRenderableManager
public com.google.android.filament.RenderableManager getRenderableManager()
- Specified by:
getRenderableManager
in interfaceIEngine
-
flushAndWait
public void flushAndWait()
- Specified by:
flushAndWait
in interfaceIEngine
-
-