Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Header

D3DX10.h

Library

D3DX10.lib

See also

ID3DX10Sprite
D3DX Interfaces

 

 

Show:
© 2018 Microsoft