[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Bit-Depth and Graphics stuff....



--------------------------------------------------
From: "m0n0" <ole@monochrom.net>
Sent: Wednesday, July 07, 2010 12:47 AM
To: "Peter Persson" <pep.fishmoose@gmail.com>
Cc: "mint" <mint@lists.fishpool.fi>
Subject: Re: [MiNT] Bit-Depth and Graphics stuff....

Seems like this fVDI thing could really provide an convenient API for true
color stuff...

I'm not sure what you're talking about. PeP has already explained the colour index. There are no limits in VDI when it comes to colour depth, except when defining the "pens" used for drawing primitives. There is nothing in the API that keep you from using 32 bit bitmaps.

The only thing missing from the VDI when it comes to truecolour graphics is bitmap transformation. In 1-8 bit modes, there is the "VDI standard format" for bitmaps. This is well defined, and there are VDI calls to transform this bitmap to the current screen layout. So you don't have to know anything about the pixel format/layout. In truecolour modes you have to do this yourself.

Jo Even