From 3e9a43d7f0b0cd9b2e08fd2742062bf0fabed983 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 12 Jan 2020 12:01:57 +0100 Subject: [PATCH] - added missing render style constants to ZScript. --- wadsrc/static/zscript/constants.zs | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/wadsrc/static/zscript/constants.zs b/wadsrc/static/zscript/constants.zs index 23322094c..02e6d4fce 100644 --- a/wadsrc/static/zscript/constants.zs +++ b/wadsrc/static/zscript/constants.zs @@ -851,20 +851,26 @@ enum EMaskRotationFlags enum ERenderStyle { - STYLE_None, - STYLE_Normal, - STYLE_Fuzzy, - STYLE_SoulTrans, - STYLE_OptFuzzy, - STYLE_Stencil, - STYLE_Translucent, - STYLE_Add, - STYLE_Shaded, + STYLE_None, // Do not draw + STYLE_Normal, // Normal; just copy the image to the screen + STYLE_Fuzzy, // Draw silhouette using "fuzz" effect + STYLE_SoulTrans, // Draw translucent with amount in r_transsouls + STYLE_OptFuzzy, // Draw as fuzzy or translucent, based on user preference + STYLE_Stencil, // Fill image interior with alphacolor + STYLE_Translucent, // Draw translucent + STYLE_Add, // Draw additive + STYLE_Shaded, // Treat patch data as alpha values for alphacolor STYLE_TranslucentStencil, STYLE_Shadow, - STYLE_Subtract, - STYLE_AddStencil, - STYLE_AddShaded, + STYLE_Subtract, // Actually this is 'reverse subtract' but this is what normal people would expect by 'subtract'. + STYLE_AddStencil, // Fill image interior with alphacolor + STYLE_AddShaded, // Treat patch data as alpha values for alphacolor + STYLE_Multiply, // Multiply source with destination (HW renderer only.) + STYLE_InverseMultiply, // Multiply source with inverse of destination (HW renderer only.) + STYLE_ColorBlend, // Use color intensity as transparency factor + STYLE_Source, // No blending (only used internally) + STYLE_ColorAdd, // Use color intensity as transparency factor and blend additively. + }; // Type definition for the implicit 'callingstate' parameter that gets passed to action functions.