njSetVSyncFunction | Japanese
    <-|INDEX|->
Registers the vertical sync interrupt callback function.

### FORMAT

      #include <Ninja.h>
      void  njSetVSyncFunction( func )
      void  (*func)()

### PARAMETERS

func
  Pointer to the vertical sync interrupt callback function

### RETURN VALUE

  None

### ERROR VALUE

  None

### FUNCTION

- Registers the vertical sync interrupt callback function.
- Only one such function can be registered.
- Specifying NULL deletes the registered function.

### EXAMPLE

      static Int count=0;
      void foo(void)
      {
        count++;
      }

      njSetVSyncFunction( foo );

      while(1) {
        ....
        njWaitVSync();
      }

### NOTES

### RELATED TOPICS

  njWaitVSync()

njSetVSyncFunction |
    <-|INDEX|->