GlobeEngine
Sun.h
Go to the documentation of this file.
1 
8 #ifndef GlobeEngine_Sun_h
9 #define GlobeEngine_Sun_h
10 
11 #include "Sphere.h"
12 #include "Texture.h"
13 #include <math.h>
14 
15 namespace geAstroSunExample {
16  class Sun : public ge::Sphere
17  {
18  public:
19  Sun();
20  ~Sun();
21 
22  void loadOverlay(std::string _texPath);
23  void loadGradientTexture(std::string _texPath);
24  const std::shared_ptr<ge::Texture2Drgba>& getGradientTexture() const;
25  void loadSunTexture(std::string _texPath);
26 
27  void draw(std::shared_ptr<ge::Camera> _cam);
28 
29  void setAnimationStep(float _in);
30 
31  private:
32  std::shared_ptr<ge::Texture2Drgba> overlaytex;
33  std::shared_ptr<ge::Texture2Drgba> gradienttex;
34  std::shared_ptr<ge::Texture2Drgba> suntex;
35 
36  float animationStep;
37  };
38 }
39 #endif
void draw(std::shared_ptr< ge::Camera > _cam)
Definition: Sun.cpp:43
Definition: Sphere.h:18
const std::shared_ptr< ge::Texture2Drgba > & getGradientTexture() const
Definition: Sun.cpp:35
void loadOverlay(std::string _texPath)
Definition: Sun.cpp:15
void setAnimationStep(float _in)
Definition: Sun.cpp:39
Definition: Sun.h:15
void loadGradientTexture(std::string _texPath)
Definition: Sun.cpp:22
Definition: Sun.h:16
~Sun()
Definition: Sun.cpp:10
Sun()
Definition: Sun.cpp:4
void loadSunTexture(std::string _texPath)
Definition: Sun.cpp:28