com.jme3.scene.mesh
クラス IndexBuffer

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

public abstract class IndexBuffer
extends java.lang.Object

IndexBuffer is an abstraction for integer index buffers, it is used to retrieve indices without knowing in which format they are stored (ushort or uint).


コンストラクタの概要
IndexBuffer()
           
 
メソッドの概要
static IndexBuffer createIndexBuffer(int vertexCount, int indexCount)
          Creates an index buffer that can contain the given amount of vertices.
abstract  int get(int i)
          Returns the vertex index for the given index in the index buffer.
abstract  java.nio.Buffer getBuffer()
          Returns the underlying data-type specific Buffer.
abstract  void put(int i, int value)
          Puts the vertex index at the index buffer's index.
abstract  int size()
          Returns the size of the index buffer.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

IndexBuffer

public IndexBuffer()
メソッドの詳細

createIndexBuffer

public static IndexBuffer createIndexBuffer(int vertexCount,
                                            int indexCount)
Creates an index buffer that can contain the given amount of vertices. Returns IndexShortBuffer

パラメータ:
vertexCount - The amount of vertices to contain
indexCount - The amount of indices to contain.
戻り値:
A new index buffer

get

public abstract int get(int i)
Returns the vertex index for the given index in the index buffer.

パラメータ:
i - The index inside the index buffer
戻り値:

put

public abstract void put(int i,
                         int value)
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).


size

public abstract int size()
Returns the size of the index buffer.

戻り値:
the size of the index buffer.

getBuffer

public abstract java.nio.Buffer getBuffer()
Returns the underlying data-type specific Buffer. Implementations may return null if there's no underlying buffer.

戻り値:
the underlying Buffer.