Original Post
Hi, I am trying to draw a sprite but when i come to sprite->Draw it says that it doesnt take 5 parameters even tho the example i was using uses 5. My code is basically like this: But the Draw function errors with "function does not take 5 parameters" and i cant find a reference to the parameters it takes. Any help into these parameters would be appreciated alot. Thanks. [Edited by - Roverturbo on November 10, 2005 2:49:13 PM]
LPDIRECT3DTEXTURE9 menu;
D3DXCreateTextureFromFile(m_pD3Ddev, "menu.png", &menu);
D3DXVECTOR3 pos;
pos.x = 10.0f;
pos.y = 20.0f;
pos.z = 0.0f;
LPD3DXSPRITE sprite = NULL;
if(SUCCEEDED(D3DXCreateSprite(m_pD3Ddev, &sprite)))
{
sprite->Begin();
sprite->Draw(menu, NULL, NULL, &pos, 0xFFFFFFFF);
sprite->End();
}