summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2026-02-05 19:06:44 -0800
committer3gg <3gg@shellblade.net>2026-02-05 19:06:44 -0800
commit85a5ad70b7fa4844e37fe06463ea82d8e6f1abaf (patch)
tree3b2cea07437cd8d239cac5c843a7e67f7d8d0480 /include
parentd44df852bbdcb58d634413d69eaa288a7b4573f3 (diff)
Expose functions for gamma correction
Diffstat (limited to 'include')
-rw-r--r--include/swgfx.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/swgfx.h b/include/swgfx.h
index e9e69b8..9c3361d 100644
--- a/include/swgfx.h
+++ b/include/swgfx.h
@@ -72,7 +72,8 @@ void sgDel(swgfx**);
72 72
73// TODO: Write client app first, then implement the functions below in the C file. 73// TODO: Write client app first, then implement the functions below in the C file.
74 74
75void sgPresent(swgfx*, sgVec2i dimensions, sgScreenPixel* screen); 75sgPixel* sgColourBuffer(swgfx*);
76void sgPresent(swgfx*, sgVec2i dimensions, sgScreenPixel* screen);
76 77
77void sgModelId (swgfx*); 78void sgModelId (swgfx*);
78void sgModel (swgfx*, sgVec3 position, sgVec3 right, sgVec3 up, sgVec3 forward); 79void sgModel (swgfx*, sgVec3 position, sgVec3 right, sgVec3 up, sgVec3 forward);
@@ -94,4 +95,7 @@ void sgTriangleStrip (swgfx*, size_t count, const sgVec3*, const sgNormal*);
94void sgTrianglesIndexed(swgfx*, size_t numIndices, const sgIdx* indices, const sgVec3* positions, const sgVec2* texcoords); 95void sgTrianglesIndexed(swgfx*, size_t numIndices, const sgIdx* indices, const sgVec3* positions, const sgVec2* texcoords);
95void sgTrianglesIndexedNonUniform(swgfx*, size_t numTris, const sgTriIdx* tris, const sgVec3* positions, const sgVec2* texcoords); 96void sgTrianglesIndexedNonUniform(swgfx*, size_t numTris, const sgTriIdx* tris, const sgVec3* positions, const sgVec2* texcoords);
96 97
98void sgGamma (swgfx*, sgPixel*, int width, int height);
99void sgGammaInv(swgfx*, sgPixel*, int width, int height);
100
97void sgCheck(swgfx*); 101void sgCheck(swgfx*);