From 45bdbbcb16c1c95b8c7450fd6700c0a32418c98d Mon Sep 17 00:00:00 2001 From: rodri Date: Tue, 9 Jul 2024 20:56:27 +0000 Subject: =?UTF-8?q?texture=20nomenclature=20changes.=20fb=20format=20RGBA?= =?UTF-8?q?=20=E2=86=92=20XRGB.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit we are still doing alpha blending, so we use the X chan internally, but we don't care about it when (mem)drawing to the screen. --- graphics.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'graphics.h') diff --git a/graphics.h b/graphics.h index 70eeb71..691e97f 100644 --- a/graphics.h +++ b/graphics.h @@ -18,7 +18,7 @@ enum { }; enum { - RAWTexture, + RAWTexture, /* unmanaged */ sRGBTexture, }; @@ -341,10 +341,10 @@ Texture *alloctexture(int, Memimage*); void freetexture(Texture*); Color neartexsampler(Texture*, Point2); Color bilitexsampler(Texture*, Point2); -Color texture(Texture*, Point2, Color(*)(Texture*, Point2)); +Color sampletexture(Texture*, Point2, Color(*)(Texture*, Point2)); Cubemap *readcubemap(char*[6]); void freecubemap(Cubemap*); -Color cubemaptexture(Cubemap*, Point3, Color(*)(Texture*, Point2)); +Color samplecubemap(Cubemap*, Point3, Color(*)(Texture*, Point2)); /* util */ double fmin(double, double); -- cgit v1.2.3