diff options
| author | realtradam <[email protected]> | 2024-01-15 20:15:41 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2024-01-15 20:15:41 -0500 |
| commit | 6bba4f9c3c8b18894183d026fc190175bb14c437 (patch) | |
| tree | cd0e325d13f1230ea0745e2d27a0e0cc0cbad64c /src/main.c | |
| download | basic-raylib-template-master.tar.gz basic-raylib-template-master.zip | |
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..72c3668 --- /dev/null +++ b/src/main.c @@ -0,0 +1,26 @@ +#include "raylib.h" + +int main(void) +{ + const int screenWidth = 800; + const int screenHeight = 450; + + InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window"); + + SetTargetFPS(60); + + while (!WindowShouldClose()) + { + BeginDrawing(); + + ClearBackground(RAYWHITE); + + DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY); + + EndDrawing(); + } + + CloseWindow(); + + return 0; +} |
