IDirect3DSurface9 interface

Applications use the methods of the IDirect3DSurface9 interface to query and prepare surfaces.


The IDirect3DSurface9 interface has these methods.

Method Description
IDirect3DSurface9::GetContainer Provides access to the parent cube texture or texture (mipmap) object, if this surface is a child level of a cube texture or a mipmap. This method can also provide access to the parent swap chain if the surface is a back-buffer child.
IDirect3DSurface9::GetDC Retrieves a device context.
IDirect3DSurface9::GetDesc Retrieves a description of the surface.
IDirect3DSurface9::LockRect Locks a rectangle on a surface.
IDirect3DSurface9::ReleaseDC Release a device context handle.
IDirect3DSurface9::UnlockRect Unlocks a rectangle on a surface.


The LPDIRECT3DSURFACE9 and PDIRECT3DSURFACE9 types are defined as pointers to the IDirect3DSurface9 interface.

typedef struct IDirect3DSurface9 *LPDIRECT3DSURFACE9, *PDIRECT3DSURFACE9;


Target Platform Windows
Header d3d9helper.h (include D3D9.h)

See Also

Direct3D Interfaces