Colobot
Public Member Functions | Public Attributes | List of all members
Gfx::LightProgression Struct Reference

Describes the progression of light parameters change. More...

#include <src/graphics/engine/lightman.h>

Public Member Functions

void Init (float value)
 Initializes the progression. More...
 
void Update (float rTime)
 Updates the progression. More...
 
void SetTarget (float value)
 Sets the new end value (starting is set to current) More...
 

Public Attributes

float starting
 Starting value. More...
 
float ending
 Ending (destination) value. More...
 
float current
 Current value. More...
 
float progress
 Progress from start to end. More...
 
float speed
 Speed of progression. More...
 

Detailed Description

Describes the progression of light parameters change.

Member Function Documentation

◆ Init()

void Gfx::LightProgression::Init ( float  value)

Initializes the progression.

◆ Update()

void Gfx::LightProgression::Update ( float  rTime)

Updates the progression.

◆ SetTarget()

void Gfx::LightProgression::SetTarget ( float  value)

Sets the new end value (starting is set to current)

Member Data Documentation

◆ starting

float Gfx::LightProgression::starting

Starting value.

◆ ending

float Gfx::LightProgression::ending

Ending (destination) value.

◆ current

float Gfx::LightProgression::current

Current value.

◆ progress

float Gfx::LightProgression::progress

Progress from start to end.

◆ speed

float Gfx::LightProgression::speed

Speed of progression.


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