Microsoft DirectX 9.0

ID3DXSprite Interface

The ID3DXSprite interface provides a set of methods that simplify the process of drawing sprites using Microsoft?Direct3D?

ID3DXSprite Members

Begin Prepares a device for drawing sprites.
Draw Draws a simple sprite in screen space.
DrawTransform Provides a mechanism for drawing a sprite that is transformed by a specified matrix.
End Restores the device state to how it was when ID3DXSprite::Begin was called.
GetDevice Retrieves the Direct3D device associated with the sprite object.

Releases all references to video memory resources and deletes all stateblocks.


Should be called after the device has been reset.


The ID3DXSprite interface is obtained by calling the D3DXCreateSprite function.

The ID3DXSprite interface, like all Component Object Model (COM) interfaces, inherits the IUnknown interface.

The LPD3DXSPRITE type is defined as a pointer to the ID3DXSprite interface.

typedef interface ID3DXSprite *LPD3DXSPRITE;

Interface Information

Inherits fromIUnknown
Import libraryd3dx9.lib
Minimum operating systems Windows 98

© 2002 Microsoft Corporation. All rights reserved.