##### Ninja Library - System Function

# njSetEORCallBackFunction

Registers the rendering end interrupt function

### FORMAT

`

  void njSetEORCallBackFunction( func )
  void (*func)(void)

`

### PARAMETER

  `func` | Pointer to execute function of rendering end interrupts
  ``

### RETURN

  None

### DESCRIPTION

  Registers the function that executes rendering end interrupts.

  There is only one function that can catalog. Erase the catalog function by designating NULL.

### EXAMPLE

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

      void njUserInit(void)
      {
      		:
      	/* Register foo function */
      	njSetEORCallBackFunction( foo );

      }

      Sint32 njUserMain(void)
      {
      	/* Count increases in increments of 1 */
      	njPrintD(NJM_LOCATION(0,0),count,8);

      }

### NOTE

  As opposed to the `njSetEORFunction()` function, which is executed after rendering has been completed in the `njWaitVSync()function,` this function is executed during rendering end interrupts. These two functions can be used synchronously.

### REFERENCE

  `njWaitVSync()
  njSetVSyncFunction()
  njSetEORFunction()
  `

njSetEORCallBackFunction

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999