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. |
DirectDrawSurface objects expose their functionality through the IDirectDrawSurface, IDirectDrawSurface2, IDirectDrawSurface3, IDirectDrawSurface4, and IDirectDrawSurface5interfaces. Each new interface version provides the same utility as its predecessors, with additional options available through new methods.
When you create a surface by calling the IDirectDraw4::CreateSurfacemethod (or another creation method from IDirectDraw4), you receive a pointer to the surface's IDirectDrawSurface4interface. This behavior is different than previous versions of DirectX. Before the introduction of the IDirectDraw4interface, the CreateSurfacemethod provided a pointer to a surface's IDirectDrawSurfaceinterface. If you want to work with a different iteration (in particular IDirectDrawSurface5) of the interface, you must query for it. When using IDirectDraw4this isn't the case, although you are free to query a surface for a different iteration of an interface if you choose.
Last updated on Tuesday, May 18, 2004