diff options
| author | 3gg <3gg@shellblade.net> | 2026-01-31 16:10:58 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2026-01-31 16:10:58 -0800 |
| commit | ffe168d1fab26173409a6df9488b5b8762fe6ab3 (patch) | |
| tree | 9fdb1c76aa0d216f2a24ab5293784cf4668cbc03 /include | |
| parent | 454f82f12325b07b234d06dbd526f68cf00fdd55 (diff) | |
Clipping and backface culling
Diffstat (limited to 'include')
| -rw-r--r-- | include/swgfx.h | 2 |
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; | |||
| 34 | typedef struct sgVert2i { sgVec2i pos; sgVec2 uv; } sgVert2i; | 34 | typedef struct sgVert2i { sgVec2i pos; sgVec2 uv; } sgVert2i; |
| 35 | typedef struct sgVert2 { sgVec2 pos; sgVec2 uv; } sgVert2; | 35 | typedef struct sgVert2 { sgVec2 pos; sgVec2 uv; } sgVert2; |
| 36 | typedef struct sgVert3 { sgVec3 pos; sgVec2 uv; } sgVert3; | 36 | typedef struct sgVert3 { sgVec3 pos; sgVec2 uv; } sgVert3; |
| 37 | typedef struct sgVert4 { sgVec4 pos; sgVec2 uv; } sgVert4; | ||
| 37 | 38 | ||
| 38 | typedef struct sgQuadi { sgVert2i p0, p1; } sgQuadi; | 39 | typedef struct sgQuadi { sgVert2i p0, p1; } sgQuadi; |
| 39 | typedef struct sgQuad { sgVert2 p0, p1; } sgQuad; | 40 | typedef struct sgQuad { sgVert2 p0, p1; } sgQuad; |
| 40 | typedef struct sgTri2 { sgVert2 p0, p1, p2; } sgTri2; | 41 | typedef struct sgTri2 { sgVert2 p0, p1, p2; } sgTri2; |
| 41 | typedef struct sgTri3 { sgVert3 p0, p1, p2; } sgTri3; | 42 | typedef struct sgTri3 { sgVert3 p0, p1, p2; } sgTri3; |
| 43 | typedef struct sgTri4 { sgVert4 p0, p1, p2; } sgTri4; | ||
| 42 | 44 | ||
| 43 | typedef uint16_t sgIdx; | 45 | typedef uint16_t sgIdx; |
| 44 | typedef struct sgVertIdx { sgIdx pos, uv, normal; } sgVertIdx; | 46 | typedef struct sgVertIdx { sgIdx pos, uv, normal; } sgVertIdx; |
