Microsoft Windows CE 3.0  

DDGPESurf Constructors

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The DDGPESurfobject has overridden several of the GPESurfobject's constructors in order to add functionality.

When your driver creates a surface, it should never create a DDGPESurfobject directly. Instead, you should define your own surface object that derives from DDGPESurf. To add hardware- or driver-specific functionality, you can new constructors and possibly override one or more of the existing constructors.

If your surface object calls one of the DDGPESurfconstructors without supplying a pointer to memory that has been allocated for the surface's graphic information, DDGPESurfwill automatically allocate system memory for you. The DDGPESurfdestructor will free any memory allocated by the DDGPESurfconstructors.

DDGPESurf ( int
width
,
int
height
,
void *
pBits
,
int
stride
,
EGPEFormat
format
);
DDGPESurf (
int
width
,
int
height
,
void *
pBits
,
int
stride
,
EGPEFormat
format
,
EDDGPEPixelFormat
pixelFormat
);
DDGPESurf (
int
width
,
int
height
,
int
stride
,
EGPEFormat
format
,
EDDGPEPixelFormat
pixelFormat
);
DDGPESurf (
int
width
,
int
height
,
EGPEFormat
format
);

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. If the pBits parameter is not passed into the constructor, the DDGPESurfobject allocates system memory for that surface's data.
stride
The requested stride for the surface.
format
The requested format for the surface.
pixelFormat
The requested pixel format for the surface.

 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.