diff options
author | Brian Paul <[email protected]> | 2005-04-12 01:41:04 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-04-12 01:41:04 +0000 |
commit | 41bddcfa7bbc65bcd2fc60ada9761d3065e71388 (patch) | |
tree | be88ade73a1836d590915399c132b93c3ce324f0 /src/mesa/drivers/x11/xmesaP.h | |
parent | 55ba0dccc92797a0411ce315328100e28f6343b7 (diff) |
PF_8A8R8G8B pixel format (Dave Reveman)
Diffstat (limited to 'src/mesa/drivers/x11/xmesaP.h')
-rw-r--r-- | src/mesa/drivers/x11/xmesaP.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/xmesaP.h b/src/mesa/drivers/x11/xmesaP.h index de989260aef..43712ff21f8 100644 --- a/src/mesa/drivers/x11/xmesaP.h +++ b/src/mesa/drivers/x11/xmesaP.h @@ -74,7 +74,8 @@ enum pixel_format { PF_1Bit, /**< monochrome dithering of RGB */ PF_Grayscale, /**< Grayscale or StaticGray */ PF_8R8G8B24, /**< 24-bit TrueColor: 8-R, 8-G, 8-B bits */ - PF_Dither_5R6G5B /**< 16-bit dithered TrueColor: 5-R, 6-G, 5-B */ + PF_Dither_5R6G5B, /**< 16-bit dithered TrueColor: 5-R, 6-G, 5-B */ + PF_8A8R8G8B /**< 32-bit TrueColor: 8-A, 8-R, 8-G, 8-B */ }; @@ -303,6 +304,12 @@ struct xmesa_buffer { #define PACK_5R6G5B( R, G, B) ( (((R) & 0xf8) << 8) | (((G) & 0xfc) << 3) | ((B) >> 3) ) +/* + * If pixelformat==PF_8A8R8G8B: + */ +#define PACK_8A8R8G8B( R, G, B, A ) \ + ( ((A) << 24) | ((R) << 16) | ((G) << 8) | (B) ) + /* |