Partager via


CDXBaseSurface class

The CDXBaseSurface class is used to simplify the creation of procedural surfaces. An Active Template Library (ATL) Component Object Model (COM) object derived from this class inherits most of the default functionality of an object that can be used as both a transform and a surface. Procedural surfaces are usually created by calling the IDXSurfaceFactory::CreateSurface method, specifying the pFormatID parameter equal to the object's class identifier (CLSID), and specifying DXSF_FORMAT_IS_CLSID in the dwFlags parameter.

CDXBaseSurface has these types of members:

Remarks

To use this base class, you must override the CDXBaseSurface::CreateARGBPointer, CDXBaseSurface::DeleteARGBPointer, and CDXBaseSurface::SurfaceCLSID member functions. All other function overrides are optional.

This class inherits from the CDXBaseNTo1 class and the IDXSurface and IDXSurfaceInit interfaces.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Product

DirectX 6.1

Header

Dxsurfb.h

DLL

Dxtrans.dll