diff options
| author | 3gg <3gg@shellblade.net> | 2026-01-04 20:45:07 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2026-01-04 20:45:07 -0800 |
| commit | 454f82f12325b07b234d06dbd526f68cf00fdd55 (patch) | |
| tree | a40a2974dc950c8ad6ec09858a4d87a70a1d194a /include/swgfx.h | |
| parent | 7e48c57e1c76d4ef874a2e15bfe9fd43e33f60a8 (diff) | |
Diffstat (limited to 'include/swgfx.h')
| -rw-r--r-- | include/swgfx.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/swgfx.h b/include/swgfx.h index d1f56df..9905382 100644 --- a/include/swgfx.h +++ b/include/swgfx.h | |||
| @@ -51,11 +51,11 @@ typedef sgRgba sgPixel; | |||
| 51 | // TODO: Expose a macro to control the desired surface format. | 51 | // TODO: Expose a macro to control the desired surface format. |
| 52 | typedef sgBgra sgScreenPixel; | 52 | typedef sgBgra sgScreenPixel; |
| 53 | 53 | ||
| 54 | typedef struct sgTexture_t { | 54 | typedef struct sgImage { |
| 55 | int width; | 55 | int width; |
| 56 | int height; | 56 | int height; |
| 57 | sgPixel* pixels; | 57 | sgPixel* pixels; |
| 58 | } sgTexture_t; | 58 | } sgImage; |
| 59 | 59 | ||
| 60 | typedef struct swgfx swgfx; | 60 | typedef struct swgfx swgfx; |
| 61 | 61 | ||
| @@ -74,7 +74,7 @@ void sgOrtho (swgfx*, R left, R right, R top, R bottom, R near, R far); | |||
| 74 | void sgPerspective(swgfx*, R fovy, R aspect, R near, R far); | 74 | void sgPerspective(swgfx*, R fovy, R aspect, R near, R far); |
| 75 | void sgViewport (swgfx*, int x0, int y0, int width, int height); | 75 | void sgViewport (swgfx*, int x0, int y0, int width, int height); |
| 76 | 76 | ||
| 77 | void sgTexture(swgfx*, const sgTexture_t*); | 77 | void sgTexture(swgfx*, const sgImage*); |
| 78 | 78 | ||
| 79 | void sgClear(swgfx*); | 79 | void sgClear(swgfx*); |
| 80 | void sgPixels(swgfx*, size_t count, const sgVec2i* positions, sgPixel colour); | 80 | void sgPixels(swgfx*, size_t count, const sgVec2i* positions, sgPixel colour); |
