38 lines
806 B
C++
38 lines
806 B
C++
#ifndef NIGHTSKY_H
|
|
#define NIGHTSKY_H
|
|
|
|
#include "software_global.h"
|
|
|
|
namespace paysages {
|
|
namespace software {
|
|
|
|
/*!
|
|
* \brief Night sky renderer.
|
|
*/
|
|
class SOFTWARESHARED_EXPORT NightSky
|
|
{
|
|
public:
|
|
NightSky(SoftwareRenderer* renderer);
|
|
virtual ~NightSky();
|
|
|
|
/*!
|
|
* \brief Update the night sky renderer, when the scenery or parent renderer changed.
|
|
*/
|
|
void update();
|
|
|
|
/*!
|
|
* \brief Get the color of the night sky at a given direction.
|
|
* \param altitude Altitude above water level, in coordinate units (not kilometers).
|
|
*/
|
|
virtual const Color getColor(double altitude, const Vector3 &direction);
|
|
|
|
virtual void fillLightingStatus(LightStatus *status, const Vector3 &normal, int opaque);
|
|
|
|
private:
|
|
SoftwareRenderer* renderer;
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif // NIGHTSKY_H
|