Re: [fltk.coredev] Re: SDL

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Re: SDL Bill Spitzak 07:23 Aug 17 top right image
 
Generally fltk just tries to draw the nicest shape provided by the toolkit. If SDL cannot draw ellipses then I would use sqrt(width*height)/2 as the radius, and make sure the center is in the center of the rectangle, thus getting a circle of the same area.
The circles are very rarely used, especially for anything other than full circles, so it is not very important that they be correct. The current api just matches what X11 provided.


On Tue, Aug 17, 2021 at 6:37 AM LM <lmemsm@gmail.com> wrote:
Still working on the SDL backend.  I found the unittests program which has been a big help in debugging.  At this point, all but two of the unittests seem to be working.  There's an issue with circle and arc drawing.  There is a routine for arc and pie drawing for use with SDL.  However, it needs radius and angles and the input from FLTK is bounding box and angles.  I'm having trouble locating information on how best to convert information about a bounding box to a working radius value.  The other issue is with the schemes test.  It uses multiple windows.  I'm wondering how to handle windowing on a system that might not support creation of multiple windows.  Possibly multiple bitmaps drawn on a main window will work.  SDL 2 does have some support for multiple windows on certain platforms while earlier versions of SDL did not.  I'm attempting to go through the windowing logic in some of the other drivers to see how this works conceptually and how best to handle it.  If anyone has any tips in this area, they'd be greatly appreciated.  I also still need to work on character input.  I'm slowly making progress on the project though.

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/d2f29cd6-59b6-4b38-b370-b987329096een%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/CAL-8oAjHdwGdd3GDZBCE99q%2BNaEwzq-tEWbLL-BfUX48VpAm0A%40mail.gmail.com.
Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2021 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.