28 lines
569 B
C
28 lines
569 B
C
#include "common.h"
|
|
|
|
#include "nu/nusys.h"
|
|
|
|
extern u16* FrameBuf[3];
|
|
extern NUUcode nugfx_ucode;
|
|
|
|
/* 1A5B0 8008A1B0 */
|
|
void nuGfxInitEX2(void) {
|
|
Gfx list[257];
|
|
Gfx* ptr = list;
|
|
|
|
nuGfxThreadStart();
|
|
nuGfxSetCfb(FrameBuf, NU_GFX_FRAMEBUFFER_NUM);
|
|
nuGfxSetZBuffer(NU_GFX_ZBUFFER_ADDR);
|
|
nuGfxSwapCfbFuncSet(nuGfxSwapCfb);
|
|
nuGfxUcode = &nugfx_ucode;
|
|
nuGfxTaskMgrInit();
|
|
|
|
gSPDisplayList(ptr++, &D_A9EF0);
|
|
gDPFullSync(ptr++);
|
|
gSPEndDisplayList(ptr++);
|
|
|
|
nuGfxTaskStart(list, sizeof(Gfx) * 3, 0, 0);
|
|
nuGfxTaskAllEndWait();
|
|
}
|
|
|