16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 04:39:18 +02:00

Merge branch 'tmj-dev'

This commit is contained in:
milek7
2018-02-16 15:25:53 +01:00
113 changed files with 4617 additions and 4057 deletions

8
sun.h
View File

@@ -17,13 +17,17 @@ public:
void init();
void update();
void render();
/*
// returns location of the sun in the 3d scene
glm::vec3 getPosition() { return m_position; }
glm::vec3 getPosition();
*/
// returns vector pointing at the sun
glm::vec3 getDirection();
// returns current elevation above horizon
float getAngle();
// returns current intensity of the sun
// return current hour angle
double getHourAngle() const;
// 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 );