• Advertisement
Sign in to follow this  

Whats that filter?

This topic is 3570 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

So I am useing someone elses code and they have it written like this, m_pd3dDevice->SetTextureStageState( 0, D3DTSS_MAGFILTER, D3DTEXF_LINEAR); m_pd3dDevice->SetTextureStageState( 0, D3DTSS_MINFILTER, D3DTEXF_LINEAR); m_pd3dDevice->SetTextureStageState( 0, D3DTSS_MIPFILTER, D3DTEXF_LINEAR); But its not accepting that, mag, min, mip filters bit. Do I need a specific file linked to use them? He wrote it useing directx8 im on dx9, did they remove it? Thanks

Share this post


Link to post
Share on other sites
Advertisement
A new separate method called SetSamplerState has been added.
See also the D3DSAMPLERSTATETYPE enum in the documentation.

Share this post


Link to post
Share on other sites
Nope, it is still there.

You will need to test your device's capabilities.

In Managed, it is is
DeviceCaps.TextureFilterCaps.SupportsMagnifyLinear
DeviceCaps.TextureFilterCaps.SupportsMinifyLinear
DeviceCaps.TextureFilterCaps.SupportsMipMapLinear

Share this post


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

  • Advertisement