|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.scene.mesh.IndexBuffer
com.jme3.scene.mesh.VirtualIndexBuffer
public class VirtualIndexBuffer
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:
Mesh.Mode.Triangles
: 0, 1, 2 | 3, 4, 5 | 6, 7, 8 | ...Mesh.Mode.TriangleStrip
: 0, 1, 2 | 2, 1, 3 | 2, 3, 4 | ...Mesh.Mode.TriangleFan
: 0, 1, 2 | 0, 2, 3 | 0, 3, 4 | ...
コンストラクタの概要 | |
---|---|
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 |
コンストラクタの詳細 |
---|
public VirtualIndexBuffer(int numVerts, Mesh.Mode meshMode)
メソッドの詳細 |
---|
public int get(int i)
IndexBuffer
の記述:
IndexBuffer
内の get
i
- The index inside the index buffer
public void put(int i, int value)
IndexBuffer
の記述:UnsupportedOperationException
if modifying the IndexBuffer is not supported (e.g. virtual index
buffers).
IndexBuffer
内の put
public int size()
IndexBuffer
の記述:
IndexBuffer
内の size
public java.nio.Buffer getBuffer()
IndexBuffer
の記述:Buffer
.
Implementations may return null if there's no underlying
buffer.
IndexBuffer
内の getBuffer
Buffer
.
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |