
"Hanson, Iain" <iain.hanson@csfb.com> escribió en el mensaje news:4DC0299EAC0ED311B7580090274CF0640B690B1C@slon12306.csfp.co.uk...
From: Allan Odgaard [mailto:ML@Top-House.DK] Sent: 30 March 2004 22:25
Yes -- although I personally do need it even when I do not write operating systems ;) and thus my question really was if there is any general interest in such a library, since I did exhaustive searching and was only able to find such region stuff implemented publicly in the GDK/GTK library, which is ANSI-C AFAICT, and that led me to the conclusion that either there is no real use for this stuff outside GUI kits, windowing systems, and 2D games or efficient region "logic" is often skipped for ad hoc workarounds like using bounding boxes or refreshing more than necessary -- in which case there really ought to be a library.
I think that there really is a need for such a library. From what I have seen, many libs that need this either use ad hoc solutions as you suggest above, or they re-invent the wheel and the solution they come up with is intimately bound up with their problem space and therefore not easily re-useable.
Though I would certainly found such a class useful, I'm not sure if its place is Boost. Seems too domain-specific to me. Why not sourceforge, or maybe flipCode or any of the more game/graphics-centric repositories. Fernando Cacciola SciSoft