00001 #ifndef IMAGETEXTURE_H_ 00002 #define IMAGETEXTURE_H_ 00003 00004 #include "Texture2D.h" 00005 #include "Image.h" 00006 00007 namespace rcrt 00008 { 00009 00010 class ImageTexture : public rcrt::Texture2D 00011 { 00012 private: 00013 Image* image; 00014 00015 public: 00016 ImageTexture(Image* img); 00017 virtual ~ImageTexture(); 00018 00019 virtual RGBAColor getColor(const Point2D& p) const; 00020 virtual Vec3D getBump(const Point2D& p, const float& scale,const Matrix4D& onb) const; 00021 }; 00022 00023 } 00024 00025 #endif /*IMAGETEXTURE_H_*/