From ffe168d1fab26173409a6df9488b5b8762fe6ab3 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 31 Jan 2026 16:10:58 -0800 Subject: Clipping and backface culling --- include/swgfx.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/swgfx.h b/include/swgfx.h index 9905382..cdeefe8 100644 --- a/include/swgfx.h +++ b/include/swgfx.h @@ -34,11 +34,13 @@ typedef sgVec3 sgNormal; typedef struct sgVert2i { sgVec2i pos; sgVec2 uv; } sgVert2i; typedef struct sgVert2 { sgVec2 pos; sgVec2 uv; } sgVert2; typedef struct sgVert3 { sgVec3 pos; sgVec2 uv; } sgVert3; +typedef struct sgVert4 { sgVec4 pos; sgVec2 uv; } sgVert4; typedef struct sgQuadi { sgVert2i p0, p1; } sgQuadi; typedef struct sgQuad { sgVert2 p0, p1; } sgQuad; typedef struct sgTri2 { sgVert2 p0, p1, p2; } sgTri2; typedef struct sgTri3 { sgVert3 p0, p1, p2; } sgTri3; +typedef struct sgTri4 { sgVert4 p0, p1, p2; } sgTri4; typedef uint16_t sgIdx; typedef struct sgVertIdx { sgIdx pos, uv, normal; } sgVertIdx; -- cgit v1.2.3