Class RenderableInstance


  • public class RenderableInstance
    extends java.lang.Object
    Controls how a Renderable is displayed. There can be multiple RenderableInstances displaying a single Renderable.
    • Method Detail

      • getFilamentAsset

        @Nullable
        public com.google.android.filament.gltfio.FilamentAsset getFilamentAsset()
      • getEntity

        public int getEntity()
      • getRenderedEntity

        public int getRenderedEntity()
      • getWorldModelMatrix

        public Matrix getWorldModelMatrix()
      • prepareForDraw

        public void prepareForDraw()
      • attachToRenderer

        public void attachToRenderer​(Renderer renderer)
      • detachFromRenderer

        public void detachFromRenderer()
      • getRelativeTransform

        @Nullable
        public Matrix getRelativeTransform()
        Returns the transform of this renderable relative to it's node. This will be non-null if the .sfa file includes a scale other than 1 or has recentering turned on.
      • getRelativeTransformInverse

        @Nullable
        public Matrix getRelativeTransformInverse()
        Returns the inverse transform of this renderable relative to it's node. This will be non-null if the .sfa file includes a scale other than 1 or has recentering turned on.