IIndexBuffer
All Implemented Interfaces: com.aspose.threed.IBuffer
public interface IIndexBuffer extends IBuffer
索引缓冲区描述了渲染管线中使用的几何体。
方法
| 方法 | 描述 |
|---|---|
| getCount() | 获取此缓冲区中的索引数量。 |
| getIndexDataType() | 获取每个元素的数据类型。 |
| loadData(TriMesh mesh) | 从 TriMesh 加载索引数据 |
| loadData(int[] indices) | 加载索引数据 |
| loadData(short[] indices) | 加载索引数据 |
getCount()
public abstract int getCount()
获取此缓冲区中的索引数量。
Returns: int - 此缓冲区中的索引数量。
getIndexDataType()
public abstract IndexDataType getIndexDataType()
获取每个元素的数据类型。
Returns: IndexDataType - the data type of each element.
loadData(TriMesh mesh)
public abstract void loadData(TriMesh mesh)
从 TriMesh 加载索引数据
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| mesh | TriMesh |
loadData(int[] indices)
public abstract void loadData(int[] indices)
加载索引数据
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 索引 | int[] |
loadData(short[] indices)
public abstract void loadData(short[] indices)
加载索引数据
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 索引 | short[] |