Replaced tabs by 4 spaces

This commit is contained in:
raysan5 2013-11-23 12:58:16 +01:00
parent 0796ebd0c3
commit 7635e9c79f

View File

@ -13,42 +13,42 @@
int main() int main()
{ {
int screenWidth = 800; int screenWidth = 800;
int screenHeight = 450; int screenHeight = 450;
// Initialization // Initialization
//--------------------------------------------------------- //---------------------------------------------------------
InitWindow(screenWidth, screenHeight, "raylib example 02a - raylib logo"); // Window and context initialization InitWindow(screenWidth, screenHeight, "raylib example 02a - raylib logo");
//---------------------------------------------------------- //----------------------------------------------------------
// Main game loop // Main game loop
while (!WindowShouldClose()) // Detect window close button or ESC key while (!WindowShouldClose()) // Detect window close button or ESC key
{ {
// Update // Update
//----------------------------------------------------- //-----------------------------------------------------
// TODO: Update your variables here // TODO: Update your variables here
//----------------------------------------------------- //-----------------------------------------------------
// Draw // Draw
//----------------------------------------------------- //-----------------------------------------------------
BeginDrawing(); BeginDrawing();
ClearBackground(RAYWHITE); ClearBackground(RAYWHITE);
DrawRectangle(screenWidth/2 - 128, screenHeight/2 - 128, 256, 256, BLACK); DrawRectangle(screenWidth/2 - 128, screenHeight/2 - 128, 256, 256, BLACK);
DrawRectangle(screenWidth/2 - 112, screenHeight/2 - 112, 224, 224, RAYWHITE); DrawRectangle(screenWidth/2 - 112, screenHeight/2 - 112, 224, 224, RAYWHITE);
DrawText("raylib", 356, 273, 50, 1, BLACK); DrawText("raylib", 356, 273, 50, 1, BLACK);
DrawText("this is NOT a texture!", 350, 370, 10, 1, GRAY); DrawText("this is NOT a texture!", 350, 370, 10, 1, GRAY);
EndDrawing(); EndDrawing();
//----------------------------------------------------- //-----------------------------------------------------
} }
// De-Initialization // De-Initialization
//--------------------------------------------------------- //---------------------------------------------------------
CloseWindow(); // Close window and OpenGL context CloseWindow(); // Close window and OpenGL context
//---------------------------------------------------------- //----------------------------------------------------------
return 0; return 0;
} }