IIndexBuffer
All Implemented Interfaces: com.aspose.threed.IBuffer
public interface IIndexBuffer extends IBuffer
The index buffer describes the geometry used in rendering pipeline.
Methods
Method | Description |
---|---|
getCount() | Gets the number of index in this buffer. |
getIndexDataType() | Gets the data type of each element. |
loadData(TriMesh mesh) | Load indice data from TriMesh |
loadData(int[] indices) | Load indice data |
loadData(short[] indices) | Load indice data |
getCount()
public abstract int getCount()
Gets the number of index in this buffer.
Returns: int
getIndexDataType()
public abstract IndexDataType getIndexDataType()
Gets the data type of each element.
Returns: IndexDataType
loadData(TriMesh mesh)
public abstract void loadData(TriMesh mesh)
Load indice data from TriMesh
Parameters:
Parameter | Type | Description |
---|---|---|
mesh | TriMesh |
loadData(int[] indices)
public abstract void loadData(int[] indices)
Load indice data
Parameters:
Parameter | Type | Description |
---|---|---|
indices | int[] |
loadData(short[] indices)
public abstract void loadData(short[] indices)
Load indice data
Parameters:
Parameter | Type | Description |
---|---|---|
indices | short[] |