diff options
| author | raysan5 <raysan5@gmail.com> | 2013-11-23 12:58:16 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2013-11-23 12:58:16 +0100 |
| commit | 7635e9c79ff2ed581942b61ca6cebac73712ecca (patch) | |
| tree | 7c11de85f03606fa067024252e63816d0d951d8f | |
| parent | 0796ebd0c3a3a0463d8dcccb29ff438b49c977ff (diff) | |
| download | raylib-7635e9c79ff2ed581942b61ca6cebac73712ecca.tar.gz raylib-7635e9c79ff2ed581942b61ca6cebac73712ecca.zip | |
Replaced tabs by 4 spaces
| -rw-r--r-- | examples/ex02a_logo_raylib.c | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/examples/ex02a_logo_raylib.c b/examples/ex02a_logo_raylib.c index cbd67b20..345c6bbf 100644 --- a/examples/ex02a_logo_raylib.c +++ b/examples/ex02a_logo_raylib.c @@ -13,42 +13,42 @@ int main() { - int screenWidth = 800; - int screenHeight = 450; - - // Initialization - //--------------------------------------------------------- - InitWindow(screenWidth, screenHeight, "raylib example 02a - raylib logo"); // Window and context initialization - //---------------------------------------------------------- - + int screenWidth = 800; + int screenHeight = 450; + + // Initialization + //--------------------------------------------------------- + InitWindow(screenWidth, screenHeight, "raylib example 02a - raylib logo"); + //---------------------------------------------------------- + // 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); - - DrawRectangle(screenWidth/2 - 128, screenHeight/2 - 128, 256, 256, BLACK); - DrawRectangle(screenWidth/2 - 112, screenHeight/2 - 112, 224, 224, RAYWHITE); - DrawText("raylib", 356, 273, 50, 1, BLACK); - - DrawText("this is NOT a texture!", 350, 370, 10, 1, GRAY); - + // Update + //----------------------------------------------------- + // TODO: Update your variables here + //----------------------------------------------------- + + // Draw + //----------------------------------------------------- + BeginDrawing(); + + ClearBackground(RAYWHITE); + + DrawRectangle(screenWidth/2 - 128, screenHeight/2 - 128, 256, 256, BLACK); + DrawRectangle(screenWidth/2 - 112, screenHeight/2 - 112, 224, 224, RAYWHITE); + DrawText("raylib", 356, 273, 50, 1, BLACK); + + DrawText("this is NOT a texture!", 350, 370, 10, 1, GRAY); + 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 |
