8月1日

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.

Syntax
struct GPEMode {
  int modeId;
  int width;
  int height;
  int Bpp;
  int frequency;
  EGPEFormat format;
};


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值