# 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::CVegetableLightEx Class Reference

Additional information to light Vegetables. More...

#include <vegetable_light_ex.h>

List of all members.

Public Types

enum  { MaxNumLight = 2 }
 Must not change (hardcoded). More...


Public Methods

 CVegetableLightEx ()
void computeCurrentColors ()
 Fill Color array according to PointLight[] and PointLightFactor[]. More...


Public Attributes

uint NumLights
 Number Of light currently really enabled. More...

CPointLightPointLight [MaxNumLight]
 PointLights. Used at CVegetableManager::updateLighting() to get current colors of pointLights. More...

CVector Direction [MaxNumLight]
 Direction of the light. the direction to the instance should be precomputed. More...

uint PointLightFactor [MaxNumLight]
 Factor to be multiplied by color of the light. Actually it is the attenuation factor. More...

NLMISC::CRGBA Color [MaxNumLight]
 Current Color of the light. More...


Detailed Description

Additional information to light Vegetables.

2 "precomputed" pointLights can additionally light the vegetables.

Author:
Lionel Berenguier , Nevrax France
Date:
2002

Definition at line 48 of file vegetable_light_ex.h.


Member Enumeration Documentation

anonymous enum
 

Must not change (hardcoded).

Enumeration values:
MaxNumLight 

Definition at line 53 of file vegetable_light_ex.h.


Constructor & Destructor Documentation

NL3D::CVegetableLightEx::CVegetableLightEx   [inline]
 

Definition at line 68 of file vegetable_light_ex.h.

References NumLights.


Member Function Documentation

void NL3D::CVegetableLightEx::computeCurrentColors  
 

Fill Color array according to PointLight[] and PointLightFactor[].

Definition at line 36 of file vegetable_light_ex.cpp.

References Color, NLMISC::CRGBA::modulateFromui, NumLights, PointLight, PointLightFactor, and uint.


Member Data Documentation

NLMISC::CRGBA NL3D::CVegetableLightEx::Color[MaxNumLight]
 

Current Color of the light.

Definition at line 65 of file vegetable_light_ex.h.

Referenced by computeCurrentColors.

CVector NL3D::CVegetableLightEx::Direction[MaxNumLight]
 

Direction of the light. the direction to the instance should be precomputed.

Definition at line 60 of file vegetable_light_ex.h.

uint NL3D::CVegetableLightEx::NumLights
 

Number Of light currently really enabled.

Definition at line 56 of file vegetable_light_ex.h.

Referenced by computeCurrentColors, and CVegetableLightEx.

CPointLight* NL3D::CVegetableLightEx::PointLight[MaxNumLight]
 

PointLights. Used at CVegetableManager::updateLighting() to get current colors of pointLights.

Definition at line 58 of file vegetable_light_ex.h.

Referenced by computeCurrentColors.

uint NL3D::CVegetableLightEx::PointLightFactor[MaxNumLight]
 

Factor to be multiplied by color of the light. Actually it is the attenuation factor.

Definition at line 62 of file vegetable_light_ex.h.

Referenced by computeCurrentColors.


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