Public Member Functions | |
ImageTexture (TextureMapping2D *m, const string &filename, bool doTri, float maxAniso, ImageWrap wm) | |
T | Evaluate (const DifferentialGeometry &) const |
~ImageTexture () | |
Static Private Member Functions | |
static MIPMap< T > * | GetTexture (const string &filename, bool doTrilinear, float maxAniso, ImageWrap wm) |
static void | convert (const Spectrum &from, Spectrum *to) |
static void | convert (const Spectrum &from, float *to) |
Private Attributes | |
MIPMap< T > * | mipmap |
TextureMapping2D * | mapping |
Definition at line 33 of file imagemap.cpp.
ImageTexture< T >::ImageTexture | ( | TextureMapping2D * | m, | |
const string & | filename, | |||
bool | doTri, | |||
float | maxAniso, | |||
ImageWrap | wm | |||
) | [inline] |
Definition at line 59 of file imagemap.cpp.
References ImageTexture< T >::GetTexture(), ImageTexture< T >::mapping, and ImageTexture< T >::mipmap.
ImageTexture< T >::~ImageTexture | ( | ) | [inline] |
T ImageTexture< T >::Evaluate | ( | const DifferentialGeometry & | dg | ) | const [inline, virtual] |
Implements Texture< T >.
Definition at line 123 of file imagemap.cpp.
References TextureMapping2D::Map(), ImageTexture< T >::mapping, and ImageTexture< T >::mipmap.
MIPMap< T > * ImageTexture< T >::GetTexture | ( | const string & | filename, | |
bool | doTrilinear, | |||
float | maxAniso, | |||
ImageWrap | wm | |||
) | [inline, static, private] |
Definition at line 86 of file imagemap.cpp.
References ImageTexture< T >::convert(), and ReadImage().
Referenced by ImageTexture< T >::ImageTexture().
static void ImageTexture< T >::convert | ( | const Spectrum & | from, | |
Spectrum * | to | |||
) | [inline, static, private] |
static void ImageTexture< T >::convert | ( | const Spectrum & | from, | |
float * | to | |||
) | [inline, static, private] |
MIPMap<T>* ImageTexture< T >::mipmap [private] |
Definition at line 54 of file imagemap.cpp.
Referenced by ImageTexture< T >::Evaluate(), and ImageTexture< T >::ImageTexture().
TextureMapping2D* ImageTexture< T >::mapping [private] |
Definition at line 55 of file imagemap.cpp.
Referenced by ImageTexture< T >::Evaluate(), ImageTexture< T >::ImageTexture(), and ImageTexture< T >::~ImageTexture().