summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorcedemax <[email protected]>2020-09-01 21:33:49 +0300
committerGitHub <[email protected]>2020-09-01 20:33:49 +0200
commitbfafb80cdeed9703a2e13479a39a42ba7efb1328 (patch)
treea3f6542d48daa46d0f0c83ff76e86128a5d2e772 /src/raylib.h
parentdcbe481a2845dc33d2e716703a9d8344fea3c28d (diff)
downloadraylib-bfafb80cdeed9703a2e13479a39a42ba7efb1328.tar.gz
raylib-bfafb80cdeed9703a2e13479a39a42ba7efb1328.zip
Multiple blendmodes (#1324)
Co-authored-by: max <[email protected]>
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h
index c5c278e9..83b71d11 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -808,7 +808,8 @@ typedef enum {
BLEND_ALPHA = 0, // Blend textures considering alpha (default)
BLEND_ADDITIVE, // Blend textures adding colors
BLEND_MULTIPLIED, // Blend textures multiplying colors
- BLEND_ADD_COLORS // Blend textures adding colors (alternative)
+ BLEND_ADD_COLORS, // Blend textures adding colors (alternative)
+ BLEND_SUBTRACT_COLORS // Blend textures subtracting colors (alternative)
} BlendMode;
// Gestures type
@@ -1390,8 +1391,10 @@ RLAPI Texture2D GenTextureBRDF(Shader shader, int size); // Gen
RLAPI void BeginShaderMode(Shader shader); // Begin custom shader drawing
RLAPI void EndShaderMode(void); // End custom shader drawing (use default shader)
RLAPI void BeginBlendMode(int mode); // Begin blending mode (alpha, additive, multiplied)
+RLAPI void BeginBlendModeEx(int sFactor, int dFactor, int equation); // Begin blending mode (full options)
RLAPI void EndBlendMode(void); // End blending mode (reset to default: alpha blending)
+
// VR control functions
RLAPI void InitVrSimulator(void); // Init VR simulator for selected device parameters
RLAPI void CloseVrSimulator(void); // Close VR simulator for current device