• Advertisement
Sign in to follow this  

D3DTSS_MAGFILTER & D3DTSS_MINFILTER

This topic is 4250 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm trying to port a code from DirectX 8.0 to 9.0 and I'm stuck with:
D3DDevice->SetTextureStageState(0, D3DTSS_MAGFILTER, D3DTEXF_LINEAR);
D3DDevice->SetTextureStageState(0, D3DTSS_MINFILTER, D3DTEXF_LINEAR);
What can replace D3DTSS_MAGFILTER and D3DTSS_MINFILTER? Thanks for your help.

Share this post


Link to post
Share on other sites
Advertisement
1.
A new function was added to DirectX 9 just for setting texture sampler specific state: IDirect3DDevice9::SetSamplerState(), because things like filtering modes are properties of a particular texture sampler rather than a multi-texture stage.

2.
D3DDevice->SetSamplerState(0, D3DSAMP_MAGFILTER, D3DTEXF_LINEAR);
D3DDevice->SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXF_LINEAR);

3.
Handy topic to read in the (C++) docs:
DirectX Graphics ->
Direct3D 9 ->
Converting to Direct3D 9

Share this post


Link to post
Share on other sites
Thanks!
Could you post the link to the ressource? I can't find it :(

[Edited by - mR djaX on July 7, 2006 5:23:52 AM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement