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

For landscape. More...

#include <tile_light_influence.h>

List of all members.

Public Types

enum  { NumLightPerCorner = 2 }
 We support only 2 light per corner. Should never be changed. More...


Public Methods

 CTileLightInfluence ()
 Constructor. More...

void setDiffuseLightFactor (uint i, uint8 factor)
 i: 0 or 1. factor E [0..255] is the factor of influence (gouraud) of the ith light. NB: stored on 4 bits. More...

uint8 getDiffuseLightFactor (uint i) const
 see setDiffuseLightFactor(). return uint8 E [0, 255]. More...

void serial (NLMISC::IStream &f)

Public Attributes

uint8 Light [NumLightPerCorner]
 List of lights. More...


Private Attributes

uint8 PackedLightFactor
 Packed. More...


Detailed Description

For landscape.

A descriptor of light which influence a corner of a TessBlock: 2 lights Ids (points to PointLight in zone), with 2 diffuseLightFactor.

Author:
Lionel Berenguier , Nevrax France
Date:
2001

Definition at line 45 of file tile_light_influence.h.


Member Enumeration Documentation

anonymous enum
 

We support only 2 light per corner. Should never be changed.

Enumeration values:
NumLightPerCorner 

Definition at line 50 of file tile_light_influence.h.


Constructor & Destructor Documentation

NL3D::CTileLightInfluence::CTileLightInfluence   [inline]
 

Constructor.

Definition at line 54 of file tile_light_influence.h.


Member Function Documentation

uint8 NL3D::CTileLightInfluence::getDiffuseLightFactor uint    i const
 

see setDiffuseLightFactor(). return uint8 E [0, 255].

Definition at line 53 of file tile_light_influence.cpp.

References nlassert, and PackedLightFactor.

void NL3D::CTileLightInfluence::serial NLMISC::IStream   f
 

Definition at line 67 of file tile_light_influence.cpp.

References Light, nlassert, PackedLightFactor, and NLMISC::IStream::serial.

void NL3D::CTileLightInfluence::setDiffuseLightFactor uint    i,
uint8    factor
 

i: 0 or 1. factor E [0..255] is the factor of influence (gouraud) of the ith light. NB: stored on 4 bits.

Definition at line 36 of file tile_light_influence.cpp.

References nlassert, and PackedLightFactor.


Member Data Documentation

uint8 NL3D::CTileLightInfluence::Light[NumLightPerCorner]
 

List of lights.

Id==0xFF => no light. if Light[i]==0xFF, then Light[j] with j>i is supposed disalbed too.

Definition at line 60 of file tile_light_influence.h.

Referenced by serial.

uint8 NL3D::CTileLightInfluence::PackedLightFactor [private]
 

Packed.

Definition at line 74 of file tile_light_influence.h.

Referenced by getDiffuseLightFactor, serial, and setDiffuseLightFactor.


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