DDGPESurf Derivation (Windows Embedded CE 6.0)
1/6/2010
Custom DDGPE-based drivers should always use a surface object that is derived from DDGPESurf. This topic outlines functions you should override and functions you should call in your DDGPESurf-based classes.
Functions You Should Override
HasAlpha
If your driver supports the EDDGPEPixelFormat data type in for surface creation, you can add your own types of surfaces. If you add a custom surface type whose pixel format includes an alpha channel, you should override the DDGPESurf::HasAlpha function.virtual BOOL HasAlpha ( void );
Functions You Should Call
SetDriverGUID
To give DDGPE a way to uniquely identify the driver that owns a particular surface, you should call the SetDriverGUID function. This GUID should be the same as that applied to the DDGPE object in your DDGPE-based driver.virtual void SetDriverGUID ( GUID guidDriverGUID );