# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::ILogicInfo Class Reference

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

#include <logic_info.h>

List of all members.

Public Methods

 ILogicInfo ()
 Constructor. More...

virtual ~ILogicInfo ()
virtual void getStaticLightSetup (std::vector< CPointLightInfluence > &pointLightList, uint8 &sunContribution, NLMISC::CRGBA &localAmbient)=0
 This method must return the static light setup which influence the object attached with this ILogicInfo pointLightList.size() may not be 0. More...


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.


Constructor & Destructor Documentation

NL3D::ILogicInfo::ILogicInfo  
 

Constructor.

Definition at line 34 of file logic_info.cpp.

References NL3D_MEM_LOGIC.

NL3D::ILogicInfo::~ILogicInfo   [virtual]
 

Definition at line 38 of file logic_info.cpp.

References NL3D_MEM_LOGIC.


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)


The documentation for this class was generated from the following files: