diff options
| author | raysan5 <raysan5@gmail.com> | 2013-11-23 13:30:54 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2013-11-23 13:30:54 +0100 |
| commit | ccf26080915d5487dfb2e5fdb79c2bc2893b7454 (patch) | |
| tree | e7a4856dbea9eac3d356533260b37ce812d5f6e1 /examples/ex01_basic_window.c | |
| parent | 7635e9c79ff2ed581942b61ca6cebac73712ecca (diff) | |
| download | raylib-ccf26080915d5487dfb2e5fdb79c2bc2893b7454.tar.gz raylib-ccf26080915d5487dfb2e5fdb79c2bc2893b7454.zip | |
Replaced tab by 4 spaces and adjust text
Diffstat (limited to 'examples/ex01_basic_window.c')
| -rw-r--r-- | examples/ex01_basic_window.c | 64 |
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 |
