Class FilamentEngineWrapper

  • All Implemented Interfaces:
    IEngine
    Direct Known Subclasses:
    HeadlessEngineWrapper

    public class FilamentEngineWrapper
    extends java.lang.Object
    implements IEngine
    Wraps calls to Filament engine.
    • Constructor Detail

      • FilamentEngineWrapper

        public FilamentEngineWrapper​(com.google.android.filament.Engine engine)
    • Method Detail

      • getFilamentEngine

        public com.google.android.filament.Engine getFilamentEngine()
        Specified by:
        getFilamentEngine in interface IEngine
      • isValid

        public boolean isValid()
        Specified by:
        isValid in interface IEngine
      • destroy

        public void destroy()
        Specified by:
        destroy in interface IEngine
      • 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 interface IEngine
      • 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: none

        Flags: see CONFIG flags in SwapChain.

        Specified by:
        createSwapChain in interface IEngine
        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 interface IEngine
      • destroySwapChain

        public void destroySwapChain​(com.google.android.filament.SwapChain swapChain)
        Specified by:
        destroySwapChain in interface IEngine
      • createView

        public com.google.android.filament.View createView()
        Specified by:
        createView in interface IEngine
      • destroyView

        public void destroyView​(com.google.android.filament.View view)
        Specified by:
        destroyView in interface IEngine
      • createRenderer

        public com.google.android.filament.Renderer createRenderer()
        Specified by:
        createRenderer in interface IEngine
      • destroyRenderer

        public void destroyRenderer​(com.google.android.filament.Renderer renderer)
        Specified by:
        destroyRenderer in interface IEngine
      • createCamera

        public com.google.android.filament.Camera createCamera()
        Specified by:
        createCamera in interface IEngine
      • createCamera

        public com.google.android.filament.Camera createCamera​(int entity)
        Specified by:
        createCamera in interface IEngine
      • createScene

        public com.google.android.filament.Scene createScene()
        Specified by:
        createScene in interface IEngine
      • destroyScene

        public void destroyScene​(com.google.android.filament.Scene scene)
        Specified by:
        destroyScene in interface IEngine
      • destroyStream

        public void destroyStream​(com.google.android.filament.Stream stream)
        Specified by:
        destroyStream in interface IEngine
      • createFence

        public com.google.android.filament.Fence createFence()
        Specified by:
        createFence in interface IEngine
      • destroyFence

        public void destroyFence​(com.google.android.filament.Fence fence)
        Specified by:
        destroyFence in interface IEngine
      • destroyIndexBuffer

        public void destroyIndexBuffer​(com.google.android.filament.IndexBuffer indexBuffer)
        Specified by:
        destroyIndexBuffer in interface IEngine
      • destroyVertexBuffer

        public void destroyVertexBuffer​(com.google.android.filament.VertexBuffer vertexBuffer)
        Specified by:
        destroyVertexBuffer in interface IEngine
      • destroyIndirectLight

        public void destroyIndirectLight​(com.google.android.filament.IndirectLight ibl)
        Specified by:
        destroyIndirectLight in interface IEngine
      • destroyMaterial

        public void destroyMaterial​(com.google.android.filament.Material material)
        Specified by:
        destroyMaterial in interface IEngine
      • destroyMaterialInstance

        public void destroyMaterialInstance​(com.google.android.filament.MaterialInstance materialInstance)
        Specified by:
        destroyMaterialInstance in interface IEngine
      • destroySkybox

        public void destroySkybox​(com.google.android.filament.Skybox skybox)
        Specified by:
        destroySkybox in interface IEngine
      • destroyTexture

        public void destroyTexture​(com.google.android.filament.Texture texture)
        Specified by:
        destroyTexture in interface IEngine
      • destroyEntity

        public void destroyEntity​(int entity)
        Specified by:
        destroyEntity in interface IEngine
      • getTransformManager

        public com.google.android.filament.TransformManager getTransformManager()
        Specified by:
        getTransformManager in interface IEngine
      • getLightManager

        public com.google.android.filament.LightManager getLightManager()
        Specified by:
        getLightManager in interface IEngine
      • getRenderableManager

        public com.google.android.filament.RenderableManager getRenderableManager()
        Specified by:
        getRenderableManager in interface IEngine