8月7日

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 
};

Members

modeInfo

Contains the GPEMode for the current device. You can use this field instead of having a separate GPEMode member variable in your device driver.

DDGPEStandardHeader

See DDGPEStandardHeader for more information.

ePixelFormat

Identifies the surface's EDDGPEPixelFormat. See EDDGPEPixelFormat for more information.

dwPixelFourCC

The value of dwPixelFourCC can be used to indicate the FourCC code for the current surface. This value should be zero (0), if the FourCC information does not apply.

dwPixelFormatData

Drivers can use the dwPixelFormatData element, if it is necessary to store more detailed information about a particular mode or its surface type. The value of this field is 

ignored by DDGPE.

lPitch

Identifies the pitch of the specified mode.

dwFlags

Flags for the current surface. This field should be set to zero (0).

dwRBitMask

Indicates the red bit mask for surfaces in the current mode.

dwGBitMask

Indicates the green bit mask for surfaces in the current mode.

dwBBitMask

Indicates the blue bit mask for surfaces in the current mode.

dwAlphaBitMask

Indicates the alpha bit mask for surfaces in the current mode.


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;

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;
};

Members

modeId

Number determined by the developer. Each video mode, resolution, bit-depth, and vertical retrace frequency, has a number determined by the driver developer.

width

Width of primary surface, or screen, in pixels. For example, 640.

height

Height of primary surface, or screen, in pixels. For example, 480.

Bpp

Bpp, number of bits that represent each pixel on a screen. For example 16 bpp is 2 to 16th power, which is 65,536 possible unique colors per pixel.

frequency

Monitor frequency, the vertical retrace frequency. Which is the number of whole screen scans of the cathode ray tube gun per second.

format

RGB representation. Specifies how the bits in a pixel represent RGB, such as how many bits are used for red, green, or blue, or a palletized value where the pixel value is

 an offset into a palette.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值