DDGPESurf Constructors (Windows CE 5.0)
The DDGPESurf object has overridden several of the GPESurf object's constructors in order to add functionality.
DDGPESurf(intwidth, intheight, void* pBits, intstride, EGPEFormat format);DDGPESurf(intwidth, intheight, void* pBits, intstride, EGPEFormatformat, EDDGPEPixelFormatpixelFormat);DDGPESurf(intwidth, intheight, intstride, EGPEFormatformat, EDDGPEPixelFormat pixelFormat);DDGPESurf(intwidth,intheight, EGPEFormatformat);
Parameters
- width
Requested width for the surface, in pixels. - height
Requested height for the surface, in pixels. - pBits
Pointer allocated for the surface's graphic data. If the pBits parameter is not passed into the constructor, the DDGPESurf object allocates system memory for that surface's data. - stride
Requested stride for the surface. - format
Requested format for the surface. - pixelFormat
Requested pixel format for the surface.
Return Values
None.
Remarks
When your driver creates a surface, it should never create a DDGPESurf object directly. Instead, you should define your own surface object that derives from DDGPESurf. To add hardware-specific or driver-specific functionality, you can add new constructors and possibly override one or more of the existing constructors.
If your surface object calls one of the DDGPESurf constructors without supplying a pointer to memory that has been allocated for the surface's graphic information, DDGPESurf will automatically allocate system memory for you. The DDGPESurf destructor will free any memory allocated by the DDGPESurf constructors.
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