SDL_RenderDrawEllipse?

We have a SDL_RenderDrawRect routine which will draw a rectangle fitting within the specified bounds onto a renderer.? How difficult would it be to create a SDL_RenderDrawEllipse, which would take the same arguments as SDL_RenderDrawRect and draw an ellipse that would be bounded by the specified rectangle?? Is that something that could realistically be added?? Because I’ve just recently found a need for such a method, and I have no idea how I’d go about implementing it if it wasn’t already available in the library somewhere.

Mason

SDL2_gfx has an ellipse function: http://sourceforge.net/projects/sdl2gfx/On 1/3/2013 6:49 PM, Mason Wheeler wrote:

We have a SDL_RenderDrawRect routine which will draw a rectangle
fitting within the specified bounds onto a renderer. How difficult
would it be to create a SDL_RenderDrawEllipse, which would take the
same arguments as SDL_RenderDrawRect and draw an ellipse that would be
bounded by the specified rectangle? Is that something that could
realistically be added? Because I’ve just recently found a need for
such a method, and I have no idea how I’d go about implementing it if
it wasn’t already available in the library somewhere.

Mason


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org