We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2469 - Add a function to draw circles
Summary: Add a function to draw circles
Status: RESOLVED ABANDONED
Alias: None
Product: SDL
Classification: Unclassified
Component: render (show other bugs)
Version: HG 2.1
Hardware: All All
: P2 enhancement
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-29 02:02 UTC by Matheus Valadares
Modified: 2018-08-06 21:20 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matheus Valadares 2014-03-29 02:02:21 UTC
It seems that the 2D rendering subsystem doesn't have any functions to draw circles, is that an overlook or something that isn't intended to be implemented?
Comment 1 Luxon Jean-Pierre 2016-07-30 18:40:53 UTC
I recently implemented two functions that draw a circle on a renderer:

- SDL_RenderDrawCircle
- SDL_RenderFillCircle

You can find the implementation here :
https://gist.github.com/Gumichan01/332c26f6197a432db91cc4327fcabb1c

I cannot submit this on the repository because I do not have the write :-/
Comment 2 Philipp Wiesemann 2016-08-01 20:34:41 UTC
The loop condition in the linked implementation seems wrong. It should be "offsety >= offsetx" instead of "y >= x".
Comment 3 Luxon Jean-Pierre 2016-08-02 10:15:05 UTC
Yes, I fixed that.
Comment 4 Ryan C. Gordon 2018-08-06 21:20:19 UTC
Hello, and sorry if you're getting dozens of copies of this message by email.

We are closing out bugs that appear to be abandoned in some form. This can happen for lots of reasons: we couldn't reproduce it, conversation faded out, the bug was noted as fixed in a comment but we forgot to mark it resolved, the report is good but the fix is impractical, we fixed it a long time ago without realizing there was an associated report, etc.

Individually, any of these bugs might have a better resolution (such as WONTFIX or WORKSFORME or INVALID) but we've added a new resolution of ABANDONED to make this easily searchable and make it clear that it's not necessarily unreasonable to revive a given bug report.

So if this bug is still a going concern and you feel it should still be open: please feel free to reopen it! But unless you respond, we'd like to consider these bugs closed, as many of them are several years old and overwhelming our ability to prioritize recent issues.

(please note that hundred of bug reports were sorted through here, so we apologize for any human error. Just reopen the bug in that case!)

Thanks,
--ryan.