Hi I am setting the sampler states initially then setting them on the fly with keypresses that I know runs but I dont see anything changing. Am I missing something. Can I just call SetSamplerState(...) anytime or do I need to call something after?
static bool bToggleH = false;
static int iNum = 0;
if(KEY_DOWN(VKY_H))
if (bToggleH)
{
bToggleH = false; // run once
switch (iNum)
{
case 0:
g_Text->SetRow(TXT_MINFILTER, "D3DSAMP_MINFILTER = D3DTEXF_POINT");
m_pD3DDevice->SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXF_POINT); // minification
break;
case 1:
g_Text->SetRow(TXT_MINFILTER, "D3DSAMP_MINFILTER = D3DTEXF_LINEAR");
m_pD3DDevice->SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXF_LINEAR); // minification
break;
case 2:
g_Text->SetRow(TXT_MINFILTER, "D3DSAMP_MINFILTER = D3DTEXF_ANISOTROPIC");
m_pD3DDevice->SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXF_ANISOTROPIC); // minification
break;
}
if (iNum < 2) iNum++; else iNum = 0;
}
if(KEY_UP(VKY_H)) if (!bToggleH) bToggleH = true; // only true if keyup