Re: [AD] al_set_target_bitmap question

[ Thread Index | Date Index | More Archives ]

On Fri, 2008-01-11 at 16:23 +0000, Peter Hull wrote:
> In Java (1.5 and above) BufferedImages have a system-memory
> representation and also, if the system decides, a version uploaded to
> the graphics card. Also in Cocoa, an NSImage is just a container for
> one or more NSImageReps, which are the actual images. OS X decides
> which is the best representation to use in a particular circumstance.
> It would be good to have a similar system for Allegro, so that the
> user does not have to worry about video vs normal bitmaps at all. We
> would only need 'memory' and 'uploaded' forms, either of which could
> be empty depending on where the image came from (ie. loaded from disk
> = memory only, generated by drawing commands = uploaded only). The
> image would also get uploaded if you used it as the source for a blit
> (or used it a few times) and the memory representation would get
> filled in if you tried to lock a portion of an image that only existed
> in video memory,

Isn't that what we are doing?

Elias Pschernig <elias@xxxxxxxxxx>

Mail converted by MHonArc 2.6.19+