On 25.08.2010, at 12:38, Marc R.J. Brevoort wrote:

> I have yet to fully comprehend what Fl_Shared_Image
> actually does- I see it's some sort of cache, but
> its name also seems to imply that memory is allocated
> only once if an image is used multiple times or
> something?

Yes, that's both true. Fl_Shared_Image::get() loads an
image from a file and keeps its (file)name and resolution
for reference. Loading it a second time increments a ref.
count. You can even copy() the image with other resolutions,
and Fl_Shared_Image will keep the copies with their resp.
resolutions and refcounts. That's what I can say off the
top of my head, but there's maybe more about it...

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

Reply via email to