Class ModelRenderable


  • @RequiresApi(api=24)
    public class ModelRenderable
    extends Renderable
    Renders a 3D Model by attaching it to a Node with Node.setRenderable(Renderable).
    
     future = ModelRenderable.builder().setSource(context, R.raw.renderable).build();
     renderable = future.thenAccept(...);
     
    • Method Detail

      • makeCopy

        public ModelRenderable makeCopy()
        Creates a new instance of this ModelRenderable.

        The new renderable will have unique copy of all mutable state. All materials referenced by the ModelRenderable will also be instanced. Immutable data will be shared between the instances.

        Specified by:
        makeCopy in class Renderable