aboutsummaryrefslogtreecommitdiff
path: root/examples/ex01_basic_window.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ex01_basic_window.c')
-rw-r--r--examples/ex01_basic_window.c64
1 files changed, 32 insertions, 32 deletions
diff --git a/examples/ex01_basic_window.c b/examples/ex01_basic_window.c
index 7b40bbd0..9189b296 100644
--- a/examples/ex01_basic_window.c
+++ b/examples/ex01_basic_window.c
@@ -1,11 +1,11 @@
/*******************************************************************************************
*
-* raylib example 01 - Basic Window
+* raylib example 01 - Basic Window
*
-* This example has been created using raylib 1.0 (www.raylib.com)
-* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
+* This example has been created using raylib 1.0 (www.raylib.com)
+* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Copyright (c) 2013 Ramon Santamaria (Ray San - raysan@raysanweb.com)
+* Copyright (c) 2013 Ramon Santamaria (Ray San - raysan@raysanweb.com)
*
********************************************************************************************/
@@ -13,38 +13,38 @@
int main()
{
- int screenWidth = 800;
- int screenHeight = 450;
-
- // Initialization
- //---------------------------------------------------------
- InitWindow(screenWidth, screenHeight, "raylib example 01a - basic window"); // Window and context initialization
- //----------------------------------------------------------
-
+ int screenWidth = 800;
+ int screenHeight = 450;
+
+ // Initialization
+ //---------------------------------------------------------
+ InitWindow(screenWidth, screenHeight, "raylib example 01a - basic window");
+ //----------------------------------------------------------
+
// Main game loop
- while (!WindowShouldClose()) // Detect window close button or ESC key
+ while (!WindowShouldClose()) // Detect window close button or ESC key
{
- // Update
- //-----------------------------------------------------
- // TODO: Update your variables here
- //-----------------------------------------------------
-
- // Draw
- //-----------------------------------------------------
- BeginDrawing();
-
- ClearBackground(RAYWHITE);
-
- DrawText("Congrats! You created your first window!", 190, 200, 20, 1, LIGHTGRAY);
-
+ // Update
+ //-----------------------------------------------------
+ // TODO: Update your variables here
+ //-----------------------------------------------------
+
+ // Draw
+ //-----------------------------------------------------
+ BeginDrawing();
+
+ ClearBackground(RAYWHITE);
+
+ DrawText("Congrats! You created your first window!", 190, 200, 20, 1, LIGHTGRAY);
+
EndDrawing();
- //-----------------------------------------------------
+ //-----------------------------------------------------
}
- // De-Initialization
- //---------------------------------------------------------
- CloseWindow(); // Close window and OpenGL context
- //----------------------------------------------------------
-
+ // De-Initialization
+ //---------------------------------------------------------
+ CloseWindow(); // Close window and OpenGL context
+ //----------------------------------------------------------
+
return 0;
} \ No newline at end of file