Raytracer
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Raytracer::Textures::Image Class Reference
Inheritance diagram for Raytracer::Textures::Image:
Raytracer::Interfaces::ITexture

Public Member Functions

 Image (std::string filename)
 Construct a new Image object.
 
Utils::Color value (double u, double v, const Utils::Point3 &point) const override
 Get the value of the image texture.
 

Constructor & Destructor Documentation

◆ Image()

Raytracer::Textures::Image::Image ( std::string filename)

Construct a new Image object.

This function constructs a new Image object with the given filename.

Parameters
filenameThe filename of the image.
Returns
A new Image object.

Member Function Documentation

◆ value()

Raytracer::Utils::Color Raytracer::Textures::Image::value ( double u,
double v,
const Utils::Point3 & point ) const
overridevirtual

Get the value of the image texture.

This function returns the value of the image texture at the given UV coordinates and point.

Parameters
uThe U coordinate.
vThe V coordinate.
pointThe point.
Returns
The value of the image texture.

Implements Raytracer::Interfaces::ITexture.


The documentation for this class was generated from the following files: