##### Ninja Library - View Function

# njReturn2BaseView

Returns the current view to the base view

### FORMAT

`

  void njReturn2BaseView( *v )
  NJS_VIEW *v

`

### PARAMETER

  `*v` | Pointer to view structure

### RETURN

  None

### DESCRIPTION

  Restores the location and viewline orientation of the current view to the location and orientation of the base view.

### EXAMPLE

      The following manipulates the view in various ways, then restores the view
      to the base view location and viewline.

      NJS_VIEW v;
      njInitView(&v);
      njTranslateViewRelative(50.f, 50.f, 50.f);
      njLookAtView(&v, 0.f, 0.f, 0.f);
      njReturn2BaseView(&v);
      njSetView( &v );
      njClearMatrix();

### NOTE

  When parameter v is NULL, this function acts on the current view.

### REFERENCE

  `njInitView()
  njSetView()
  njSetBaseView()
  njClearMatrix()
  `

njReturn2BaseView

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999