From cdc7eb2d4c097ec6de18acbe509c42be5b1659ee Mon Sep 17 00:00:00 2001 From: Methacrylon Date: Tue, 30 Jul 2019 20:25:47 +0200 Subject: Sky: Refactor of moon and sun drawing (#8683) Split sun and moon render parts from the main render function. --- src/client/sky.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/client/sky.h') 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 +#include #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 &vertices, + float pos_1, float pos_2, const video::SColor &c); + void place_sky_body( + std::array &vertices, float horizon_position, + float day_position); }; -- cgit v1.2.3