A3DGlobalIsMaterialTexture

A3DStatus A3DGlobalIsMaterialTexture(const A3DUns32 uiIndexMaterial, A3DBool *pbIsTexture)
A3DStatus A3DGlobalIsMaterialTexture(const A3DUns32 uiIndexMaterial, A3DBool* pbIsTexture)

Determine whether the data at the index uiIndexMaterial in the global array of materials is an A3DGraphTextureApplication or an A3DGraphMaterialData.

Return Values

A3D_INITIALIZE_NOT_CALLED: if the library has not been initialized via A3DDllInitialize

A3D_INVALID_DATA_STRUCT_NULL: if pbIsTexture is null

A3D_SUCCESS: returned on success

Parameters

uiIndexMaterial: The index into the global materials array, as sized by A3DGlobalData::m_uiMaterialsSize

pbIsTexture: Set to A3D_TRUE if the indexed entry is an A3DGraphTextureApplication or set to A3D_FALSE if it is an A3DGraphMaterialData

Returns

A3D_SUCCESS on success, or an error code on failure