*m | Destination matrix |
x | X axis rotation angle |
y | Y axis rotation angle |
z | Z axis rotation angle |
The following applies a matrix that gives rotation of 30 degrees around the X axis, 60 degrees around the Y axis and 90 degrees around the Z axis to the current matrix. NJS_MATRIX stack[10]; NJS_VIEW view; njInitMatrix(stack, 10); njInitView(&view); njSetView(&view); njClearMatrix(); njPushMatrix(NULL); njRotateXYZ(NULL, NJM_DEG_ANG(30), NJM_DEG_ANG(60), NJM_DEG_ANG(90)); njPopMatrix(1);