7 #include "math/point.h"
8 #include "math/triangle.h"
10 // TODO(#474): there are no logging SDL wrappers (similar to system/nth_alloc)
11 int draw_triangle(SDL_Renderer *render,
14 int fill_triangle(SDL_Renderer *render,
17 int fill_rect(SDL_Renderer *render,
21 /* `getpixel()` and `putpixel()` were stolen from
22 * https://www.libsdl.org/release/SDL-1.2.15/docs/html/guidevideo.html */
23 Uint32 getpixel(SDL_Surface *surface, int x, int y);
24 void putpixel(SDL_Surface *surface, int x, int y, Uint32 pixel);