
######################
A3DGraphPointLightData
######################

.. c:struct:: A3DGraphPointLightData

   Data for a point light source entity (``A3DGraphPointLight``\ )
   
   
      2.0
   
   
   A point light, or position light, is a light source with a given position in the world space. It illuminate in all directions, with the light rays fading over the distance. Basic lighting computations on objects will mainly depend on how far they are from such light sources.
   
   All colors within this structure are global indexes to RGB color codes. The actual values can be queried using ``A3DGlobalGetGraphRgbColorData``\ .
   
   ``A3DGraphPointLightData``\ is one of the four light source types provided by HOOPS. It is associated to the ``kA3DTypeGraphPointLight``\ entity type. The other available light sources are ``A3DGraphAmbientLightData``\ , ``A3DGraphSpotLightData``\ and ``A3DGraphDirectionalLightData``\ .
   
   
      :c:func:`~A3DGraphPointLightGet`
   
   
   
      :c:func:`~A3DGraphPointLightCreate`
   
   
   
      :c:struct:`~A3DGraphRgbColorData`
   
   
   
      :c:func:`~A3DGlobalGetGraphRgbColorData`
   
   
   
      :c:func:`~A3DGlobalInsertGraphRgbColor`
   
   
   
      :c:struct:`~A3DGraphMaterialData`
   
   
   
      :c:struct:`~A3DGraphAmbientLightData`
   
   
   
      :c:struct:`~A3DGraphDirectionalLightData`
   
   
   
      :c:struct:`~A3DGraphSpotLightData`
   
   
   
   Index
   =====
   
   .. rubric:: Variables
   
   
   .. rst-class:: api-xref-list
   
   
   * :c:member:`~A3DGraphPointLightData.m_uiAmbientColorIndex`
   * :c:member:`~A3DGraphPointLightData.m_uiDiffuseColorIndex`
   * :c:member:`~A3DGraphPointLightData.m_uiSpecularColorIndex`
   * :c:member:`~A3DGraphPointLightData.m_sLocation`
   * :c:member:`~A3DGraphPointLightData.m_dConstantAttenuation`
   * :c:member:`~A3DGraphPointLightData.m_dLinearAttenuation`
   * :c:member:`~A3DGraphPointLightData.m_dQuadraticAttenuation`
   
   



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

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


.. c:member:: A3DUns32 A3DGraphPointLightData.m_uiAmbientColorIndex

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



.. c:member:: A3DUns32 A3DGraphPointLightData.m_uiDiffuseColorIndex

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



.. c:member:: A3DUns32 A3DGraphPointLightData.m_uiSpecularColorIndex

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



.. c:member:: A3DVector3dData A3DGraphPointLightData.m_sLocation

      .. rst-class:: sig-pretty-signature
      
         | :c:struct:`~A3DVector3dData`
      
      The light source position in world space coordinates.
      



.. c:member:: A3DDouble A3DGraphPointLightData.m_dConstantAttenuation

      .. rst-class:: sig-pretty-signature
      
         | :c:type:`~A3DDouble`
      
      Constant attenuation factor usually set to *1.0*\ .
      



.. c:member:: A3DDouble A3DGraphPointLightData.m_dLinearAttenuation

      .. rst-class:: sig-pretty-signature
      
         | :c:type:`~A3DDouble`
      
      Linear attenuation factor.
      



.. c:member:: A3DDouble A3DGraphPointLightData.m_dQuadraticAttenuation

      .. rst-class:: sig-pretty-signature
      
         | :c:type:`~A3DDouble`
      
      Quadratic attenuation factor.
      




