Applications use the methods of the IDirect3DSurface9 interface to query and prepare surfaces.
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 | Pointer to a D3DSURFACE_DESC structure, describing the surface. |
IDirect3DSurface9::LockRect | Pointer to a D3DLOCKED_RECT structure that describes the locked region. |
IDirect3DSurface9::ReleaseDC | Release a device context handle. |
IDirect3DSurface9::UnlockRect | Unlocks a rectangle on a surface. |
This interface, like all COM interfaces, inherits from the IUnknown interface.
The LPDIRECT3DSURFACE9 and PDIRECT3DSURFACE9 types are defined as pointers to the IDirect3DSurface9 interface.
typedef struct IDirect3DSurface9 *LPDIRECT3DSURFACE9, *PDIRECT3DSURFACE9;
Header: Declared in D3d9.h.
Import Library: Use D3d9.lib.