
##########################
A3DGlobalGetGraphStyleData
##########################

.. c:function:: A3DStatus A3DGlobalGetGraphStyleData(const A3DUns32 uiIndexStyle, A3DGraphStyleData *pData)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DGlobalGetGraphStyleData(*const* :c:type:`~A3DUns32` **uiIndexStyle**\ , :c:struct:`~A3DGraphStyleData`\ \* **pData**\ )
   
   Retrieves an indexed graph style.
   
   
      2.0
   
   
   HOOPS stores styles in a global state using indexes. When given an index, you may call ``A3DGlobalGetGraphStyleData``\ to fill in an ``A3DGraphStyleData``\ instance.
   
   
   ::
   
      //Retrievesthegraphstyleatindex3.Useinitializedstyleasdefault:
      A3DGraphStyleDatastyle=A3D_MAKE_DATA(A3DGraphStyleData);
      A3DStatusresult=A3DGlobalGetGraphStyleData(3,&style);
      assert(result==A3D_SUCCESS);
   
   **Parameters**
   
   
      **uiIndexStyle**\ : The index of the style to retrieve data from
   
      **pData**\ : The ``A3DGraphRgbColorData``\ to fill in.
   
   
   **Returns**
   
   
      ``A3D_SUCCESS``\ or an error code in case of failure.
   
   




