|
|
|
@ -55,6 +55,10 @@ void display_init() |
|
|
|
// ISR subsystem to the kernel |
|
|
|
ResetGraph(0); |
|
|
|
|
|
|
|
// Initialize GTE |
|
|
|
InitGeom(); |
|
|
|
gte_SetGeomScreen(180); // Screen depth for FOV control. Determines the distance of the camera to the near plane. |
|
|
|
|
|
|
|
// Start the display in progressive mode |
|
|
|
int screenHeight; |
|
|
|
display_reset(GetVideoMode(), 0, &screenHeight); |
|
|
|
@ -79,11 +83,6 @@ void display_init() |
|
|
|
|
|
|
|
// Open up a test font text stream |
|
|
|
FntOpen(0, 8, SCREENWIDTH, screenHeight, 0, 512); |
|
|
|
|
|
|
|
// Initialize GTE |
|
|
|
InitGeom(); |
|
|
|
gte_SetGeomOffset(SCREENWIDTH >> 1, screenHeight >> 1); |
|
|
|
gte_SetGeomScreen(180); // Screen depth for FOV control. Determines the distance of the camera to the near plane. |
|
|
|
} |
|
|
|
|
|
|
|
void display_reset(int mode, u_char interlaced, int *outScreenHeight) |
|
|
|
@ -173,8 +172,6 @@ void display_start() |
|
|
|
|
|
|
|
void display_finish() |
|
|
|
{ |
|
|
|
DrawOTag(curOT + OTLEN - 1); // This performs a DMA transfer to quickly send all the primitives off to the GPU |
|
|
|
|
|
|
|
// Flip buffer index |
|
|
|
db = !db; |
|
|
|
|
|
|
|
@ -191,6 +188,8 @@ void display_finish() |
|
|
|
|
|
|
|
// Enable display output, ResetGraph() disables it by default |
|
|
|
SetDispMask(1); |
|
|
|
|
|
|
|
DrawOTag(curOT + OTLEN - 1); // This performs a DMA transfer to quickly send all the primitives off to the GPU |
|
|
|
} |
|
|
|
|
|
|
|
void *display_allocPrim(size_t size) |
|
|
|
|