com.jme3.scene.mesh
クラス VirtualIndexBuffer

java.lang.Object
  上位を拡張 com.jme3.scene.mesh.IndexBuffer
      上位を拡張 com.jme3.scene.mesh.VirtualIndexBuffer
直系の既知のサブクラス:
WrappedIndexBuffer

public class VirtualIndexBuffer
extends IndexBuffer

IndexBuffer implementation that generates vertex indices sequentially based on a specific Mesh Mesh.Mode. The generated indices are as if the mesh is in the given mode but contains no index buffer, thus this implementation will return the indices if the index buffer was there and contained sequential triangles. Example:


コンストラクタの概要
VirtualIndexBuffer(int numVerts, Mesh.Mode meshMode)
           
 
メソッドの概要
 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.
 void put(int i, int value)
          Puts the vertex index at the index buffer's index.
 int size()
          Returns the size of the index buffer.
 
クラス com.jme3.scene.mesh.IndexBuffer から継承されたメソッド
createIndexBuffer
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

VirtualIndexBuffer

public VirtualIndexBuffer(int numVerts,
                          Mesh.Mode meshMode)
メソッドの詳細

get

public int get(int i)
クラス IndexBuffer の記述:
Returns the vertex index for the given index in the index buffer.

定義:
クラス IndexBuffer 内の get
パラメータ:
i - The index inside the index buffer
戻り値:

put

public void put(int i,
                int value)
クラス IndexBuffer の記述:
Puts the vertex index at the index buffer's index. Implementations may throw an UnsupportedOperationException if modifying the IndexBuffer is not supported (e.g. virtual index buffers).

定義:
クラス IndexBuffer 内の put

size

public int size()
クラス IndexBuffer の記述:
Returns the size of the index buffer.

定義:
クラス IndexBuffer 内の size
戻り値:
the size of 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.

定義:
クラス IndexBuffer 内の getBuffer
戻り値:
the underlying Buffer.