Original Post
hi,
I use the program which creates a red triangle under directx9.
I would like to modify the world matrix. So I change
by
but I can''t see a translation.
any idea?
thank you for your help!!!
// 1 -Init
D3DXMATRIX matIdentity;
D3DXMatrixIdentity( &matIdentity );
m_pd3dDevice->SetTransform( D3DTS_WORLD, &matIdentity );
D3DXMATRIX matWorld; D3DXMatrixIdentity( &matWorld ); matWorld._41 = -2.0f; matWorld._42 = 3.0f; matWorld._43 = 0.0f; m_pd3dDevice->SetTransform( D3DTS_WORLD, &matWorld );