Whats that filter?

Started by
2 comments, last by Code Is Your Friend 15 years, 11 months ago
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
Advertisement
A new separate method called SetSamplerState has been added.
See also the D3DSAMPLERSTATETYPE enum in the documentation.
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

Enoch DagorLead DeveloperDark Sky EntertainmentBeyond Protocol
Ty, I will try these.

This topic is closed to new replies.

Advertisement