The Nebula Device 3: GraphicsFeature::LightFlickerUtil Class Reference

The Nebula Device 3

GraphicsFeature::LightFlickerUtil Class Reference

#include <lightflickerutil.h>


Detailed Description

Manipulate a light entity with position and intensity flickering.

(C) 2007 Radon Labs GmbH

Public Member Functions

 LightFlickerUtil ()
 constructor
void SetLightEntity (const Ptr< Graphics::AbstractLightEntity > &e)
 set light entity to manipulate
const Ptr< Graphics::AbstractLightEntity > & GetLightEntity () const
 get light entity
bool HasLightEntity () const
 return true if entity is valid
void SetEnabled (bool b)
 enable/disable flickering
bool IsEnabled () const
 is flickering enabled?
void SetFrequency (float f)
 set flicker frequency
float GetFrequency () const
 get flicker frequency
void SetIntensityAmplitude (float f)
 set intensity flicker amplitude
float GetIntensityAmplitude () const
 get intensity flicker amplitude
void SetPositionAmplitude (float f)
 set position flicker amplitude
float GetPositionAmplitude () const
 get position flicker aplitude
void Update ()
 update the light source, call this method once per frame

Member Function Documentation

void GraphicsFeature::LightFlickerUtil::Update (  ) 

update the light source, call this method once per frame

This changes the transformation offset matrix and the intensity modulation of the light entity.