MobileRT  1.0
A multi platform C++ CPU progressive Ray Tracer.
Constant.hpp
Go to the documentation of this file.
1 #ifndef COMPONENTS_SAMPLERS_CONSTANT_HPP
2 #define COMPONENTS_SAMPLERS_CONSTANT_HPP
3 
4 #include "MobileRT/Sampler.hpp"
5 
6 namespace Components {
7 
11  class Constant final : public ::MobileRT::Sampler {
12  private:
13  const float value_ {};
14 
15  public:
16  explicit Constant () = delete;
17 
18  explicit Constant(float value);
19 
20  Constant(const Constant &constant) = delete;
21 
22  Constant(Constant &&constant) noexcept = delete;
23 
24  ~Constant() final = default;
25 
26  Constant &operator=(const Constant &constant) = delete;
27 
28  Constant &operator=(Constant &&constant) noexcept = delete;
29 
30  float getSample(::std::uint32_t sample) final;
31  };
32 }//namespace Components
33 
34 #endif //COMPONENTS_SAMPLERS_CONSTANT_HPP
Definition: Orthographic.hpp:6
Definition: Sampler.hpp:13
~Constant() final=default
const float value_
Definition: Constant.hpp:13
Constant & operator=(const Constant &constant)=delete
float getSample()
Definition: Sampler.cpp:44
Definition: Constant.hpp:11