00001 00039 #ifndef INC_MI32_DISPINFO_H 00040 #define INC_MI32_DISPINFO_H 00041 00042 #ifndef INC_MI32_STDDEFNS_H 00043 #include <mi32/stddefns.h> 00044 #endif 00045 00046 struct COLOR; 00047 00048 //---------------------------------------------------------------------------- 00049 // DISPLAYINFO structure 00050 //---------------------------------------------------------------------------- 00051 00052 struct DISPLAYINFO { 00053 00054 UINT8 HasColorMap; 00055 UINT8 ImageMSBFirst; 00056 short depth; 00057 INT32 width; 00058 INT32 height; 00059 int NumColors; 00060 short RedBits; 00061 short GreenBits; 00062 short BlueBits; 00063 short RedShift; 00064 short GreenShift; 00065 short BlueShift; 00066 UINT32 RedMask; 00067 UINT32 GreenMask; 00068 UINT32 BlueMask; 00069 short bits_per_pixel; 00070 short AlphaBits; 00071 short AlphaShift; 00072 UINT32 AlphaMask; 00073 00074 DISPLAYINFO (); 00075 00076 MPIXEL GetColorPixel ( 00077 const COLOR& color 00078 ) const; 00079 00080 void GetPixelColor ( 00081 MPIXEL pixel, 00082 COLOR& color 00083 ) const; 00084 }; 00085 00086 00087 #endif 00088
1.6.1