
##############################
A3DGraphDirectionalLightCreate
##############################

.. c:function:: A3DStatus A3DGraphDirectionalLightCreate(const A3DGraphDirectionalLightData *pData, A3DGraphDirectionalLight **ppLight)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DGraphDirectionalLightCreate(*const* :c:struct:`~A3DGraphDirectionalLightData`\ \* **pData**\ , :c:type:`~A3DGraphDirectionalLight`\ \*\* **ppLight**\ )
   
   Creates a new directional source entity, returning its handle.
   
   
      2.0
   
   
   Once created, the new light entity can be referenced to by its handle, given by ``*ppLight``\ . In case of failure, ``*ppLight``\ is unchanged.
   
   
      :c:struct:`~A3DGraphDirectionalLightData`
   
   
   
      :c:func:`~A3DGraphDirectionalLightGet`
   
   
   
      :c:struct:`~A3DGraphAmbientLightData`
   
   
   
      :c:func:`~A3DGraphAmbientLightGet`
   
   
   
      :c:struct:`~A3DGraphPointLightData`
   
   
   
      :c:struct:`~A3DGraphSpotLightData`
   
   
   
      :c:struct:`~A3DGraphSceneDisplayParametersData`
   
   
   **Parameters**
   
   
      **pData**\ : The data used for light creation.
   
      **ppLight**\ : An address to the new handle after creation.
   
   
   **Returns**
   
   
      ``A3D_SUCCESS``\ or an error code in case of failure.
   
   




