ID3DX10Sprite::GetDevice method

Retrieve the device associated with the sprite object.

Syntax

HRESULT GetDevice(
  [out] ID3D10Device **ppDevice
);

Parameters

ppDevice [out]

Type: ID3D10Device**

Address of a pointer to an ID3D10Device interface, representing the Direct3D device object associated with the sprite object.

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK. If the method fails, the following value will be returned: D3DERR_INVALIDCALL.

Remarks

Calling this method will increase the internal reference count on the ID3D10Device interface.

Requirements

Requirement Value
Header
D3DX10.h
Library
D3DX10.lib

See also

ID3DX10Sprite

D3DX Interfaces