##### Ninja Library - Light Function

# njSetLightLocation

Sets the light source position

### FORMAT

`

  void njSetLightLocation( *ptr, px, py, pz )
  NJS_LIGHT *ptr
  Float px
  Float py
  Float pz

`

### PARAMETER

  `*ptr` | Pointer to light source
  `px` | X coordinate of light source
  `py` | Y coordinate of light source
  `pz` | Z coordinate of light source

### RETURN

  None

### DESCRIPTION

  Sets light source position. (Point of origin set by default.)

### EXAMPLE

      #include <Shinobi.h>
      	:
      NJS_LIGHT light;
      sbInitSystem( NJD_RESOLUTION_VGA, NJD_FRAMEBUFFER_MODE_RGB565, 1);
      njCreateLight(&light, NJD_POINT_LIGHT);
      	:
      /* Set point light source position to (10, 0, -10) */
      njSetLightLocation(&light, 10.f, 0.f, -10.f);

### NOTE

  Light source needs to be specified in `njCreateLight()` function.

### REFERENCE

  `njCreateLight()
  `

njSetLightLocation

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999