
############################
A3DGraphDirectionalLightData
############################

.. c:struct:: A3DGraphDirectionalLightData

   Data for a directional light source entity (``A3DGraphDirectionalLight``\ )
   
   
      2.0
   
   
   A directional light simulates a source which is far away from the scene. In that situation, all light rays are coming from the same direction, regardless of the position of the illuminated object or the viewer. The illumination only depends on the light orientation, and not its position.
   
   All colors within this structure are global indexes to RGB color codes. The actual values can be queried using ``A3DGlobalGetGraphRgbColorData``\ .
   
   ``A3DGraphDirectionalLightData``\ is one of the four light source types provided by HOOPS. It is associated to the ``kA3DTypeGraphDirectionalLight``\ entity type. The other available light sources are ``A3DGraphAmbientLightData``\ , ``A3DGraphPointLightData``\ and ``A3DGraphSpotLightData``\ .
   
   
      :c:func:`~A3DGraphDirectionalLightGet`
   
   
   
      :c:func:`~A3DGraphDirectionalLightCreate`
   
   
   
      :c:struct:`~A3DGraphRgbColorData`
   
   
   
      :c:func:`~A3DGlobalGetGraphRgbColorData`
   
   
   
      :c:func:`~A3DGlobalInsertGraphRgbColor`
   
   
   
      :c:struct:`~A3DGraphMaterialData`
   
   
   
      :c:struct:`~A3DGraphAmbientLightData`
   
   
   
      :c:struct:`~A3DGraphPointLightData`
   
   
   
      :c:struct:`~A3DGraphSpotLightData`
   
   
   Directional light source data.
   
   
      2.0
   
   
   
   Index
   =====
   
   .. rubric:: Variables
   
   
   .. rst-class:: api-xref-list
   
   
   * :c:member:`~A3DGraphDirectionalLightData.m_uiAmbientColorIndex`
   * :c:member:`~A3DGraphDirectionalLightData.m_uiDiffuseColorIndex`
   * :c:member:`~A3DGraphDirectionalLightData.m_uiSpecularColorIndex`
   * :c:member:`~A3DGraphDirectionalLightData.m_dIntensity`
   * :c:member:`~A3DGraphDirectionalLightData.m_sDirection`
   
   



.. rst-class:: kind-group kind-variable

.. rubric:: Variables
   :class: kind-group-title


.. c:member:: A3DUns32 A3DGraphDirectionalLightData.m_uiAmbientColorIndex

      .. rst-class:: sig-pretty-signature
      
         | :c:type:`~A3DUns32`
      
      The main or ambient color of the light source.
      



.. c:member:: A3DUns32 A3DGraphDirectionalLightData.m_uiDiffuseColorIndex

      .. rst-class:: sig-pretty-signature
      
         | :c:type:`~A3DUns32`
      
      The diffuse color of the light source.
      



.. c:member:: A3DUns32 A3DGraphDirectionalLightData.m_uiSpecularColorIndex

      .. rst-class:: sig-pretty-signature
      
         | :c:type:`~A3DUns32`
      
      The specular color of the light source.
      



.. c:member:: A3DDouble A3DGraphDirectionalLightData.m_dIntensity

      .. rst-class:: sig-pretty-signature
      
         | :c:type:`~A3DDouble`
      
      Density.
      



.. c:member:: A3DVector3dData A3DGraphDirectionalLightData.m_sDirection

      .. rst-class:: sig-pretty-signature
      
         | :c:struct:`~A3DVector3dData`
      
      Direction.
      




