summaryrefslogtreecommitdiff
path: root/graphics.h
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 /graphics.h
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 'graphics.h')
-rw-r--r--graphics.h6
1 files changed, 3 insertions, 3 deletions
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);