Landscape.hpp   Landscape.hpp 
skipping to change at line 92 skipping to change at line 92
int getDefaultBortleIndex() const {return defaultBortleIndex;} int getDefaultBortleIndex() const {return defaultBortleIndex;}
//! Return default fog setting (0/1) or -1 (no change) //! Return default fog setting (0/1) or -1 (no change)
int getDefaultFogSetting() const {return defaultFogSetting;} int getDefaultFogSetting() const {return defaultFogSetting;}
//! Return default atmosperic extinction, mag/airmass, or -1 (no cha nge) //! Return default atmosperic extinction, mag/airmass, or -1 (no cha nge)
float getDefaultAtmosphericExtinction() const {return defaultExtinct ionCoefficient;} float getDefaultAtmosphericExtinction() const {return defaultExtinct ionCoefficient;}
//! Return default atmospheric temperature, for refraction computati on, or -1000 for "unknown/no change". //! Return default atmospheric temperature, for refraction computati on, or -1000 for "unknown/no change".
float getDefaultAtmosphericTemperature() const {return defaultTemper ature;} float getDefaultAtmosphericTemperature() const {return defaultTemper ature;}
//! Return default atmospheric temperature, for refraction computati on. //! Return default atmospheric temperature, for refraction computati on.
//! returns -1 to signal "standard conditions", or -2 for "unknown/i nvalid/no change" //! returns -1 to signal "standard conditions", or -2 for "unknown/i nvalid/no change"
float getDefaultAtmosphericPressure() const {return defaultPressure; } float getDefaultAtmosphericPressure() const {return defaultPressure; }
//! Return default brightness for landscape
//! returns -1 to signal "standard conditions" (use default value fr
om config.ini)
float getLandscapeNightBrightness() const {return defaultBrightness;
}
//! Set the z-axis rotation (offset from original value when rotated //! Set the z-axis rotation (offset from original value when rotated
void setZRotation(float d) {angleRotateZOffset = d;} void setZRotation(float d) {angleRotateZOffset = d;}
protected: protected:
//! Load attributes common to all landscapes //! Load attributes common to all landscapes
//! @param landscapeIni A reference to an existant QSettings object which describes the landscape //! @param landscapeIni A reference to an existant QSettings object which describes the landscape
//! @param landscapeId The name of the directory for the landscape f iles (e.g. "ocean") //! @param landscapeId The name of the directory for the landscape f iles (e.g. "ocean")
void loadCommon(const QSettings& landscapeIni, const QString& landsc apeId); void loadCommon(const QSettings& landscapeIni, const QString& landsc apeId);
//! search for a texture in landscape directory, else global texture s directory //! search for a texture in landscape directory, else global texture s directory
//! @param basename The name of a texture file, e.g. "fog.png" //! @param basename The name of a texture file, e.g. "fog.png"
//! @param landscapeId The landscape ID (directory name) to which th e texture belongs //! @param landscapeId The landscape ID (directory name) to which th e texture belongs
//! @exception misc possibility of throwing "file not found" excepti ons //! @exception misc possibility of throwing "file not found" excepti ons
const QString getTexturePath(const QString& basename, const QString& landscapeId); const QString getTexturePath(const QString& basename, const QString& landscapeId);
const float radius; const float radius;
QString name; QString name;
float skyBrightness; float skyBrightness;
float nightBrightness; float nightBrightness;
float defaultBrightness;
bool validLandscape; // was a landscape loaded properly? bool validLandscape; // was a landscape loaded properly?
LinearFader landFader; LinearFader landFader;
LinearFader fogFader; LinearFader fogFader;
QString author; QString author;
QString description; QString description;
// Currently, rows and cols do not change after initialization. // Currently, rows and cols do not change after initialization.
// If, in future, these values can be modified, cached vertex/index buffers // If, in future, these values can be modified, cached vertex/index buffers
// will have to be regenerated after the change. // will have to be regenerated after the change.
// GZ patched, these can now be set in landscape.ini: // GZ patched, these can now be set in landscape.ini:
 End of changes. 2 change blocks. 
0 lines changed or deleted 6 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/