summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2026-01-04 20:45:07 -0800
committer3gg <3gg@shellblade.net>2026-01-04 20:45:07 -0800
commit454f82f12325b07b234d06dbd526f68cf00fdd55 (patch)
treea40a2974dc950c8ad6ec09858a4d87a70a1d194a /include
parent7e48c57e1c76d4ef874a2e15bfe9fd43e33f60a8 (diff)
Bilinear texture filteringHEADmain
Diffstat (limited to 'include')
-rw-r--r--include/swgfx.h6
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.
52typedef sgBgra sgScreenPixel; 52typedef sgBgra sgScreenPixel;
53 53
54typedef struct sgTexture_t { 54typedef 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
60typedef struct swgfx swgfx; 60typedef struct swgfx swgfx;
61 61
@@ -74,7 +74,7 @@ void sgOrtho (swgfx*, R left, R right, R top, R bottom, R near, R far);
74void sgPerspective(swgfx*, R fovy, R aspect, R near, R far); 74void sgPerspective(swgfx*, R fovy, R aspect, R near, R far);
75void sgViewport (swgfx*, int x0, int y0, int width, int height); 75void sgViewport (swgfx*, int x0, int y0, int width, int height);
76 76
77void sgTexture(swgfx*, const sgTexture_t*); 77void sgTexture(swgfx*, const sgImage*);
78 78
79void sgClear(swgfx*); 79void sgClear(swgfx*);
80void sgPixels(swgfx*, size_t count, const sgVec2i* positions, sgPixel colour); 80void sgPixels(swgfx*, size_t count, const sgVec2i* positions, sgPixel colour);