
#############################
A3DGlobalGetGraphMaterialData
#############################

.. c:function:: A3DStatus A3DGlobalGetGraphMaterialData(const A3DUns32 uiIndexMaterial, A3DGraphMaterialData *pData)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DGlobalGetGraphMaterialData(*const* :c:type:`~A3DUns32` **uiIndexMaterial**\ , :c:struct:`~A3DGraphMaterialData`\ \* **pData**\ )
   
   Retrieves an indexed RGB color.
   
   
      2.0
   
   
   HOOPS stores materials in a global state using indexes. When given an index, call ``A3DGlobalGetGraphMaterialData``\ to fill in an ``A3DGraphMaterialData``\ instance.
   
   
   ::
   
      //Retrievesthematerialdataatindex3:
      A3DGraphMaterialDatamaterial_data=A3D_MAKE_DATA(A3DGraphMaterialData);
      A3DStatusresult=A3DGlobalGetGraphMaterialData(3,&material_data);
      assert(result==A3D_SUCCESS);
   
   **Parameters**
   
   
      **uiIndexMaterial**\ : The index of the material
   
      **pData**\ : The ``A3DGraphMaterialData``\ to fill in.
   
   
   **Returns**
   
   
      ``A3D_SUCCESS``\ or an error code in case of failure.
   
   




