##### Ninja Library - Light Function

# njRotateLightZ

Rotates a light matrix around the Z axis

### FORMAT

`

  void njRotateLightZ( *ptr, angz )
  NJS_LIGHT *ptr
  Angle angz

`

### PARAMETER

  `*ptr` | Pointer to light source
  `angz` | Z axis rotation angle

### RETURN

  None

### DESCRIPTION

  Rotates light source matrix registered by `njCreateLight()` function on the Z axis. Light source position and direction are calculated.

### EXAMPLE

      #include <Shinobi.h>
      	:
      NJS_LIGHT light;
      sbInitSystem( NJD_RESOLUTION_VGA, NJD_FRAMEBUFFER_MODE_RGB565, 1);
      njCreateLight(&light, NJD_POINT_LIGHT);
      	:
      njClearMatrix();
      /* Rotate Z axis 30 degrees */
      njRotateLightZ(&amp;light, NJM_RAD_ANG(NJD_PI/6.f));

### NOTE

  Light source needs to be specified by `njCreateLight()` function and `njClearMatrix()` function needs to be called beforehand.

### REFERENCE

  `njCreateLight()
  `

njRotateLightZ

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999