A3DMiscPointerFromIndexGet

A3DStatus A3DMiscPointerFromIndexGet(const A3DUns32 uiIndex, const A3DEEntityType eType, A3DEntity **ppEntity)
A3DStatus A3DMiscPointerFromIndexGet(const A3DUns32 uiIndex, const A3DEEntityType eType, A3DEntity** ppEntity)

Retrieve the handle of an indexed entity.

2.0

Even if they are usually accessed using a numerical index from the global data, entities such as A3DGraphMaterialData each have a handle like any other entity.

This function allows you to retrieve the entity handle behind an indexed data. From the entity, additional content can be obtained, such as meta-data.

Parameters

uiIndex: The index of the data in the global data

eType: The expected entity type

ppEntity: A pointer to the resulting entity handle

Returns

A3D_SUCCESS or A3D_ERROR