summaryrefslogtreecommitdiff
path: root/include/swgfx.h
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2026-01-31 16:10:58 -0800
committer3gg <3gg@shellblade.net>2026-01-31 16:10:58 -0800
commitffe168d1fab26173409a6df9488b5b8762fe6ab3 (patch)
tree9fdb1c76aa0d216f2a24ab5293784cf4668cbc03 /include/swgfx.h
parent454f82f12325b07b234d06dbd526f68cf00fdd55 (diff)
Clipping and backface culling
Diffstat (limited to 'include/swgfx.h')
-rw-r--r--include/swgfx.h2
1 files changed, 2 insertions, 0 deletions
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;
34typedef struct sgVert2i { sgVec2i pos; sgVec2 uv; } sgVert2i; 34typedef struct sgVert2i { sgVec2i pos; sgVec2 uv; } sgVert2i;
35typedef struct sgVert2 { sgVec2 pos; sgVec2 uv; } sgVert2; 35typedef struct sgVert2 { sgVec2 pos; sgVec2 uv; } sgVert2;
36typedef struct sgVert3 { sgVec3 pos; sgVec2 uv; } sgVert3; 36typedef struct sgVert3 { sgVec3 pos; sgVec2 uv; } sgVert3;
37typedef struct sgVert4 { sgVec4 pos; sgVec2 uv; } sgVert4;
37 38
38typedef struct sgQuadi { sgVert2i p0, p1; } sgQuadi; 39typedef struct sgQuadi { sgVert2i p0, p1; } sgQuadi;
39typedef struct sgQuad { sgVert2 p0, p1; } sgQuad; 40typedef struct sgQuad { sgVert2 p0, p1; } sgQuad;
40typedef struct sgTri2 { sgVert2 p0, p1, p2; } sgTri2; 41typedef struct sgTri2 { sgVert2 p0, p1, p2; } sgTri2;
41typedef struct sgTri3 { sgVert3 p0, p1, p2; } sgTri3; 42typedef struct sgTri3 { sgVert3 p0, p1, p2; } sgTri3;
43typedef struct sgTri4 { sgVert4 p0, p1, p2; } sgTri4;
42 44
43typedef uint16_t sgIdx; 45typedef uint16_t sgIdx;
44typedef struct sgVertIdx { sgIdx pos, uv, normal; } sgVertIdx; 46typedef struct sgVertIdx { sgIdx pos, uv, normal; } sgVertIdx;