Permalink
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 287 Bytes
#include <simple2d.h>
void render() {
S2D_DrawTriangle(
320, 50, 1, 0, 0, 1,
540, 430, 0, 1, 0, 1,
100, 430, 0, 0, 1, 1
);
}
int main() {
S2D_Window *window = S2D_CreateWindow(
"Hello Triangle", 640, 480, NULL, render, 0
);
S2D_Show(window);
return 0;
}