diff options
| author | Dominik Kaiser | 2026-05-24 20:10:04 +0200 |
|---|---|---|
| committer | Dominik Kaiser | 2026-05-24 20:10:04 +0200 |
| commit | 920157796a2e381d35ba97c15d58ea77eae60a72 (patch) | |
| tree | cb178fd52633ccc34a320d6d4ef5ad8eb4c9eee8 /src/main.cpp | |
| download | raylib-main.tar.gz raylib-main.zip | |
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
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; +} |
