com.badlogic.gdx.graphics.g3d.model
Class MeshPart

java.lang.Object
  extended by com.badlogic.gdx.graphics.g3d.model.MeshPart

public class MeshPart
extends Object

A mesh part is composed of a subset of vertices of a Mesh, along with the primitive type. The vertices subset is described by an offset into the Mesh's indices array and the number of vertices.

Author:
badlogic

Field Summary
 String id
          unique id within model, may be null (FIXME?)
 int indexOffset
          the offset into a Mesh's indices array
 Mesh mesh
          the Mesh the part references, also stored in Model
 int numVertices
          the number of vertices that make up this part
 int primitiveType
          the primitive type, OpenGL constant like GL_TRIANGLES
 
Constructor Summary
MeshPart()
           
 
Method Summary
 boolean equals(Object arg0)
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public String id
unique id within model, may be null (FIXME?)


primitiveType

public int primitiveType
the primitive type, OpenGL constant like GL_TRIANGLES


indexOffset

public int indexOffset
the offset into a Mesh's indices array


numVertices

public int numVertices
the number of vertices that make up this part


mesh

public Mesh mesh
the Mesh the part references, also stored in Model

Constructor Detail

MeshPart

public MeshPart()
Method Detail

equals

public boolean equals(Object arg0)
Overrides:
equals in class Object


Copyright © 2013. All Rights Reserved.