Raytracer
Loading...
Searching...
No Matches
Image.hpp
1#include "interfaces/ITexture.hpp"
2#include "utils/ImageHelper.hpp"
3
4#ifndef __IMAGE_HPP__
5 #define __IMAGE_HPP__
6
7namespace Raytracer::Textures
8{
9 class Image : public Interfaces::ITexture {
10 private:
11 Utils::ImageHelper _helper;
12
13 public:
14 Image(std::string filename);
16 double u, double v, const Utils::Point3 &point) const override;
17 };
18} // namespace Raytracer::Textures
19
20#endif /* __IMAGE_HPP__ */
Definition ITexture.hpp:8
Definition Image.hpp:9
Image(std::string filename)
Construct a new Image object.
Definition Image.cpp:14
Utils::Color value(double u, double v, const Utils::Point3 &point) const override
Get the value of the image texture.
Definition Image.cpp:31
Definition ImageHelper.hpp:10
Definition VecN.hpp:40