#include <ImageTexture.h>


Public Member Functions | |
| ImageTexture (Image *img) | |
| virtual | ~ImageTexture () |
| virtual RGBAColor | getColor (const Point2D &p) const |
| virtual Vec3D | getBump (const Point2D &p, const float &scale, const Matrix4D &onb) const |
Private Attributes | |
| Image * | image |
Definition at line 10 of file ImageTexture.h.
| rcrt::ImageTexture::ImageTexture | ( | Image * | img | ) |
Definition at line 6 of file ImageTexture.cpp.
| rcrt::ImageTexture::~ImageTexture | ( | ) | [virtual] |
Implements rcrt::Texture2D.
Definition at line 15 of file ImageTexture.cpp.
References rcrt::Image::getHeight(), rcrt::Image::getPixel(), rcrt::Image::getWidth(), image, rcrt::Point2D::x(), and rcrt::Point2D::y().
Referenced by getBump(), rcrt::DisplacedTriangle::getDispPoint(), rcrt::ImageMaterial::sample(), rcrt::ImageMaterial::sampleDiffuse(), rcrt::ImageMaterial::sampleSpecular(), and rcrt::ImageMaterial::scatterPhoton().
| Vec3D rcrt::ImageTexture::getBump | ( | const Point2D & | p, | |
| const float & | scale, | |||
| const Matrix4D & | onb | |||
| ) | const [virtual] |
Implements rcrt::Texture2D.
Definition at line 54 of file ImageTexture.cpp.
References getColor(), rcrt::Image::getHeight(), rcrt::RGBAColor::getLuminance(), rcrt::Image::getPixel(), rcrt::Image::getWidth(), image, rcrt::Point2D::x(), and rcrt::Point2D::y().
Image* rcrt::ImageTexture::image [private] |
Definition at line 13 of file ImageTexture.h.
Referenced by getBump(), getColor(), and ~ImageTexture().
1.5.3