Share via


Independent DirectDrawClipper Objects

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

You can create DirectDrawClipper objects that are not directly owned by any particular DirectDraw object. These DirectDrawClipper objects can be shared across multiple DirectDraw objects.

Driver-independent DirectDrawClipper objects are created by using the new IDirectDraw::CreateClipper DirectDraw function. An application can call this function before any DirectDraw objects are created.

Because DirectDraw objects do not own these DirectDrawClipper objects, they are not released when your application's objects are released. If the application does not explicitly release these DirectDrawClipper objects, DirectDraw releases them when the application closes.

You can still create DirectDrawClipper objects by using the IDirectDraw::CreateClipper method. These DirectDrawClipper objects are released when the DirectDraw object from which they were created is released.