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. --- texture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'texture.c') diff --git a/texture.c b/texture.c index 50ce200..86b2cbd 100644 --- a/texture.c +++ b/texture.c @@ -106,7 +106,7 @@ bilitexsampler(Texture *t, Point2 uv) } Color -texture(Texture *t, Point2 uv, Color(*sampler)(Texture*,Point2)) +sampletexture(Texture *t, Point2 uv, Color(*sampler)(Texture*,Point2)) { return sampler(t, uv); } @@ -173,7 +173,7 @@ freecubemap(Cubemap *cm) * - “Cubemap Texture Selection”, OpenGL ES 2.0 § 3.7.5, November 2010 */ Color -cubemaptexture(Cubemap *cm, Point3 d, Color(*sampler)(Texture*,Point2)) +samplecubemap(Cubemap *cm, Point3 d, Color(*sampler)(Texture*,Point2)) { Point2 uv; double ax, ay, az, ma, sc, tc; -- cgit v1.2.3