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.


コンストラクタの概要
WrappedIndexBuffer(Mesh mesh)
           
 
メソッドの概要
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.
 
クラス com.jme3.scene.mesh.VirtualIndexBuffer から継承されたメソッド
put, size
 
クラス com.jme3.scene.mesh.IndexBuffer から継承されたメソッド
createIndexBuffer
 
クラス 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)