diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-08-25 18:24:31 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-08-25 18:24:31 +0100 |
commit | 0d25b2b78e213df5beabf429b3ab4081b0ad0751 (patch) | |
tree | 2db1de9dd265d08fd3084e2076045c54ba1cd60c /main.c | |
download | abelian-sandpile-0d25b2b78e213df5beabf429b3ab4081b0ad0751.tar.gz abelian-sandpile-0d25b2b78e213df5beabf429b3ab4081b0ad0751.tar.bz2 abelian-sandpile-0d25b2b78e213df5beabf429b3ab4081b0ad0751.zip |
INITIAL
Simple hello world in raylib, with a Makefile to do the compilation
for me!
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -0,0 +1,26 @@ +/* main.c + * Created: 2023-08-25 + * Author: Aryadev Chavali + * Description: Entry point of program + */ +#include <stdio.h> + +#include <raylib.h> + +#define WIDTH 512 +#define HEIGHT 512 + +int main(void) +{ + InitWindow(WIDTH, HEIGHT, "Abelian sand pile"); + SetTargetFPS(60); + while (!WindowShouldClose()) + { + BeginDrawing(); + ClearBackground(BLACK); + DrawText("Hello, world!", 100, 100, 25, RAYWHITE); + EndDrawing(); + } + CloseWindow(); + return 0; +} |