Microsoft DirectX 8.1 (C++) |
Determines the product of the computed scale matrix composed from the given point (x, y, and z) and the current matrix.
HRESULT Scale( FLOAT x, FLOAT y, FLOAT z );
If the method succeeds, the return value is D3D_OK.
This method left-multiplies the current matrix with the computed scale matrix (transformation is about the local origin of the object).
D3DXMATRIX tmp; D3DXMatrixScaling( &tmp, x, y, z ); m_stack[m_currentPos] = tmp * m_stack[m_currentPos];
Header: Declared in D3dx8math.h.
Import Library: Use D3dx8.lib.