diff options
author | Methacrylon <mathieu.vander.p@gmail.com> | 2019-07-30 20:25:47 +0200 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2019-07-30 20:25:47 +0200 |
commit | cdc7eb2d4c097ec6de18acbe509c42be5b1659ee (patch) | |
tree | ddf859afd1e17068ce70c1bafec555dda95998a7 /src/client/sky.h | |
parent | b8aaef704d3e29c43edc3312a3c5e25516d9c864 (diff) | |
download | dragonfireclient-cdc7eb2d4c097ec6de18acbe509c42be5b1659ee.tar.xz |
Sky: Refactor of moon and sun drawing (#8683)
Split sun and moon render parts from the main render function.
Diffstat (limited to 'src/client/sky.h')
-rw-r--r-- | src/client/sky.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/client/sky.h b/src/client/sky.h index b66a4990f..9cff20e08 100644 --- a/src/client/sky.h +++ b/src/client/sky.h @@ -18,6 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc., */ #include <ISceneNode.h> +#include <array> #include "camera.h" #include "irrlichttypes_extrabloated.h" @@ -145,4 +146,13 @@ private: video::ITexture *m_moon_texture; video::ITexture *m_sun_tonemap; video::ITexture *m_moon_tonemap; + void draw_sun(video::IVideoDriver *driver, float sunsize, const video::SColor &suncolor, + const video::SColor &suncolor2, float wicked_time_of_day); + void draw_moon(video::IVideoDriver *driver, float moonsize, const video::SColor &mooncolor, + const video::SColor &mooncolor2, float wicked_time_of_day); + void draw_sky_body(std::array<video::S3DVertex, 4> &vertices, + float pos_1, float pos_2, const video::SColor &c); + void place_sky_body( + std::array<video::S3DVertex, 4> &vertices, float horizon_position, + float day_position); }; |