Hi!

Matrox and 3DLabs will release new chipsets in August - Parhelia and P10.
Parhelia uses 10bits for each color channel (r,g,b,a).
So the 32bits the ggi_pixel has won't be sufficient any longer to support
future chipsets.

ANSI C99 defines a "long long" integer type with 64 precision, which can be
used for that. The problem is, that there are still too many plattforms, that
don't complain the ANSI C99 really _completely_!

(Further, GGI applications assuming that ggi_pixel is always uint32
respectively unsigned int will get broken then. But that is a task for the GGI app
maintainers to fix up.)

So I suggest to expand ggi_pixel to "unsigned long long" for ANSI C99
compatible plattforms and (someting like) this for ANSI C89 (and older) plattforms:

typdef struct ggi_pixelfmt_t {
        uint32 lowerpixel;
        uint32 higherpixel;
};
extern ggi_pixelfmt_t pixelfmt;

#define ggi_pixel pixelfmt.lowerpixel


Another suggestion is to expand ggi_pixel as described above and say, that
non ANSI C99 compatible plattforms must live with the fact to not being able
to use the new features of future chipsets.

Is there somebody, who has better ideas?

-- 
CU,

Christoph Egger
E-Mail: [EMAIL PROTECTED]

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

Reply via email to