IIndexBuffer

All Implemented Interfaces: com.aspose.threed.IBuffer

public interface IIndexBuffer extends IBuffer

The index buffer describes the geometry used in rendering pipeline.

Methods

MethodDescription
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:

ParameterTypeDescription
meshTriMesh

loadData(int[] indices)

public abstract void loadData(int[] indices)

Load indice data

Parameters:

ParameterTypeDescription
indicesint[]

loadData(short[] indices)

public abstract void loadData(short[] indices)

Load indice data

Parameters:

ParameterTypeDescription
indicesshort[]