X-Git-Url: http://git.mutantstargoat.com?p=demo;a=blobdiff_plain;f=src%2Fimage.h;h=ec5228d3eb4534d941470fb92c2b8213ab637039;hp=b09d5e719351a30b8b173a20b151465e55c60484;hb=fd601d4218b63fdf92c5e4dfa32eac8adbda82fa;hpb=47982b199010496e34eefb95044275fb231cba18 diff --git a/src/image.h b/src/image.h index b09d5e7..ec5228d 100644 --- a/src/image.h +++ b/src/image.h @@ -1,6 +1,8 @@ #ifndef IMAGE_H_ #define IMAGE_H_ +#include + class Image { public: int w; @@ -24,6 +26,9 @@ public: Image &operator =(Image &&image); bool load(const char *fname); + + Vec4 lookup_nearest(float u, float v) const; + //TODO lookup_linear }; #endif // IMAGE_H_ \ No newline at end of file