i have a issue when i use IDirect3DDevice9::SetSamplerState
void Draw(GraphicsDevice *gDevice, float gameTime)
{
// here's the problem
IDirect3DDevice9::SetSamplerState(0, D3DSAMP_MIPFILTER, D3DTEXF_NONE);
//Simple RGB value for the background so use XRGB instead of ARGB
gDevice->Clear(D3DCOLOR_XRGB(0, 100, 100));
gDevice->begin();
//Draw logic here.
if (sprite && sprite->IsInitialized()) sprite->Draw(gameTime);
gDevice->end();
gDevice->present();
}
the errors is 'IDirect3DDevice9::SetSamplerState': illegal call of non-static member function and a nonstatic member reference must be relative to a specific object