From 920157796a2e381d35ba97c15d58ea77eae60a72 Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Sun, 24 May 2026 20:10:04 +0200 Subject: Project setup --- src/main.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/main.cpp (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..c2e66a5 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,26 @@ +#include "raylib.h" + +#define SCREEN_WIDTH (800) +#define SCREEN_HEIGHT (450) +#define WINDOW_TITLE "Hello World" + +int +main(void) +{ + InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, WINDOW_TITLE); + SetTargetFPS(60); + + while (!WindowShouldClose()) + { + BeginDrawing(); + + ClearBackground(RAYWHITE); + DrawText("Hello world!", 10, 10, 20, BLACK); + + EndDrawing(); + } + + CloseWindow(); + + return 0; +} -- cgit v1.2.3