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 /graphics.h | |
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 'graphics.h')
-rw-r--r-- | graphics.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |