X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Frasterize;a=blobdiff_plain;f=raster.h;h=53f7627a65a5b43d1c94b47725bf046643a7f5a8;hp=1d43132c6ce7fe40a62b5c8566d589ba195656ea;hb=95850b98f73ad7033af60a30e324e9c3cda55389;hpb=e16cf0578f4baaf879e4ab9d3528a765bfd29be0 diff --git a/raster.h b/raster.h index 1d43132..53f7627 100644 --- a/raster.h +++ b/raster.h @@ -11,6 +11,7 @@ #include "color.h" #include "common.h" #include "light.h" +#include "model.h" #include "tri.h" @@ -102,7 +103,12 @@ int raster_export_bmp(const raster_t* p, const char* filename); void raster_clear(raster_t* p, color_t fill); /* - * Draw a smooth gradient triangle to the raster. + * Draw a model to the raster. + */ +void raster_draw_model(raster_t* p, const model_t* model); + +/* + * Draw a triangle to the raster. */ void raster_draw_tri(raster_t* p, const tri_t* triangle);