From 85a5ad70b7fa4844e37fe06463ea82d8e6f1abaf Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Thu, 5 Feb 2026 19:06:44 -0800 Subject: Expose functions for gamma correction --- include/swgfx.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') 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**); // TODO: Write client app first, then implement the functions below in the C file. -void sgPresent(swgfx*, sgVec2i dimensions, sgScreenPixel* screen); +sgPixel* sgColourBuffer(swgfx*); +void sgPresent(swgfx*, sgVec2i dimensions, sgScreenPixel* screen); void sgModelId (swgfx*); void sgModel (swgfx*, sgVec3 position, sgVec3 right, sgVec3 up, sgVec3 forward); @@ -94,4 +95,7 @@ void sgTriangleStrip (swgfx*, size_t count, const sgVec3*, const sgNormal*); void sgTrianglesIndexed(swgfx*, size_t numIndices, const sgIdx* indices, const sgVec3* positions, const sgVec2* texcoords); void sgTrianglesIndexedNonUniform(swgfx*, size_t numTris, const sgTriIdx* tris, const sgVec3* positions, const sgVec2* texcoords); +void sgGamma (swgfx*, sgPixel*, int width, int height); +void sgGammaInv(swgfx*, sgPixel*, int width, int height); + void sgCheck(swgfx*); -- cgit v1.2.3