]> Dogcows Code - chaz/rasterize/blobdiff - config.h
import project 3 files; added blending
[chaz/rasterize] / config.h
index 593043940e31b6d99d399aa27b27e54fc7510336..cc552c2907a885854a55d21580d0daa06bfa819f 100644 (file)
--- a/config.h
+++ b/config.h
 #define IF_BACKFACE_CULLING(X)
 #endif
 
+/*
+ * BLENDING
+ * If enabled, the blending function Crgb = (1 - Sa)Drgb + (Sa)Srgb is
+ * applied when determing color on the raster.
+ */
+#if BLENDING
+#define IF_BLENDING(X) X
+#else
+#define IF_BLENDING(X)
+#endif
+
 /*
  * CLIPPING
  * If enabled, triangles will be not be drawn if they are entirely outside of
This page took 0.018988 seconds and 4 git commands to generate.