|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.|
Custom DDGPE-based drivers should always use a surface object that is derived from DDGPESurf. This section outlines functions you should override, and functions you should call, in your DDGPESurf-based classes.
If your driver supports the EDDGPEPixelFormatdata type in for surface creation, it is a simple task for you to add your own types of surfaces. If you add a custom surface type whose pixel format includes an alpha channel, you should override the HasAlphafunction.
virtual BOOL HasAlpha ( void );
You should call the SetDriverGUIDfunction to give DDGPEa way to uniquely identify the driver that owns a particular surface. This GUID should be the same as that applied to the DDGPEobject in your DDGPE-based driver.
virtual void SetDriverGUID ( GUID guidDriverGUID );
Last updated on Tuesday, July 13, 2004