Example usage for com.badlogic.gdx.graphics.g3d Model getManagedDisposables

List of usage examples for com.badlogic.gdx.graphics.g3d Model getManagedDisposables

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics.g3d Model getManagedDisposables.

Prototype

public Iterable<Disposable> getManagedDisposables() 

Source Link

Usage

From source file:gaia.cu9.ari.gaiaorbit.util.g3d.ModelBuilder2.java

License:Apache License

/** Adds the nodes of the specified model to a new node of the model being build. After this method the given model can no
 * longer be used. Do not call the {@link Model#dispose()} method on that model.
 * @return The newly created node containing the nodes of the given model. */
public Node node(final String id, final Model model) {
    final Node node = new Node();
    node.id = id;/*from  ww w  .  j a  va  2  s  .co  m*/
    node.addChildren(model.nodes);
    node(node);
    for (final Disposable disposable : model.getManagedDisposables())
        manage(disposable);
    return node;
}