optimize the 3D renderer somewhat

This commit is contained in:
StapleButter
2017-04-21 22:40:15 +02:00
parent 796e60828c
commit eb656857d9
3 changed files with 418 additions and 232 deletions

View File

@ -33,7 +33,7 @@ typedef struct
// final vertex attributes.
// allows them to be reused in polygon strips.
s32 FinalPosition[4];
s32 FinalPosition[2];
s32 FinalColor[3];
} Vertex;
@ -43,6 +43,10 @@ typedef struct
Vertex* Vertices[10];
u32 NumVertices;
s32 FinalZ[10];
s32 FinalW[10];
u8 WShift;
u32 Attr;
u32 TexParam;
u32 TexPalette;