#ifndef IMAGE_H_
#define IMAGE_H_
+#include <gmath/gmath.h>
+
class Image {
public:
int w;
Image &operator =(Image &&image);
bool load(const char *fname);
+
+ Vec4 get_pixel(int x, int y) const;
+
+ Vec4 lookup_nearest(float u, float v) const;
+ Vec4 lookup_linear(float u, float v, float du, float dv) const;
};
#endif // IMAGE_H_
\ No newline at end of file