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