Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
19 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;
}
You can’t perform that action at this time.