From 0d25b2b78e213df5beabf429b3ab4081b0ad0751 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 25 Aug 2023 18:24:31 +0100 Subject: INITIAL Simple hello world in raylib, with a Makefile to do the compilation for me! --- main.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 main.c (limited to 'main.c') diff --git a/main.c b/main.c new file mode 100644 index 0000000..f1ec861 --- /dev/null +++ b/main.c @@ -0,0 +1,26 @@ +/* main.c + * Created: 2023-08-25 + * Author: Aryadev Chavali + * Description: Entry point of program + */ +#include + +#include + +#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; +} -- cgit v1.2.3-13-gbd6f