* backface/frontface culling (and rendering of backfacing polygons)

* fix clipping/viewport transform precision errors
* triangle/quad strips
This commit is contained in:
StapleButter
2017-02-14 02:43:35 +01:00
parent fb53fd5195
commit 68fb77b204
6 changed files with 323 additions and 161 deletions

View File

@ -27,6 +27,8 @@ typedef struct
s32 Position[4];
u8 Color[3];
bool Clipped;
} Vertex;
typedef struct
@ -34,6 +36,10 @@ typedef struct
Vertex* Vertices[10];
u32 NumVertices;
u32 Attr;
bool FacingView;
} Polygon;
extern s32 Viewport[4];