diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-03-05 16:44:50 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2017-03-05 16:44:50 +0100 |
commit | 5dbf1809c6e3e905b94b8764e99491e608122261 (patch) | |
tree | 5e5a5360db15d86d59ec8c6e4f7eb511388c5a9a /scene/resources/environment.h | |
parent | 45438e9918d421b244bfd7776a30e67dc7f2d3e3 (diff) |
A Whole New World (clang-format edition)
I can show you the code
Pretty, with proper whitespace
Tell me, coder, now when did
You last write readable code?
I can open your eyes
Make you see your bad indent
Force you to respect the style
The core devs agreed upon
A whole new world
A new fantastic code format
A de facto standard
With some sugar
Enforced with clang-format
A whole new world
A dazzling style we all dreamed of
And when we read it through
It's crystal clear
That now we're in a whole new world of code
Diffstat (limited to 'scene/resources/environment.h')
-rw-r--r-- | scene/resources/environment.h | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/scene/resources/environment.h b/scene/resources/environment.h index b8c243b588..3ac311f4a3 100644 --- a/scene/resources/environment.h +++ b/scene/resources/environment.h @@ -30,15 +30,15 @@ #define ENVIRONMENT_H #include "resource.h" -#include "servers/visual_server.h" -#include "scene/resources/texture.h" #include "scene/resources/sky_box.h" +#include "scene/resources/texture.h" +#include "servers/visual_server.h" class Environment : public Resource { - GDCLASS(Environment,Resource); -public: + GDCLASS(Environment, Resource); +public: enum BGMode { BG_CLEAR_COLOR, @@ -49,8 +49,6 @@ public: BG_MAX }; - - enum ToneMapper { TONE_MAPPER_LINEAR, TONE_MAPPER_REINHARDT, @@ -140,20 +138,17 @@ private: DOFBlurQuality dof_blur_near_quality; protected: - static void _bind_methods(); - virtual void _validate_property(PropertyInfo& property) const; + virtual void _validate_property(PropertyInfo &property) const; public: - - void set_background(BGMode p_bg); - void set_skybox(const Ref<SkyBox>& p_skybox); + void set_skybox(const Ref<SkyBox> &p_skybox); void set_skybox_scale(float p_scale); - void set_bg_color(const Color& p_color); + void set_bg_color(const Color &p_color); void set_bg_energy(float p_energy); void set_canvas_max_layer(int p_max_layer); - void set_ambient_light_color(const Color& p_color); + void set_ambient_light_color(const Color &p_color); void set_ambient_light_energy(float p_energy); void set_ambient_light_skybox_contribution(float p_energy); @@ -167,7 +162,6 @@ public: float get_ambient_light_energy() const; float get_ambient_light_skybox_contribution() const; - void set_tonemapper(ToneMapper p_tone_mapper); ToneMapper get_tonemapper() const; @@ -204,7 +198,7 @@ public: void set_adjustment_saturation(float p_saturation); float get_adjustment_saturation() const; - void set_adjustment_color_correction(const Ref<Texture>& p_ramp); + void set_adjustment_color_correction(const Ref<Texture> &p_ramp); Ref<Texture> get_adjustment_color_correction() const; void set_ssr_enabled(bool p_enable); @@ -249,17 +243,16 @@ public: void set_ssao_direct_light_affect(float p_direct_light_affect); float get_ssao_direct_light_affect() const; - void set_ssao_color(const Color& p_color); + void set_ssao_color(const Color &p_color); Color get_ssao_color() const; void set_ssao_blur(bool p_enable); bool is_ssao_blur_enabled() const; - void set_glow_enabled(bool p_enabled); bool is_glow_enabled() const; - void set_glow_level(int p_level,bool p_enabled); + void set_glow_level(int p_level, bool p_enabled); bool is_glow_level_enabled(int p_level) const; void set_glow_intensity(float p_intensity); @@ -313,16 +306,12 @@ public: void set_dof_blur_near_quality(DOFBlurQuality p_quality); DOFBlurQuality get_dof_blur_near_quality() const; - virtual RID get_rid() const; Environment(); ~Environment(); }; - - - VARIANT_ENUM_CAST(Environment::BGMode) VARIANT_ENUM_CAST(Environment::ToneMapper) VARIANT_ENUM_CAST(Environment::GlowBlendMode) |