*m | Destination matrix |
x | Amount of movement along the X axis |
y | Amount of movement along the Y axis |
z | Amount of movement along the Z axis |
The following applies a matrix that gives parallel movement of 10 along the X axis, 20 along the Y axis, and 30 along the Z axis to the current matrix. NJS_MATRIX stack[10]; NJS_VIEW view; njInitMatrix(stack, 10); njInitView(&view); njSetView(&view); njClearMatrix(); njPushMatrix(NULL); njTranslate(NULL, 10.f, 20.f, 30.f); njPopMatrix(1);