Share via


DDGPESurf::Init (Windows CE 5.0)

Send Feedback

This method is similar to the GPESurf::Init method. In addition to its counterpart's methods, the DDGPESurf::Init method initializes the pixel format for the current surface. Because DDGPESurf and GPE set up their member variables in their own constructors, your driver will typically not call this method. If the constructor for your custom surface object does not call a DDGPESurf constructor, call this method to ensure that all surface information is set up properly.

virtual void Init(intwidth, int height, void* pBits, intstride, EGPEFormatformat, EDDGPEPixelFormatpixelFormat);

Parameters

  • width
    The requested width for the surface, in pixels.
  • height
    The requested height for the surface, in pixels.
  • pBits
    A pointer that has been allocated for the surface's graphic data.
  • stride
    The requested stride for the surface.
  • format
    The requested format for the surface.
  • pixelFormat
    The requested pixel format for the surface.

Return Values

None.

Requirements

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header: Ddgpe.h.
Link Library: Ddgpe.lib.

See Also

DDGPESurf Class | DDGPESurf Class Definition

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.