d3d9.dllIDirect3DSurface9
Microsoft DirectX 9.0 SDK Update (October 2004)

IDirect3DSurface9 Interface


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

IDirect3DSurface9 Members

FreePrivateData Frees the specified private data associated with this resource.
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.

GetDevice Retrieves the device associated with a resource.
GetPriority Retrieves the priority for this resource.
GetPrivateData Copies the private data associated with the resource to a provided buffer.
GetType Returns the type of the resource.
LockRect

Locks a rectangle on a surface.

PreLoad Preloads a managed resource.
ReleaseDC Release a device context handle.
SetPriority Assigns the resource-management priority for this resource.
SetPrivateData Associates data with the resource that is intended for use by the application, not by Microsoft Direct3D. Data is passed by value, and multiple sets of data can be associated with a single resource.
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

Stock Implementationd3d9.dll
Custom ImplementationNo
Inherits fromIDirect3DResource9
Headerd3d9.h
Import libraryd3d9.lib
Minimum operating systems Windows 98

See Also

Direct3D Surfaces


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.