diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-05-08 01:58:26 +0530 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-05-08 01:58:26 +0530 |
commit | d11bd1d21269c3eb48ef154917e3d6efed3cf90c (patch) | |
tree | e6fc304c86d4c3572d08cb2a26f77ae1f927b285 /src | |
parent | ea046912c778dc64ac1dcc25bbc7a1e58f89b196 (diff) | |
download | snek-d11bd1d21269c3eb48ef154917e3d6efed3cf90c.tar.gz snek-d11bd1d21269c3eb48ef154917e3d6efed3cf90c.tar.bz2 snek-d11bd1d21269c3eb48ef154917e3d6efed3cf90c.zip |
Raylib basic trianagle display
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 1c5912b..68a69b9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -9,12 +9,21 @@ * Description: Entrypoint */ -#include <iostream> +#include <raylib.h> -using std::cout, std::endl; +#define WIDTH 800 +#define HEIGHT 600 int main(void) { - cout << "Hello, world!" << endl; + InitWindow(WIDTH, HEIGHT, "snek"); + while (!WindowShouldClose()) + { + BeginDrawing(); + ClearBackground(BLACK); + DrawTriangle({400, 0}, {100, 300}, {700, 300}, RED); + EndDrawing(); + } + CloseWindow(); return 0; } |