GPE
The Graphics Primitive Engine (GPE) base class library is a device-independent bitmap (DIB) driver. GPE can use the emulation library, ClearType, antialiasing and
gradient fill.
The GPE class serves as a base to implement individual display drivers from. A GPE object represents a single display device.DDGPE Class
You can use the DirectDraw Graphics Primitive Engine (DDGPE) base classes to extend the GPE classes to support DirectDraw. Because you will use several of the
methods very often in the implementation of the DirectDraw hardware abstraction layer (DDHAL) portion of your display driver, it is important that you familiarize yourself
with the information about the DDGPE base classes.
The DDGPE class serves as the base from which a DirectDraw display driver can be derived.m_pModeEx
The m_pModeEx member variable should be initialized by your driver to contain a pointer to GDI's current mode information. Like GPE's m_pMode, you should update it
whenever the GDI mode changes.
Syntax
GPEModeEx* m_pModeEx;
GPEModeEx
This structure contains mode information.
Syntax
#define GPEMODEEX_VERSION0(0)
#define GPEMODEEX_CURRENTVERSION(GPEMODEEX_VERSION0)
struct GPEModeEx {
GPEMode modeInfo;
DDGPEStandardHeader;
EDDGPEPixelFormat ePixelFormat;
DWORD dwPixelFourCC;
DWORD dwPixelFormatData;
LONG lPitch;
DWORD dwFlags;
DWORD dwRBitMask;
DWORD dwGBitMask;
DWORD dwBBitMask;
DWORD dwAlphaBitMask
};
GPEMode
This structure contains information on the width, height, bits per pixel (bpp), frequency, and format.
Syntaxstruct GPEMode {
int modeId;
int width;
int height;
int Bpp;
int frequency;
EGPEFormat format;
};