|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CIGSurfaceLight Class ReferenceClass owned by CInstanceGroup to get StaticLightSetup for dynamic models.
More...
#include <ig_surface_light.h>
List of all members.
Detailed Description
Class owned by CInstanceGroup to get StaticLightSetup for dynamic models.
It owns a map of SurfaceIdent -> CSurfaceLightGrid -
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2002
Definition at line 48 of file ig_surface_light.h.
Member Typedef Documentation
typedef TRetrieverGridMap::iterator NL3D::CIGSurfaceLight::ItRetrieverGridMap
|
|
Constructor & Destructor Documentation
NL3D::CIGSurfaceLight::CIGSurfaceLight |
( |
|
) |
|
|
Member Function Documentation
void NL3D::CIGSurfaceLight::build |
( |
const TRetrieverGridMap & |
retrieverGridMap, |
|
|
float |
cellSize, |
|
|
const std::vector< uint > & |
plRemap |
|
) |
|
|
void NL3D::CIGSurfaceLight::clear |
( |
|
) |
|
|
float NL3D::CIGSurfaceLight::getCellSize |
( |
|
) |
const [inline] |
|
float NL3D::CIGSurfaceLight::getOOCellSize |
( |
|
) |
const [inline] |
|
bool NL3D::CIGSurfaceLight::getStaticLightSetup |
( |
const std::string & |
retrieverIdentifier, |
|
|
sint |
surfaceId, |
|
|
const CVector & |
localPos, |
|
|
std::vector< CPointLightInfluence > & |
pointLightList, |
|
|
uint8 & |
sunContribution, |
|
|
NLMISC::CRGBA & |
localAmbient |
|
) |
|
|
|
Get StaticLightSetup Infos from the grid.
-
Parameters:
-
retrieverIdentifier |
value returned by CClobalRetriever::getIdentifier(globalPos). |
surfaceId |
the id of the surface in the LocalRetriever |
localPos |
position to retrieve info. Position local to the LocalRetriever!! ie gp.LocalPosition.Estimated |
pointLightList |
list of pointlight to append pointLight influecnes |
-
Returns:
-
false if retrieverIdentifier / surfaceId is not found. In this case pointLightList is not modified, and sunContribution is set to 255, and localAmbient is set to 0
Definition at line 108 of file ig_surface_light.cpp.
References _Owner, _RetrieverGridMap, ItRetrieverGridMap, nlassert, and NLMISC::CRGBA::set. |
Friends And Related Function Documentation
friend class CSurfaceLightGrid [friend]
|
|
Member Data Documentation
float NL3D::CIGSurfaceLight::_CellSize [private]
|
|
float NL3D::CIGSurfaceLight::_OOCellSize [private]
|
|
The documentation for this class was generated from the following files:
|
|