diff options
Diffstat (limited to 'src')
| -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; +} |
