Example usage for com.badlogic.gdx.graphics.g3d.model NodePart NodePart

List of usage examples for com.badlogic.gdx.graphics.g3d.model NodePart NodePart

Introduction

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

Prototype

public NodePart(final MeshPart meshPart, final Material material) 

Source Link

Document

Construct a new NodePart referencing the provided MeshPart and Material .

Usage

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

License:Apache License

/** Adds the specified MeshPart to the current Node. The Mesh will be managed by the model and disposed when the model is
 * disposed. The resources the Material might contain are not managed, use {@link #manage(Disposable)} to add those to the
 * model. *//*from   w  w  w  .  j  av a2s .c o  m*/
public void part(final MeshPart meshpart, final Material material) {
    if (node == null)
        node();
    node.parts.add(new NodePart(meshpart, material));
}