mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Changed DrawRing and DrawCircleSector angle params from int to float to allow greater accuracy. (#1656)
Co-authored-by: Simon <simon@frithrah.com>
This commit is contained in:
@ -28,8 +28,8 @@ int main(void)
|
||||
Vector2 center = {(GetScreenWidth() - 300)/2, GetScreenHeight()/2 };
|
||||
|
||||
float outerRadius = 180.0f;
|
||||
int startAngle = 0;
|
||||
int endAngle = 180;
|
||||
float startAngle = 0.0f;
|
||||
float endAngle = 180.0f;
|
||||
int segments = 0;
|
||||
|
||||
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
|
||||
|
||||
@ -30,8 +30,8 @@ int main(void)
|
||||
float innerRadius = 80.0f;
|
||||
float outerRadius = 190.0f;
|
||||
|
||||
int startAngle = 0;
|
||||
int endAngle = 360;
|
||||
float startAngle = 0.0f;
|
||||
float endAngle = 360.0f;
|
||||
int segments = 0;
|
||||
|
||||
bool drawRing = true;
|
||||
|
||||
Reference in New Issue
Block a user