Function
nuGfxInit
void nuGfxInit(void)
Arguments
None
Return Value
None
Explanation
Initialize and start the graphics thread and the graphics task manager. The following initialization
and setup is performed by the nuGfxInit function.
Start the graphics thread
Create and start the thread which synchronizes with retrace and executes the call back function. The
call back function of retrace is registered by the nuGfxFuncSet function. And this thread is synchronized
with the PRE NMI event and execute the call back function.
Register the call back function of the PRE NMI with the nuGfxPreNMIFuncSet function.
Registration of the frame buffer, the Z-Buffer and the graphics microcode
Set addresses of the frame buffer and Z-Buffer in the graphics task manager. Also the graphics microcode is registered. The
default settings are registered in 0x8038F800 of the RDRAM, 320 x 240 16 bit, 320x240 from 0x80000400 for the Z-Buffer, and the
F3D system, L3DEX and S2DEX for the microcode.
The frame buffer can be reset using the nuGfxSetCfb function. The Z-Buffer can be reset using the nuGfxSetZBuffer function. The graphics microcode can be registered again using the nuGfxSetUcode function.
Registration of the call back function which is executed when completing the graphics task.
When NU_GFX_SWAPBUFFER is specified as an argument, if the nuGfxTaskStart function is executed, the nuGfxSwapCfb function
is registered as the function which is called when completing the task.
Registration can be done using the nuGfxSwapCfbFuncSet function when registering the application's own process.
Initialization of the RDP
Initial setting of the RDP is performed by starting the graphics task since the value of RDP is not fixed.
The nuGfxTaskStart function can be used after calling this function.
See Also
nuGfxFuncSet
nuGfxSetCfb
nuGfxSetZBuffer
nuGfxSetUcode
nuGfxSwapCfb
nuGfxSwapCfbFuncSet