X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=raster.hh;h=2827c59e52985d513288f2f05318fedc2d036c41;hb=9f13ae5fe777dd4f7a9302f6dcf3e0d99a1ce65d;hp=56a9c922709f02b87539e9ea475007fae066e4eb;hpb=a737ad45e690daa3b39b8885e2b6574d2ea48833;p=chaz%2Frasterize diff --git a/raster.hh b/raster.hh index 56a9c92..2827c59 100644 --- a/raster.hh +++ b/raster.hh @@ -10,6 +10,7 @@ #include "color.hh" #include "common.hh" +#include "vec.hh" /* @@ -34,6 +35,11 @@ void raster_destroy(raster_t* p); */ color_t* raster_color(const raster_t* p, int x, int y); +/* + * Get the color value at the given texture coordinates. + */ +color_t raster_uv(const raster_t* p, vec_t uv); + /* * Get the width of the raster. */