Original Post
Hi boys...
I''ve read some tutorials, and then I''ve write few code line...
but they can''t work...
LPDIRECT3DTEXTURE9 m_ptTexture = NULL;
D3DXVECTOR2 m_v2RotationPoint= D3DXVECTOR2(1.0f, 1.0f);;
D3DXVECTOR2 m_v2ScaleFactor= D3DXVECTOR2(1.0f, 1.0f);;
D3DXVECTOR2 m_v2CenterTex= D3DXVECTOR2(1.0f, 1.0f);;
D3DXVECTOR2 m_v2Coordinate= D3DXVECTOR2(1.0f, 1.0f);;
LPCTSTR cPathSprite ("aaa.bmp");
D3DXCreateTextureFromFile( m_pd3dDevice, cPathSprite, &m_ptTexture );
pID3DXSprite->Draw(m_ptTexture,NULL,&m_v2ScaleFactor,&m_v2RotationPoint,1,&m_v2Coordinate,D3DCOLOR_ARGB(1,10,10,10)); <--- this gime me a runtime error
boh... this code is very short... how do I can to mistake it?
Byezzz and thanks