Function

nuGfxPreNMIFuncSet

Syntax
void nuGfxPreNMIFuncSet(NUGfxPreNMIFunc func)

Arguments

Return Value
None

Explanation
Register the call back function in the graphics thread.

Register the call back function which is executed by the PRE NMI event in the graphics thread.

Example


	u8 gfxTaskEnd = FALSE;

	/* retrace function */
	void prenmiFunc(void)
	{
		/* Set the Y-scale to 1.0 using PRE NMI */
		osViSetYScale(1.0);
		
		/* Set the flag so as not to create a new graphics task */
		gfxTaskEnd = TRUE;
	}
	
	void gameGfxInit(void)
	{
		......
		/* Register the function which is executed by retrace */
		nuGfxPreNMIFuncSet(prenmiFunc);
	}

See Also

nuGfxPreNMIFuncRemove