com.jme3.scene.mesh
クラス WrappedIndexBuffer
java.lang.Object
com.jme3.scene.mesh.IndexBuffer
com.jme3.scene.mesh.VirtualIndexBuffer
com.jme3.scene.mesh.WrappedIndexBuffer
public class WrappedIndexBuffer
- extends VirtualIndexBuffer
WrappedIndexBuffer
converts vertex indices from a non list based
mesh mode such as Mesh.Mode.TriangleStrip
or Mesh.Mode.LineLoop
into a list based mode such as Mesh.Mode.Triangles
or Mesh.Mode.Lines
.
As it is often more convenient to read vertex data in list format
than in a non-list format, using this class is recommended to avoid
convoluting classes used to process mesh data from an external source.
メソッドの概要 |
static void |
convertToList(Mesh mesh)
|
int |
get(int i)
Returns the vertex index for the given index in the index buffer. |
java.nio.Buffer |
getBuffer()
Returns the underlying data-type specific Buffer . |
クラス java.lang.Object から継承されたメソッド |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WrappedIndexBuffer
public WrappedIndexBuffer(Mesh mesh)
get
public int get(int i)
- クラス
IndexBuffer
の記述:
- Returns the vertex index for the given index in the index buffer.
- オーバーライド:
- クラス
VirtualIndexBuffer
内の get
- パラメータ:
i
- The index inside the index buffer
- 戻り値:
getBuffer
public java.nio.Buffer getBuffer()
- クラス
IndexBuffer
の記述:
- Returns the underlying data-type specific
Buffer
.
Implementations may return null if there's no underlying
buffer.
- オーバーライド:
- クラス
VirtualIndexBuffer
内の getBuffer
- 戻り値:
- the underlying
Buffer
.
convertToList
public static void convertToList(Mesh mesh)