OpenMW
|
#include <weather.hpp>
Public Member Functions | |
TimeOfDayInterpolator (const T &sunrise, const T &day, const T &sunset, const T &night) | |
T | getValue (const float gameHour, const TimeOfDaySettings &timeSettings) const |
Private Attributes | |
T | mSunriseValue |
T | mDayValue |
T | mSunsetValue |
T | mNightValue |
Interpolates between 4 data points (sunrise, day, sunset, night) based on the time of day. The template value could be a floating point number, or a color.
|
inline |
T TimeOfDayInterpolator::getValue | ( | const float | gameHour, |
const TimeOfDaySettings & | timeSettings | ||
) | const |
|
private |
|
private |
|
private |
|
private |