diff options
| author | 3gg <3gg@shellblade.net> | 2026-02-05 19:06:44 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2026-02-05 19:06:44 -0800 |
| commit | 85a5ad70b7fa4844e37fe06463ea82d8e6f1abaf (patch) | |
| tree | 3b2cea07437cd8d239cac5c843a7e67f7d8d0480 /include/swgfx.h | |
| parent | d44df852bbdcb58d634413d69eaa288a7b4573f3 (diff) | |
Expose functions for gamma correction
Diffstat (limited to 'include/swgfx.h')
| -rw-r--r-- | include/swgfx.h | 6 |
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 | ||
| 75 | void sgPresent(swgfx*, sgVec2i dimensions, sgScreenPixel* screen); | 75 | sgPixel* sgColourBuffer(swgfx*); |
| 76 | void sgPresent(swgfx*, sgVec2i dimensions, sgScreenPixel* screen); | ||
| 76 | 77 | ||
| 77 | void sgModelId (swgfx*); | 78 | void sgModelId (swgfx*); |
| 78 | void sgModel (swgfx*, sgVec3 position, sgVec3 right, sgVec3 up, sgVec3 forward); | 79 | 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*); | |||
| 94 | void sgTrianglesIndexed(swgfx*, size_t numIndices, const sgIdx* indices, const sgVec3* positions, const sgVec2* texcoords); | 95 | void sgTrianglesIndexed(swgfx*, size_t numIndices, const sgIdx* indices, const sgVec3* positions, const sgVec2* texcoords); |
| 95 | void sgTrianglesIndexedNonUniform(swgfx*, size_t numTris, const sgTriIdx* tris, const sgVec3* positions, const sgVec2* texcoords); | 96 | void sgTrianglesIndexedNonUniform(swgfx*, size_t numTris, const sgTriIdx* tris, const sgVec3* positions, const sgVec2* texcoords); |
| 96 | 97 | ||
| 98 | void sgGamma (swgfx*, sgPixel*, int width, int height); | ||
| 99 | void sgGammaInv(swgfx*, sgPixel*, int width, int height); | ||
| 100 | |||
| 97 | void sgCheck(swgfx*); | 101 | void sgCheck(swgfx*); |
