njInitSystem | Japanese
    <-|INDEX|->
Initializes the system.

### FORMAT

      #include <Ninja.h>
      void  njInitSystem( mode, frame, count )
      Int  mode
      Int  frame
      Int  count

### PARAMETERS

mode
  Screen mode (resolution)
  Specifies the screen resolution.
frame
  Frame buffer mode.
count
  Number of frames
  Specifies the number of frames in 1/60-sec units.

### RETURN VALUE

  None

### ERROR VALUE

  None

### FUNCTION

- Initializes the system and sets the specified screen resolution mode.
- Makes the 2D clip area the same as the screen size.
- Sets Z-clip to -2.0 to -60000.0.
- Sets the 3D screen's projection surface distance to 500.
- Sets both X and Y aspect to 1.0.
- Sets the color mode to NJD_COLOR_MODE_NORMAL.

- Sets the number of frames in units of 1/60.
- For example, a setting 2 results in a frame change every 1/30 second.
- Frame changes are done with the njWaitVSync function.

  Screen modes that can be set are as follows.
  Display Mode

  NJD_RESOLUTION_VGA | VGA
  NJD_RESOLUTION_320x240_NTSCNI | NTSC non interlace 60Hz
  NJD_RESOLUTION_320x240_NTSCI | NTSC interlace 30Hz
  NJD_RESOLUTION_640x240_NTSCNI | NTSC non interlace 60Hz
  NJD_RESOLUTION_640x240_NTSCI | NTSC interlace 30Hz
  NJD_RESOLUTION_640x480_NTSCI | NTSC interlace 30Hz
  NJD_RESOLUTION_320x240_PALNI | PAL non interlace 50Hz
  NJD_RESOLUTION_320x240_PALI | PAL interlace 25Hz
  NJD_RESOLUTION_640x240_PALNI | PAL non interlace 50Hz
  NJD_RESOLUTION_640x240_PALI | PAL interlace 25Hz
  NJD_RESOLUTION_640x480_PALI | PAL interlace 25Hz

  Frame Buffer Mode

  NJD_FRAMEBUFFER_MODE_RGB565 |
  NJD_FRAMEBUFFER_MODE_RGB555 |
  NJD_FRAMEBUFFER_MODE_ARGB4444 |
  NJD_FRAMEBUFFER_MODE_ARGB1555 |
  NJD_FRAMEBUFFER_MODE_RGB888 |
  NJD_FRAMEBUFFER_MODE_ARGB8888 |

### EXAMPLE

  njInitSystem( NJD_RESOLUTION_VGA, NJD_FRAMEBUFFER_MODE_RGB565, 1 );

  Sets the screen resolution to 640x480, with a frame every 1/60 second.

### NOTES

- Be sure to do this at the beginning of each program.
- Depending on hardware configuration, some modes may not be available.

### RELATED TOPICS

  njExitSystem()
  njWaitVSync()
  njSetScreen()
  njSetAspect()
  njSetColorMode()
  njClip2D()
  njClipZ()

njInitSystem |
    <-|INDEX|->