diff options
author | rodri <rgl@antares-labs.eu> | 2024-07-09 20:56:27 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-07-09 20:56:27 +0000 |
commit | 45bdbbcb16c1c95b8c7450fd6700c0a32418c98d (patch) | |
tree | c0a7abfbba536ecfee3d34cf1a1f594009108bc5 /texture.c | |
parent | 714038d0bce05c734d4e45289ec2bf1174463e4a (diff) | |
download | libgraphics-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |