*m | Matrix to be moved |
*v | Amount of movement along the various axes |
The following moves the current matrix by 10 along the X axis, 20 along the Y axis, and 30 along the Z axis. NJS_MATRIX stack[10]; NJS_VIEW view; NJS_VECTOR v; v.x = 10.f; v.y = 20.f; v.z = 30.f; njInitMatrix(stack, 10); njInitView(&view); njSetView(&view); njClearMatrix(); njPushMatrix(NULL); njTranslateV(NULL, &v); njPopMatrix(1);