Sign in to follow this  
Code Is Your Friend

Whats that filter?

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this