diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-06-21 11:51:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-21 11:51:29 +0200 |
commit | 1425c6def156840b359b90b4f32b9c7b8f005731 (patch) | |
tree | 0390ed5ad9bcf481416061446f859b3f48955422 /src/sky.h | |
parent | 12aad731adef495dec03f384d10b4f8f57b6a1d3 (diff) | |
download | minetest-1425c6def156840b359b90b4f32b9c7b8f005731.tar.gz minetest-1425c6def156840b359b90b4f32b9c7b8f005731.tar.bz2 minetest-1425c6def156840b359b90b4f32b9c7b8f005731.zip |
Cpp11 initializers: last src root changeset (#6022)
* Cpp11 initializers: last src root changeset
Finish to migrate all src root folder files to C++11 constructor initializers
Diffstat (limited to 'src/sky.h')
-rw-r--r-- | src/sky.h | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -117,25 +117,25 @@ private: return result; } - bool m_visible; - video::SColor m_fallback_bg_color; // Used when m_visible=false - bool m_first_update; + bool m_visible = true; + // Used when m_visible=false + video::SColor m_fallback_bg_color = video::SColor(255, 255, 255, 255); + bool m_first_update = true; float m_time_of_day; float m_time_brightness; bool m_sunlight_seen; - float m_brightness; - float m_cloud_brightness; + float m_brightness = 0.5f; + float m_cloud_brightness = 0.5f; bool m_clouds_visible; // Whether clouds are disabled due to player underground - bool m_clouds_enabled; // Initialised to true, reset only by set_sky API + bool m_clouds_enabled = true; // Initialised to true, reset only by set_sky API bool m_directional_colored_fog; - video::SColorf m_bgcolor_bright_f; - video::SColorf m_skycolor_bright_f; - video::SColorf m_cloudcolor_bright_f; + video::SColorf m_bgcolor_bright_f = video::SColorf(1.0f, 1.0f, 1.0f, 1.0f); + video::SColorf m_skycolor_bright_f = video::SColorf(1.0f, 1.0f, 1.0f, 1.0f); + video::SColorf m_cloudcolor_bright_f = video::SColorf(1.0f, 1.0f, 1.0f, 1.0f); video::SColor m_bgcolor; video::SColor m_skycolor; video::SColorf m_cloudcolor_f; v3f m_stars[SKY_STAR_COUNT]; - video::S3DVertex m_star_vertices[SKY_STAR_COUNT * 4]; video::ITexture *m_sun_texture; video::ITexture *m_moon_texture; video::ITexture *m_sun_tonemap; |