some debuts of 3D drawing.

it can draw non-strip polygons, filled with a fixed color. oh and it doesn't work if they're facing back.
This commit is contained in:
StapleButter
2017-02-11 03:54:08 +01:00
parent 78f49d061a
commit 050ba5dfbe
6 changed files with 183 additions and 9 deletions

View File

@ -36,6 +36,8 @@ typedef struct
} Polygon;
extern s32 Viewport[4];
bool Init();
void DeInit();
void Reset();
@ -45,6 +47,7 @@ void CheckFIFOIRQ();
void CheckFIFODMA();
void VBlank();
u8* GetLine(int line);
u8 Read8(u32 addr);
u16 Read16(u32 addr);
@ -61,6 +64,7 @@ void DeInit();
void Reset();
void RenderFrame(Vertex* vertices, Polygon* polygons, int npolys);
u8* GetLine(int line);
}