设置当前要渲染的纹理
HRESULT SetTexture(
DWORD Stage, //多级纹理的索引,从0-7,单层纹理取0
IDirect3DBaseTexture9 *pTexture //Direct3D的纹理接口指针
);
Parameters
Sampler
- [in] Zero based sampler number. Textures are bound to samplers; samplers define sampling state such as the filtering mode and the address wrapping mode. Textures are referenced differently by the programmable and the fixed function pipeline: