##### Ninja Library - Camera Function

# njSetCamera

Sets camera

### FORMAT

`

  void njSetCamera(*c)
  NJS_CAMERA *c

`

### PARAMETER

  `*c` | Pointer to camera structure

### RETURN

  None

### DESCRIPTION

  Generates matrix from member values of user-prepared camera and reflects it in matrix stack base.

### EXAMPLE

      NJS_CAMERANJS_CAMERA c;
      NJS_MATRIX m[10];
      njInitMatrix(m, 10, 0);
      njInitCamera(&c);
      njSetCamera(&c);

### NOTE

  Camera and matrix stack must always be initialized before executing `njSetCamera()` function.

njSetCamera

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999