diff options
| author | Ray <raysan5@gmail.com> | 2016-10-09 20:57:14 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2016-10-09 20:57:14 +0200 |
| commit | 4c791100cc339e9be09c95b3bcebf09951647e9d (patch) | |
| tree | 4c413b21d0f9b1c23b59397287092f655db0d944 /src | |
| parent | 5af1b4a7c9119cf438e4cb5303009fbe9a25c6d7 (diff) | |
| download | raylib-4c791100cc339e9be09c95b3bcebf09951647e9d.tar.gz raylib-4c791100cc339e9be09c95b3bcebf09951647e9d.zip | |
Tweak int to float
Diffstat (limited to 'src')
| -rw-r--r-- | src/shapes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shapes.c b/src/shapes.c index 362dc0f7..9fcbeff7 100644 --- a/src/shapes.c +++ b/src/shapes.c @@ -129,7 +129,7 @@ void DrawCircleV(Vector2 center, float radius, Color color) { rlColor4ub(color.r, color.g, color.b, color.a); - rlVertex2i(center.x, center.y); + rlVertex2f(center.x, center.y); rlVertex2f(center.x + sin(DEG2RAD*i)*radius, center.y + cos(DEG2RAD*i)*radius); rlVertex2f(center.x + sin(DEG2RAD*(i + 10))*radius, center.y + cos(DEG2RAD*(i + 10))*radius); } @@ -144,7 +144,7 @@ void DrawCircleV(Vector2 center, float radius, Color color) { rlColor4ub(color.r, color.g, color.b, color.a); - rlVertex2i(center.x, center.y); + rlVertex2f(center.x, center.y); rlVertex2f(center.x + sin(DEG2RAD*i)*radius, center.y + cos(DEG2RAD*i)*radius); rlVertex2f(center.x + sin(DEG2RAD*(i + 10))*radius, center.y + cos(DEG2RAD*(i + 10))*radius); rlVertex2f(center.x + sin(DEG2RAD*(i + 20))*radius, center.y + cos(DEG2RAD*(i + 20))*radius); @@ -330,7 +330,7 @@ void DrawPoly(Vector2 center, int sides, float radius, float rotation, Color col { rlColor4ub(color.r, color.g, color.b, color.a); - rlVertex2i(0, 0); + rlVertex2f(0, 0); rlVertex2f(sin(DEG2RAD*i)*radius, cos(DEG2RAD*i)*radius); rlVertex2f(sin(DEG2RAD*(i + 360/sides))*radius, cos(DEG2RAD*(i + 360/sides))*radius); } |
