/** Adds the {@link Node} to the model and sets it active for building. Use any of the part(...) method to add a NodePart. */ protected Node node (final Node node) { if (model == null) throw new GdxRuntimeException("Call begin() first"); endnode(); model.nodes.add(node); this.node = node; return node; }
/** Adds the {@link Node} to the model and sets it active for building. Use any of the part(...) method to add a NodePart. */ protected Node node (final Node node) { if (model == null) throw new GdxRuntimeException("Call begin() first"); endnode(); model.nodes.add(node); this.node = node; return node; }
/** End building the model. * @return The newly created model. Call the {@link Model#dispose()} method when no longer used. */ public Model end () { if (model == null) throw new GdxRuntimeException("Call begin() first"); final Model result = model; endnode(); model = null; for (final MeshBuilder mb : builders) mb.end(); builders.clear(); rebuildReferences(result); return result; }
/** End building the model. * @return The newly created model. Call the {@link Model#dispose()} method when no longer used. */ public Model end () { if (model == null) throw new GdxRuntimeException("Call begin() first"); final Model result = model; endnode(); model = null; for (final MeshBuilder mb : builders) mb.end(); builders.clear(); rebuildReferences(result); return result; }
/** Adds the {@link Node} to the model and sets it active for building. Use any of the part(...) method to add a NodePart. */ protected Node node (final Node node) { if (model == null) throw new GdxRuntimeException("Call begin() first"); endnode(); model.nodes.add(node); this.node = node; return node; }
/** End building the model. * @return The newly created model. Call the {@link Model#dispose()} method when no longer used. */ public Model end () { if (model == null) throw new GdxRuntimeException("Call begin() first"); final Model result = model; endnode(); model = null; for (final MeshBuilder mb : builders) mb.end(); builders.clear(); rebuildReferences(result); return result; }