Actually, you don''t have to call ID3DXSprite::Begin or ID3DXSprite::End (as per MS DX SDK docs), as the interface will call those for you if you''re attempting to draw.
If you''re getting compiler errors, make sure you have included d3dx8.h and d3dx8.lib with your project, then declare, create, and use:
#include "d3d8.h"#include "d3dx8.h"ID3DXSprite *Sprite;// Assuming pD3DDevice = pre-initialized device objectD3DXCreateSprite(pD3DDevice, &Sprite);pD3DDevice->BeginScene();Sprite->Draw(......);pD3DDevice->EndScene();Sprite->Release();Jim
Jim Adams
home.att.net/~rpgbookProgramming Role-Playing Games with DirectX 8