##### Ninja Library - View Function

# njSetPerspective

Sets the perspective in horizontal direction

### FORMAT

`

  void njSetPerspective(NJM_DEG_ANG(ang))
  Angle ang

`

### PARAMETER

  `NJM_DEG_ANG(ang)` | Perspective in horizontal direction

### RETURN

  None

### DESCRIPTION

  Calculates the distance from the specified perspective in horizontal direction to the screen and sets the distance.

### EXAMPLE

      The following sets the perspective in horizontal direction to 120 degrees.
      sbInitSystem( NJD_RESOLUTION_640x240_NTSCNI, NJD_FRAMEBUFFER_MODE_RGB565, 1 );
      njSetPerspective(NJM_DEG_ANG(120));

njSetPerspective

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999