
##########################
A3DGlobalIsMaterialTexture
##########################

.. c:function:: A3DStatus A3DGlobalIsMaterialTexture(const A3DUns32 uiIndexMaterial, A3DBool *pbIsTexture)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DGlobalIsMaterialTexture(*const* :c:type:`~A3DUns32` **uiIndexMaterial**\ , :c:type:`~A3DBool`\ \* **pbIsTexture**\ )
   
   Determine whether the data at the index uiIndexMaterial in the global array of materials is an :c:type:`~A3DGraphTextureApplication` or an :c:struct:`~A3DGraphMaterialData`\ .
   
   
      2.0
   
   
   
      :ref:`Texture Application <group__a3dtexture__application>`
   
   
   **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
   
   




