Landscape.hpp   Landscape.hpp 
skipping to change at line 81 skipping to change at line 81
{ {
landFader.update((int)(deltaTime*1000)); landFader.update((int)(deltaTime*1000));
fogFader.update((int)(deltaTime*1000)); fogFader.update((int)(deltaTime*1000));
illumFader.update((int)(deltaTime*1000)); illumFader.update((int)(deltaTime*1000));
} }
//! Set the brightness of the landscape plus brightness of optional add-on night lightscape. //! Set the brightness of the landscape plus brightness of optional add-on night lightscape.
//! This is called in each draw(). //! This is called in each draw().
void setBrightness(const float b, const float pollutionBrightness=0. 0f) {landscapeBrightness = b; lightScapeBrightness=pollutionBrightness; } void setBrightness(const float b, const float pollutionBrightness=0. 0f) {landscapeBrightness = b; lightScapeBrightness=pollutionBrightness; }
//! Returns the current brightness level
float getBrightness() const { return landscapeBrightness; }
//! Returns the lightscape brightness
float getLightscapeBrightness() const { return lightScapeBrightness;
}
//! Returns the lightscape brighness modulated with the fader's targ
et state (i.e. binary on/off)
float getTargetLightscapeBrightness() const { return lightScapeBrigh
tness * illumFader; }
//! Gets the currently effective lightscape brightness (modulated by
the fader)
float getEffectiveLightscapeBrightness() const { return lightScapeBr
ightness * illumFader.getInterstate(); }
//! Set whether landscape is displayed (does not concern fog) //! Set whether landscape is displayed (does not concern fog)
void setFlagShow(const bool b) {landFader=b;} void setFlagShow(const bool b) {landFader=b;}
//! Get whether landscape is displayed (does not concern fog) //! Get whether landscape is displayed (does not concern fog)
bool getFlagShow() const {return (bool)landFader;} bool getFlagShow() const {return (bool)landFader;}
//! Returns the currently effective land fade value
float getEffectiveLandFadeValue() { return landFader.getInterstate()
; }
//! Set whether fog is displayed //! Set whether fog is displayed
void setFlagShowFog(const bool b) {fogFader=b;} void setFlagShowFog(const bool b) {fogFader=b;}
//! Get whether fog is displayed //! Get whether fog is displayed
bool getFlagShowFog() const {return (bool)fogFader;} bool getFlagShowFog() const {return (bool)fogFader;}
//! Set whether illumination is displayed //! Set whether illumination is displayed
void setFlagShowIllumination(const bool b) {illumFader=b;} void setFlagShowIllumination(const bool b) {illumFader=b;}
//! Get whether illumination is displayed //! Get whether illumination is displayed
bool getFlagShowIllumination() const {return (bool)illumFader;} bool getFlagShowIllumination() const {return (bool)illumFader;}
//! Get landscape name //! Get landscape name
QString getName() const {return name;} QString getName() const {return name;}
 End of changes. 2 change blocks. 
0 lines changed or deleted 17 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/