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

ID3DXEffectStateManager::SetTexture Method


A callback function that must be implemented by a user to set a texture.

Syntax

HRESULT SetTexture(      

    DWORD Stage,     LPDIRECT3DBASETEXTURE9 pTexture );

Parameters

Stage
[in] The stage to which the texture is assigned. This is the index value in IDirect3DDevice9::SetTexture or IDirect3DDevice9::SetTextureStageState.
pTexture
[in] A pointer to the texture object. This can be any of the Microsoft Direct3D texture types (cube, volume, etc.). See IDirect3DBaseTexture9.

Return Value

The user-implemented method should return S_OK. If the callback fails when setting the device state, either of the following will occur:





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