Platform SDK: DirectX |
The ID3DXMatrixStack::TranslateLocal method determines the product of the computed translation matrix determined by the given factors (x, y, and z) and the current matrix.
HRESULT TranslateLocal( float x, float y, float z );
This method returns S_OK.
This method left-multiplies the current matrix with the computed translation matrix (transformation is about the local origin of the object):
D3DXMATRIX tmp; D3DXMatrixTranslation( &tmp, x, y, z ); m_stack[m_currentPos] = tmp * m_stack[m_currentPos];
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Version: Requires DirectX 7.0.
Header: Declared in d3dxmath.h.
Library: Use d3dx.lib.