diff options
Diffstat (limited to 'include/swgfx.h')
| -rw-r--r-- | include/swgfx.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/swgfx.h b/include/swgfx.h index b3f9150..452847c 100644 --- a/include/swgfx.h +++ b/include/swgfx.h | |||
| @@ -37,8 +37,8 @@ typedef sgVec3 sgNormal; | |||
| 37 | 37 | ||
| 38 | typedef struct sgVert2i { sgVec2i pos; sgVec2 uv; } sgVert2i; | 38 | typedef struct sgVert2i { sgVec2i pos; sgVec2 uv; } sgVert2i; |
| 39 | typedef struct sgVert2 { sgVec2 pos; sgVec2 uv; } sgVert2; | 39 | typedef struct sgVert2 { sgVec2 pos; sgVec2 uv; } sgVert2; |
| 40 | typedef struct sgVert3 { sgVec3 pos; sgVec2 uv; } sgVert3; | 40 | typedef struct sgVert3 { sgVec3 pos; sgVec2 uv; sgVec3 normal; } sgVert3; |
| 41 | typedef struct sgVert4 { sgVec4 pos; sgVec2 uv; } sgVert4; | 41 | typedef struct sgVert4 { sgVec4 pos; sgVec2 uv; sgVec3 normal; } sgVert4; |
| 42 | 42 | ||
| 43 | typedef struct sgQuadi { sgVert2i p0, p1; } sgQuadi; | 43 | typedef struct sgQuadi { sgVert2i p0, p1; } sgQuadi; |
| 44 | typedef struct sgQuad { sgVert2 p0, p1; } sgQuad; | 44 | typedef struct sgQuad { sgVert2 p0, p1; } sgQuad; |
| @@ -108,11 +108,15 @@ void sgTriangles2 (swgfx*, size_t count, const sgTri2*); | |||
| 108 | void sgTriangleStrip2(swgfx*, size_t count, const sgVec2*); | 108 | void sgTriangleStrip2(swgfx*, size_t count, const sgVec2*); |
| 109 | void sgTriangles (swgfx*, size_t count, const sgTri3*, const sgNormal*); | 109 | void sgTriangles (swgfx*, size_t count, const sgTri3*, const sgNormal*); |
| 110 | void sgTriangleStrip (swgfx*, size_t count, const sgVec3*, const sgNormal*); | 110 | void sgTriangleStrip (swgfx*, size_t count, const sgVec3*, const sgNormal*); |
| 111 | void sgTrianglesIndexed(swgfx*, size_t numIndices, const sgIdx* indices, const sgVec3* positions, const sgVec2* texcoords); | 111 | void sgTrianglesIndexed(swgfx*, size_t numIndices, const sgIdx* indices, const sgVec3* positions, const sgVec2* texcoords, const sgVec3* normals); |
| 112 | void sgTrianglesIndexedNonUniform(swgfx*, size_t numTris, const sgTriIdx* tris, const sgVec3* positions, const sgVec2* texcoords); | 112 | void sgTrianglesIndexedNonUniform(swgfx*, size_t numTris, const sgTriIdx* tris, const sgVec3* positions, const sgVec2* texcoords, const sgVec3* normals); |
| 113 | 113 | ||
| 114 | void sgLighting(swgfx*); | 114 | void sgLighting(swgfx*); |
| 115 | void sgAmbient(swgfx*, sgVec3 ambient); | 115 | void sgAmbient(swgfx*, sgVec3 ambient); |
| 116 | // TODO: Implement directional lights. | ||
| 117 | |||
| 118 | void sgDepth(swgfx*); | ||
| 119 | void sgNormals(swgfx*); | ||
| 116 | 120 | ||
| 117 | void sgGamma (swgfx*, sgPixel*, int width, int height); | 121 | void sgGamma (swgfx*, sgPixel*, int width, int height); |
| 118 | void sgGammaInv(swgfx*, sgPixel*, int width, int height); | 122 | void sgGammaInv(swgfx*, sgPixel*, int width, int height); |
