summaryrefslogtreecommitdiffhomepage
path: root/examples/textures/textures_poly.c
diff options
context:
space:
mode:
authorRay <[email protected]>2021-04-22 18:55:24 +0200
committerRay <[email protected]>2021-04-22 18:55:24 +0200
commitdcf52c132fb0ca28f37dae9d957155e2541df812 (patch)
treeb6c263e59daba00fc33badd0a45fa6756d5df14c /examples/textures/textures_poly.c
parentf92ee46d86b5a0cfb05c10b0c31fb966a4784b44 (diff)
downloadraylib-dcf52c132fb0ca28f37dae9d957155e2541df812.tar.gz
raylib-dcf52c132fb0ca28f37dae9d957155e2541df812.zip
Remove trail spaces
Diffstat (limited to 'examples/textures/textures_poly.c')
-rw-r--r--examples/textures/textures_poly.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/textures/textures_poly.c b/examples/textures/textures_poly.c
index ea413112..ff728343 100644
--- a/examples/textures/textures_poly.c
+++ b/examples/textures/textures_poly.c
@@ -5,7 +5,7 @@
* This example has been created using raylib 3.7 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Example contributed by Chris Camacho (@codifies - bedroomcoders.co.uk) and
+* Example contributed by Chris Camacho (@codifies - bedroomcoders.co.uk) and
* reviewed by Ramon Santamaria (@raysan5)
*
* Copyright (c) 2021 Chris Camacho (@codifies) and Ramon Santamaria (@raysan5)
@@ -52,7 +52,7 @@ int main(void)
InitWindow(screenWidth, screenHeight, "raylib [textures] example - textured polygon");
Texture texture = LoadTexture("resources/cat.png");
-
+
float ang = 0;
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
@@ -64,9 +64,9 @@ int main(void)
// Update
//----------------------------------------------------------------------------------
ang++;
-
+
Vector2 positions[MAX_POINTS] = { 0 };
-
+
for (int i = 0; i < MAX_POINTS; i++) positions[i] = Vector2Rotate(points[i], ang);
//----------------------------------------------------------------------------------
@@ -77,8 +77,8 @@ int main(void)
ClearBackground(RAYWHITE);
DrawText("textured polygon", 20, 20, 20, DARKGRAY);
-
- DrawTexturePoly(texture, (Vector2){ GetScreenWidth()/2, GetScreenHeight()/2 },
+
+ DrawTexturePoly(texture, (Vector2){ GetScreenWidth()/2, GetScreenHeight()/2 },
positions, texcoords, MAX_POINTS, WHITE);
EndDrawing();
@@ -88,7 +88,7 @@ int main(void)
// De-Initialization
//--------------------------------------------------------------------------------------
UnloadTexture(texture); // Unload texture
-
+
CloseWindow(); // Close window and OpenGL context
//--------------------------------------------------------------------------------------