diff options
| author | raysan5 <raysan5@gmail.com> | 2014-09-29 23:41:05 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2014-09-29 23:41:05 +0200 |
| commit | 51688c004cb9b41cd573b7f84ce8574ca2a4b9d7 (patch) | |
| tree | 1d8bf01ec8deb3acabb747182f2a1384cec2ec49 /examples/shapes_basic_shapes.c | |
| parent | e2ff32eb847f0332d546f51c442f336e0dc7b309 (diff) | |
| download | raylib-51688c004cb9b41cd573b7f84ce8574ca2a4b9d7.tar.gz raylib-51688c004cb9b41cd573b7f84ce8574ca2a4b9d7.zip | |
Code cleaning, removed useless spaces
Diffstat (limited to 'examples/shapes_basic_shapes.c')
| -rw-r--r-- | examples/shapes_basic_shapes.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/shapes_basic_shapes.c b/examples/shapes_basic_shapes.c index 655f996b..4ae9f4df 100644 --- a/examples/shapes_basic_shapes.c +++ b/examples/shapes_basic_shapes.c @@ -20,7 +20,7 @@ int main() InitWindow(screenWidth, screenHeight, "raylib [shapes] example - basic shapes drawing"); //-------------------------------------------------------------------------------------- - + // Main game loop while (!WindowShouldClose()) // Detect window close button or ESC key { @@ -28,13 +28,13 @@ int main() //---------------------------------------------------------------------------------- // TODO: Update your variables here //---------------------------------------------------------------------------------- - + // Draw //---------------------------------------------------------------------------------- BeginDrawing(); - + ClearBackground(RAYWHITE); - + DrawText("some basic shapes available on raylib", 20, 20, 20, DARKGRAY); DrawLine(18, 42, screenWidth - 18, 42, BLACK); @@ -47,16 +47,16 @@ int main() DrawRectangleGradient(screenWidth/4*2 - 90, 170, 180, 130, MAROON, GOLD); DrawRectangleLines(screenWidth/4*2 - 40, 320, 80, 60, ORANGE); - DrawTriangle((Vector2){screenWidth/4*3, 80}, - (Vector2){screenWidth/4*3 - 60, 150}, + DrawTriangle((Vector2){screenWidth/4*3, 80}, + (Vector2){screenWidth/4*3 - 60, 150}, (Vector2){screenWidth/4*3 + 60, 150}, VIOLET); - - DrawTriangleLines((Vector2){screenWidth/4*3, 160}, - (Vector2){screenWidth/4*3 - 20, 230}, + + DrawTriangleLines((Vector2){screenWidth/4*3, 160}, + (Vector2){screenWidth/4*3 - 20, 230}, (Vector2){screenWidth/4*3 + 20, 230}, DARKBLUE); - + DrawPoly((Vector2){screenWidth/4*3, 320}, 6, 80, 0, BROWN); - + EndDrawing(); //---------------------------------------------------------------------------------- } @@ -65,6 +65,6 @@ int main() //-------------------------------------------------------------------------------------- CloseWindow(); // Close window and OpenGL context //-------------------------------------------------------------------------------------- - + return 0; }
\ No newline at end of file |
