summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-01-15 20:15:41 -0500
committerrealtradam <[email protected]>2024-01-15 20:15:41 -0500
commit6bba4f9c3c8b18894183d026fc190175bb14c437 (patch)
treecd0e325d13f1230ea0745e2d27a0e0cc0cbad64c /src
downloadbasic-raylib-template-master.tar.gz
basic-raylib-template-master.zip
InitialHEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/main.c26
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;
+}