Examples of MeshPart


Examples of com.badlogic.gdx.graphics.g3d.model.MeshPart

  public MeshPart part(final String id, int primitiveType) {
    if (this.attributes == null)
      throw new RuntimeException("Call begin() first");
    endpart();
   
    part = new MeshPart();
    part.id = id;
    this.primitiveType = part.primitiveType = primitiveType;
    parts.add(part);
   
    setColor(null);
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.model.MeshPart

  /** Starts a new MeshPart. The mesh part is not usable until end() is called */
  public MeshPart part (final String id, int primitiveType) {
    if (this.attributes == null) throw new RuntimeException("Call begin() first");
    endpart();

    part = new MeshPart();
    part.id = id;
    this.primitiveType = part.primitiveType = primitiveType;
    parts.add(part);

    setColor(null);
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.model.MeshPart

  /** Adds the specified mesh part 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.
   * @return The added MeshPart. */
  public MeshPart part (final String id, final Mesh mesh, int primitiveType, int offset, int size, final Material material) {
    final MeshPart meshPart = new MeshPart();
    meshPart.id = id;
    meshPart.primitiveType = primitiveType;
    meshPart.mesh = mesh;
    meshPart.indexOffset = offset;
    meshPart.numVertices = size;
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.model.MeshPart

  @Deprecated
  public static Model createFromMesh (final Mesh mesh, int indexOffset, int vertexCount, int primitiveType,
    final Material material) {
    Model result = new Model();
    MeshPart meshPart = new MeshPart();
    meshPart.id = "part1";
    meshPart.indexOffset = indexOffset;
    meshPart.numVertices = vertexCount;
    meshPart.primitiveType = primitiveType;
    meshPart.mesh = mesh;
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.model.MeshPart

  public static <T extends MeshPart> boolean compare(final btTriangleIndexVertexArray array, final Array<T> meshParts) {
    if (array.meshes.size != meshParts.size)
      return false;
    for (final btIndexedMesh mesh : array.meshes) {
      boolean found = false;
      final MeshPart mp = mesh.getMeshPart();
      if (mp == null)
        return false;
      for (final MeshPart part : meshParts) {
        if (mp.equals(part)) {
          found = true;
          break;
        }
      }
      if (!found)
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.model.MeshPart

  /** Starts a new MeshPart. The mesh part is not usable until end() is called */
  public MeshPart part (final String id, int primitiveType) {
    if (this.attributes == null) throw new RuntimeException("Call begin() first");
    endpart();

    part = new MeshPart();
    part.id = id;
    this.primitiveType = part.primitiveType = primitiveType;
    parts.add(part);

    setColor(null);
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.model.MeshPart

  /** Adds the specified mesh part 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.
   * @return The added MeshPart. */
  public MeshPart part (final String id, final Mesh mesh, int primitiveType, int offset, int size, final Material material) {
    final MeshPart meshPart = new MeshPart();
    meshPart.id = id;
    meshPart.primitiveType = primitiveType;
    meshPart.mesh = mesh;
    meshPart.indexOffset = offset;
    meshPart.numVertices = size;
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.model.MeshPart

  @Deprecated
  public static Model createFromMesh (final Mesh mesh, int indexOffset, int vertexCount, int primitiveType,
    final Material material) {
    Model result = new Model();
    MeshPart meshPart = new MeshPart();
    meshPart.id = "part1";
    meshPart.indexOffset = indexOffset;
    meshPart.numVertices = vertexCount;
    meshPart.primitiveType = primitiveType;
    meshPart.mesh = mesh;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.