*m | Calculation matrix |
x | Scaling ratio along the X axis |
y | Scaling ratio along the Y axis |
z | Scaling ratio along the Z axis |
The following scales the current matrix by 0.5 along the X axis, 1 along the Y axis, and 2 along the Z axis. NJS_MATRIX stack[10]; NJS_VIEW view; njInitMatrix(stack, 10); njInitView(&view); njSetView(&view); njClearMatrix(); njPushMatrix(NULL); njScale(NULL, 0.5f, 1.f, 2.f); njPopMatrix(1);