Back to bsyte

LightPoint Class Reference

Klasse fuer ein Punktlicht. More...

#include <LightPoint.h>

Collaboration diagram for LightPoint:

List of all members.

Public Member Functions

 LightPoint ()
 Konstruktor.
 LightPoint (float posX, float posY, float posZ, bool castShadows, float range, float intensity, float constant, float linear, float quadratic)
 Konstruktor mit Parameters.
virtual ~LightPoint ()
 Destruktor.
void set (float posX, float posY, float posZ, bool castShadows, float range, float intensity, float constant, float linear, float quadratic)
 Setter fuer die Positionskoordinate.
void setMax (float ys)
 Berechnet einige Parameter.
float calc (float distance)
 Berechnet den C Wert nach folgender Formel: 1 C = --------------------------------------------------- * C' constant + linear*distance + quadratic * distance^2.

Public Attributes

Vec m_pos
bool m_castShadows
float m_range
float m_intensity
float m_constant
float m_linear
float m_quadratic

Private Member Functions

void init ()
 Allgemeine Initialisierung.

Private Attributes

float m_pointMax

Detailed Description

Klasse fuer ein Punktlicht.


Constructor & Destructor Documentation

LightPoint::LightPoint ( )

Konstruktor.

Here is the call graph for this function:

LightPoint::LightPoint ( float  posX,
float  posY,
float  posZ,
bool  castShadows,
float  range,
float  intensity,
float  constant,
float  linear,
float  quadratic 
)

Konstruktor mit Parameters.

Parameters:
posX
posY
posZ
castShadows
range
intensity
constant
linear
quadratic

Here is the call graph for this function:

LightPoint::~LightPoint ( ) [virtual]

Destruktor.


Member Function Documentation

float LightPoint::calc ( float  distance)

Berechnet den C Wert nach folgender Formel: 1 C = --------------------------------------------------- * C' constant + linear*distance + quadratic * distance^2.

Parameters:
distance
Returns:
c

Here is the caller graph for this function:

void LightPoint::init ( ) [private]

Allgemeine Initialisierung.

Here is the call graph for this function:

Here is the caller graph for this function:

void LightPoint::set ( float  posX,
float  posY,
float  posZ,
bool  castShadows,
float  range,
float  intensity,
float  constant,
float  linear,
float  quadratic 
)

Setter fuer die Positionskoordinate.

Parameters:
posX
posY
posZ
castShadows
range
intensity
constant
linear
quadratic

Here is the call graph for this function:

void LightPoint::setMax ( float  max)

Berechnet einige Parameter.

Parameters:
max0...1

Here is the caller graph for this function:


Member Data Documentation

float LightPoint::m_pointMax [private]

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