]> Dogcows Code - chaz/rasterize/blobdiff - raster.hh
added texturing
[chaz/rasterize] / raster.hh
index 56a9c922709f02b87539e9ea475007fae066e4eb..2827c59e52985d513288f2f05318fedc2d036c41 100644 (file)
--- 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.
  */
This page took 0.024733 seconds and 4 git commands to generate.