##### Ninja Library - View Function

# njSetView

Specifies the current view

### FORMAT

`

  void njSetView( *v )
  NJS_VIEW *v

`

### PARAMETER

  `*v` | Pointer to view structure

### RETURN

  None

### DESCRIPTION

  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())`

  *Caution*

  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.

### EXAMPLE

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

### NOTE

  The view must be initialized before execution of `njSetView().` Refer to Readme.txt of view function for more details.

### REFERENCE

  `njInitView()
  njClearMatrix()
  `

njSetView

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999