?/TD>
Microsoft DirectX 9.0

IDirect3DSurface9 Interface


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

IDirect3DSurface9 Members

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.

GetDC

Retrieves a device context.

GetDesc

Retrieves a description of the surface.

LockRect

Locks a rectangle on a surface.

ReleaseDC

Release a device context handle.

UnlockRect

Unlocks a rectangle on a surface.

Remarks

This interface, like all Component Object Model (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;

Interface Information

Inherits fromIDirect3DResource9
Headerd3d9.h
Import libraryd3d9.lib
Minimum operating systems Windows 98

See Also

Surfaces


© 2002 Microsoft Corporation. All rights reserved.