##### Ninja Library - System Function

# njWaitVSync

Waits for a vertical interrupt

### FORMAT

`

  void njWaitVSync()

`

### PARAMETER

  None

### RETURN

  None

### DESCRIPTION

  Waits for a vertical interrupt. Performs a frame change and clears the screen. Calls the vertical sync interrupt callback function.

### EXAMPLE

      void main(void)
      {
       njUserInit();
       while (1) {
        if (njUserMain() < 0) break;
        njWaitVSync();
       }
       njUserExit();
      }

### NOTE

  Implement without fail, because this function is carrying out the acquisition of periperal information internally.

### REFERENCE

  `njSetBackColor()
  njSetVSyncFunction()
  `

njWaitVSync

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999