mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 03:29:19 +02:00
reformat: remove redundant 'inline' specifier
This commit is contained in:
@@ -11,7 +11,7 @@ public:
|
||||
|
||||
// methods:
|
||||
void init();
|
||||
void update( bool const Includephase = false );
|
||||
void update( bool Includephase = false );
|
||||
void render();
|
||||
// returns vector pointing at the sun
|
||||
glm::vec3 getDirection() const;
|
||||
@@ -22,13 +22,13 @@ public:
|
||||
// returns current phase of the moon
|
||||
float getPhase() const { return m_phase; }
|
||||
// sets current time, overriding one acquired from the system clock
|
||||
void setTime( int const Hour, int const Minute, int const Second );
|
||||
void setTime( int Hour, int Minute, int Second );
|
||||
// sets current geographic location
|
||||
void setLocation( float const Longitude, float const Latitude );
|
||||
void setLocation( float Longitude, float Latitude );
|
||||
// sets ambient temperature in degrees C.
|
||||
void setTemperature( float const Temperature );
|
||||
void setTemperature( float Temperature );
|
||||
// sets surface pressure in milibars
|
||||
void setPressure( float const Pressure );
|
||||
void setPressure( float Pressure );
|
||||
|
||||
// constructors:
|
||||
cMoon();
|
||||
@@ -50,7 +50,7 @@ protected:
|
||||
void irradiance();
|
||||
void phase();
|
||||
// helper, normalize values to range 0...1
|
||||
float normalize( const float Value ) const;
|
||||
float normalize(float Value ) const;
|
||||
|
||||
// members:
|
||||
|
||||
|
||||
@@ -5,16 +5,16 @@
|
||||
|
||||
class CSkyDome {
|
||||
public:
|
||||
CSkyDome( int const Tesselation = 54 );
|
||||
CSkyDome( int Tesselation = 54 );
|
||||
~CSkyDome();
|
||||
void Generate();
|
||||
void RebuildColors();
|
||||
|
||||
bool SetSunPosition( glm::vec3 const &Direction );
|
||||
|
||||
void SetTurbidity( const float Turbidity = 5.0f );
|
||||
void SetExposure( const bool Linearexposure, const float Expfactor );
|
||||
void SetOvercastFactor( const float Overcast = 0.0f );
|
||||
void SetTurbidity(float Turbidity = 5.0f );
|
||||
void SetExposure(bool Linearexposure, float Expfactor );
|
||||
void SetOvercastFactor(float Overcast = 0.0f );
|
||||
|
||||
// update skydome
|
||||
void Update( glm::vec3 const &Sun );
|
||||
@@ -59,9 +59,9 @@ private:
|
||||
static float m_zenithymatrix[ 3 ][ 4 ];
|
||||
|
||||
// coloring
|
||||
void GetPerez( float *Perez, float Distribution[ 5 ][ 2 ], const float Turbidity );
|
||||
float GetZenith( float Zenithmatrix[ 3 ][ 4 ], const float Theta, const float Turbidity );
|
||||
float PerezFunctionO1( float Perezcoeffs[ 5 ], const float Thetasun, const float Zenithval );
|
||||
float PerezFunctionO2( float Perezcoeffs[ 5 ], const float Icostheta, const float Gamma, const float Cosgamma2, const float Zenithval );
|
||||
void GetPerez( float *Perez, float Distribution[ 5 ][ 2 ], float Turbidity );
|
||||
float GetZenith( float Zenithmatrix[ 3 ][ 4 ], float Theta, float Turbidity );
|
||||
float PerezFunctionO1( float Perezcoeffs[ 5 ], float Thetasun, float Zenithval );
|
||||
float PerezFunctionO2( float Perezcoeffs[ 5 ], float Icostheta, float Gamma, float Cosgamma2, float Zenithval );
|
||||
};
|
||||
|
||||
|
||||
@@ -28,13 +28,13 @@ public:
|
||||
// returns current intensity of the sun
|
||||
float getIntensity();
|
||||
// sets current time, overriding one acquired from the system clock
|
||||
void setTime( int const Hour, int const Minute, int const Second );
|
||||
void setTime( int Hour, int Minute, int Second );
|
||||
// sets current geographic location
|
||||
void setLocation( float const Longitude, float const Latitude );
|
||||
void setLocation( float Longitude, float Latitude );
|
||||
// sets ambient temperature in degrees C.
|
||||
void setTemperature( float const Temperature );
|
||||
void setTemperature( float Temperature );
|
||||
// sets surface pressure in milibars
|
||||
void setPressure( float const Pressure );
|
||||
void setPressure( float Pressure );
|
||||
|
||||
// constructors:
|
||||
cSun();
|
||||
|
||||
Reference in New Issue
Block a user