njSetView | Japanese
    <-|INDEX|->
Specifies a user-defined view as the current view.

### FORMAT

      #include <Ninja.h>

      void njSetView(*v)
      NJS_VIEW *v

### PARAMETERS

NJS_VIEW *v
  view structure pointer

### RETURN VALUE

  None

### FUNCTION

- Specifies a user-defined view as the current view.
- The view matrix is prepared according to position (px, py, pz), view direction (vx, vy, vz), and view tilt (roll) included in the view structure.
- Clears the matrix stack.
  (njSetView() includes the function of njClearMatrix())

### EXAMPLE

      NJS_VIEW v;

      njInitView(&v);
      njSetView(&v);

### NOTES

- The view must be initialized before execution of njSetView().
- For details, see the View function Readme.txt.
- In order to keep the compatibility of programs, njClearMatrix() function still exists.
  But if njClearMatrix() function is executed, you need to do the same process twice.

### RELATED TOPICS

  njInitView()
  njClearMatrix()

njSetView |
    <-|INDEX|->