njRotateX Japanese
<-|INDEX|->
Applies a matrix that gives a rotation around the X axis.

FORMAT

#include <Ninja.h>

void njRotateX(*m, ang)
NJS_MATRIX *m
Angle ang

PARAMETERS

NJS_MATRIX *m
destination matrix
Angle ang
rotation angle

RETURN VALUE

None

FUNCTION


EXAMPLE

The following applies a matrix that gives rotation of 90 degrees around the X axis to the current matrix.
NJS_MATRIX stack[10];
NJS_VIEW view;

njInitMatrix(stack, 10);
njInitView(&view);
njSetView(&view);
njClearMatrix();
njPushMatrix(NULL);
njRotateX(NULL, NJM_DEG_ANG(90));
njPopMatrix(1);

NOTES


RELATED TOPICS


njRotateX
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997