From aab3db7f321067b8ff14d589119936d3cbbfc2b0 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 2 Sep 2023 18:59:18 +0100 Subject: INITIAL COMMIT Simple hello world in raylib --- main.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 main.c (limited to 'main.c') diff --git a/main.c b/main.c new file mode 100644 index 0000000..f9388d5 --- /dev/null +++ b/main.c @@ -0,0 +1,29 @@ +/* main.c + * Created: 2023-09-02 + * Author: Aryadev Chavali + * Description: Entrypoint of program + */ + +#include +#include +#include + +#include +#include + +#define WIDTH 512 +#define HEIGHT 512 + +int main(void) +{ + InitWindow(WIDTH, HEIGHT, "Mandelbrot simulation"); + for (size_t ticks = 0; !WindowShouldClose(); ++ticks) + { + BeginDrawing(); + ClearBackground(BLACK); + DrawText("Hello, world!", 100, 100, 50, RAYWHITE); + EndDrawing(); + } + CloseWindow(); + return 0; +} -- cgit v1.2.3-13-gbd6f