summaryrefslogtreecommitdiff
path: root/texture.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-07-09 20:56:27 +0000
committerrodri <rgl@antares-labs.eu>2024-07-09 20:56:27 +0000
commit45bdbbcb16c1c95b8c7450fd6700c0a32418c98d (patch)
treec0a7abfbba536ecfee3d34cf1a1f594009108bc5 /texture.c
parent714038d0bce05c734d4e45289ec2bf1174463e4a (diff)
downloadlibgraphics-45bdbbcb16c1c95b8c7450fd6700c0a32418c98d.tar.gz
libgraphics-45bdbbcb16c1c95b8c7450fd6700c0a32418c98d.tar.bz2
libgraphics-45bdbbcb16c1c95b8c7450fd6700c0a32418c98d.zip
texture nomenclature changes. fb format RGBA → XRGB.
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.
Diffstat (limited to 'texture.c')
-rw-r--r--texture.c4
1 files changed, 2 insertions, 2 deletions
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;