NL3D::ILogicInfo Class Reference

#include <logic_info.h>


Detailed Description

An interface for UScene to retrieve client information for a specified UTransform ( see UTransfrom::setLogicInfo() ).

implemented by user. typically, methods are called during UScene::render() and are called only if necessary (typically after clip).

Author:
Lionel Berenguier

Nevrax France

Date:
2001

Definition at line 51 of file logic_info.h.

Public Member Functions

virtual void getStaticLightSetup (std::vector< CPointLightInfluence > &pointLightList, uint8 &sunContribution, NLMISC::CRGBA &localAmbient)=0
 ILogicInfo ()
 Constructor.

virtual ~ILogicInfo ()


Constructor & Destructor Documentation

NL3D::ILogicInfo::ILogicInfo  ) 
 

Constructor.

Definition at line 34 of file logic_info.cpp.

References NL3D_MEM_LOGIC.

00035 {
00036         NL3D_MEM_LOGIC
00037 }

NL3D::ILogicInfo::~ILogicInfo  )  [virtual]
 

Definition at line 38 of file logic_info.cpp.

References NL3D_MEM_LOGIC.

00039 {
00040         NL3D_MEM_LOGIC
00041 }


Member Function Documentation

virtual void NL3D::ILogicInfo::getStaticLightSetup std::vector< CPointLightInfluence > &  pointLightList,
uint8 sunContribution,
NLMISC::CRGBA localAmbient
[pure virtual]
 

This method must return the static light setup which influence the object attached with this ILogicInfo pointLightList.size() may not be 0. Deriver should just append his light and do not clear this list.

NB: called by CLightingManager::computeModelLightContributions() when needed

Parameters:
pointLightList append to this list static pointLights which may influence this object.
sunContribution contribution factor of the sun to apply to the transform.
localAmbient ig or landscape may replace sunAmbient with their special ambient. localAmbient.A tells the fraction of this color to take (255 => full contribution of the localAmbient, and no contribution of the ambient of the sun)

Referenced by NL3D::CLightingManager::computeModelLightContributions().


The documentation for this class was generated from the following files:
Generated on Tue Mar 16 08:38:44 2004 for NeL by doxygen 1.3.6