On 20 May 2011, at 20:35, CIB wrote:

> I just recently got to removing the more annoying glitches from my renderer, 
> and sure enough, it works. I also added a FPS counter and realized that I was 
> rendering at far higher speeds than I need(according to time() I was 
> rendering at 300 FPS, but my clock might be a bit off). So by slowing down 
> the thing a bit, I can now render at 30 FPS with low CPU usage, and even PNG 
> alpha transparency becomes viable at a good speed!
> 
> And a quick note on what I'm working on: It's basically a 2d renderer that 
> handles all the low-level stuff for you and offers you a high-level 
> interface. Rather than manually blitting every sprite every frame, you just 
> add a bunch of objects and do operations on them. I seriously think that game 
> programmers shouldn't have to write their own renderer for every single 2d 
> game, but I also couldn't find any good and lightweight rendering libraries 
> out there that also had GUI integration. Well, that problem's solved :)
> 
> Anyway, I'm thinking about releasing this code under a permissive open source 
> license. Much of the code is focused around an FLTK widget, so it should be 
> straightforward to integrate with an FLTK program. I currently use a wrapper 
> for the images, which provide the Fl_Image functionality in an abstract 
> way(that way you can use the same interface to work with e.g. SDL), but since 
> the pure FLTK renderer is fast enough, I might just use Fl_Image instead.

Sounds interesting - links welcomed; You could add it to the fltk links bazaar 
pages too, if you think it might be interesting to passers by!





_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to