From 454f82f12325b07b234d06dbd526f68cf00fdd55 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sun, 4 Jan 2026 20:45:07 -0800 Subject: Bilinear texture filtering --- include/swgfx.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') 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; // TODO: Expose a macro to control the desired surface format. typedef sgBgra sgScreenPixel; -typedef struct sgTexture_t { +typedef struct sgImage { int width; int height; sgPixel* pixels; -} sgTexture_t; +} sgImage; typedef struct swgfx swgfx; @@ -74,7 +74,7 @@ void sgOrtho (swgfx*, R left, R right, R top, R bottom, R near, R far); void sgPerspective(swgfx*, R fovy, R aspect, R near, R far); void sgViewport (swgfx*, int x0, int y0, int width, int height); -void sgTexture(swgfx*, const sgTexture_t*); +void sgTexture(swgfx*, const sgImage*); void sgClear(swgfx*); void sgPixels(swgfx*, size_t count, const sgVec2i* positions, sgPixel colour); -- cgit v1.2.3