Overte C++ Documentation
Bloom.h
1 //
2 // Bloom.h
3 // libraries/graphics/src/graphics
4 //
5 // Created by Sam Gondelman on 8/7/2018
6 // Copyright 2018 High Fidelity, Inc.
7 //
8 // Distributed under the Apache License, Version 2.0.
9 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10 //
11 #ifndef hifi_model_Bloom_h
12 #define hifi_model_Bloom_h
13 
14 #include <memory>
15 
16 namespace graphics {
17  class Bloom {
18  public:
19  // Initial values
20  static const float INITIAL_BLOOM_INTENSITY;
21  static const float INITIAL_BLOOM_THRESHOLD;
22  static const float INITIAL_BLOOM_SIZE;
23 
24  Bloom() {}
25 
26  void setBloomIntensity(const float bloomIntensity) { _bloomIntensity = bloomIntensity; }
27  void setBloomThreshold(const float bloomThreshold) { _bloomThreshold = bloomThreshold; }
28  void setBloomSize(const float bloomSize) { _bloomSize = bloomSize; }
29 
30  float getBloomIntensity() { return _bloomIntensity; }
31  float getBloomThreshold() { return _bloomThreshold; }
32  float getBloomSize() { return _bloomSize; }
33 
34  private:
35  float _bloomIntensity { INITIAL_BLOOM_INTENSITY };
36  float _bloomThreshold {INITIAL_BLOOM_THRESHOLD };
37  float _bloomSize { INITIAL_BLOOM_SIZE };
38  };
39  using BloomPointer = std::shared_ptr<Bloom>;
40 }
41 #endif // hifi_model_Bloom_h