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

A PointLight for Dynamic LightMap (DLM) context for a patch. More...

#include <patchdlm_context.h>

List of all members.

Public Methods

void compile (const CPointLight &pl, NLMISC::CRGBA landDiffMat, float maxAttEnd=30.f)

Public Attributes

float R
float G
float B
bool IsSpot
CVector Pos
CVector Dir
float CosMax
float CosMin
float OOCosDelta
float AttMax
float AttMin
float OOAttDelta
NLMISC::CBSphere BSphere
NLMISC::CAABBox BBox


Detailed Description

A PointLight for Dynamic LightMap (DLM) context for a patch.

It contains precomputed values.

Author:
Lionel Berenguier , Nevrax France
Date:
2002

Definition at line 55 of file patchdlm_context.h.


Member Function Documentation

void NL3D::CPatchDLMPointLight::compile const CPointLight   pl,
NLMISC::CRGBA    landDiffMat,
float    maxAttEnd = 30.f
 

Definition at line 52 of file patchdlm_context.cpp.

References AttMax, AttMin, NLMISC::CRGBA::B, B, BBox, BSphere, NLMISC::CBSphere::Center, CosMax, CosMin, Dir, NLMISC::CRGBA::G, G, IsSpot, min, nlassert, OOAttDelta, OOCosDelta, Pos, NLMISC::CRGBA::R, R, NLMISC::CBSphere::Radius, NLMISC::CAABBox::setCenter, NLMISC::CAABBox::setHalfSize, and NLMISC::sqr.


Member Data Documentation

float NL3D::CPatchDLMPointLight::AttMax
 

Definition at line 73 of file patchdlm_context.h.

Referenced by compile.

float NL3D::CPatchDLMPointLight::AttMin
 

Definition at line 75 of file patchdlm_context.h.

Referenced by compile.

float NL3D::CPatchDLMPointLight::B
 

Definition at line 59 of file patchdlm_context.h.

Referenced by compile.

NLMISC::CAABBox NL3D::CPatchDLMPointLight::BBox
 

Definition at line 84 of file patchdlm_context.h.

Referenced by compile.

NLMISC::CBSphere NL3D::CPatchDLMPointLight::BSphere
 

Definition at line 81 of file patchdlm_context.h.

Referenced by compile.

float NL3D::CPatchDLMPointLight::CosMax
 

Definition at line 67 of file patchdlm_context.h.

Referenced by compile.

float NL3D::CPatchDLMPointLight::CosMin
 

Definition at line 69 of file patchdlm_context.h.

Referenced by compile.

CVector NL3D::CPatchDLMPointLight::Dir
 

Definition at line 65 of file patchdlm_context.h.

Referenced by compile.

float NL3D::CPatchDLMPointLight::G
 

Definition at line 59 of file patchdlm_context.h.

Referenced by compile.

bool NL3D::CPatchDLMPointLight::IsSpot
 

Definition at line 61 of file patchdlm_context.h.

Referenced by compile.

float NL3D::CPatchDLMPointLight::OOAttDelta
 

Definition at line 77 of file patchdlm_context.h.

Referenced by compile.

float NL3D::CPatchDLMPointLight::OOCosDelta
 

Definition at line 71 of file patchdlm_context.h.

Referenced by compile.

CVector NL3D::CPatchDLMPointLight::Pos
 

Definition at line 63 of file patchdlm_context.h.

Referenced by compile.

float NL3D::CPatchDLMPointLight::R
 

Definition at line 59 of file patchdlm_context.h.

Referenced by compile.


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