diff options
Diffstat (limited to 'include')
| -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); |
