summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2022-06-07 18:46:14 +0200
committerRay <[email protected]>2022-06-07 18:46:14 +0200
commitdca23cb3ff7c5a6871a586401cc982f52d70d085 (patch)
treea276f383ab963e9d4a664be2dc238f9b03db6bf5
parentfc86b5c1b4f67f2060135705c32314560e048e85 (diff)
downloadraylib-dca23cb3ff7c5a6871a586401cc982f52d70d085.tar.gz
raylib-dca23cb3ff7c5a6871a586401cc982f52d70d085.zip
RENAMED: `BLEND_ALPHA_PREMUL` to `BLEND_ALPHA_PREMULTIPLY`
-rw-r--r--src/raylib.h2
-rw-r--r--src/rlgl.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 7b3000c0..b6037eda 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -843,7 +843,7 @@ typedef enum {
BLEND_MULTIPLIED, // Blend textures multiplying colors
BLEND_ADD_COLORS, // Blend textures adding colors (alternative)
BLEND_SUBTRACT_COLORS, // Blend textures subtracting colors (alternative)
- BLEND_ALPHA_PREMUL, // Blend premultiplied textures considering alpha
+ BLEND_ALPHA_PREMULTIPLY, // Blend premultiplied textures considering alpha
BLEND_CUSTOM // Blend textures using custom src/dst factors (use rlSetBlendMode())
} BlendMode;
diff --git a/src/rlgl.h b/src/rlgl.h
index a7124448..81f08c7e 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -433,7 +433,7 @@ typedef enum {
RL_BLEND_MULTIPLIED, // Blend textures multiplying colors
RL_BLEND_ADD_COLORS, // Blend textures adding colors (alternative)
RL_BLEND_SUBTRACT_COLORS, // Blend textures subtracting colors (alternative)
- RL_BLEND_ALPHA_PREMUL, // Blend premultiplied textures considering alpha
+ RL_BLEND_ALPHA_PREMULTIPLY, // Blend premultiplied textures considering alpha
RL_BLEND_CUSTOM // Blend textures using custom src/dst factors (use rlSetBlendFactors())
} rlBlendMode;
@@ -1783,7 +1783,7 @@ void rlSetBlendMode(int mode)
case RL_BLEND_MULTIPLIED: glBlendFunc(GL_DST_COLOR, GL_ONE_MINUS_SRC_ALPHA); glBlendEquation(GL_FUNC_ADD); break;
case RL_BLEND_ADD_COLORS: glBlendFunc(GL_ONE, GL_ONE); glBlendEquation(GL_FUNC_ADD); break;
case RL_BLEND_SUBTRACT_COLORS: glBlendFunc(GL_ONE, GL_ONE); glBlendEquation(GL_FUNC_SUBTRACT); break;
- case RL_BLEND_ALPHA_PREMUL: glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); glBlendEquation(GL_FUNC_ADD); break;
+ case RL_BLEND_ALPHA_PREMULTIPLY: glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); glBlendEquation(GL_FUNC_ADD); break;
case RL_BLEND_CUSTOM:
{
// NOTE: Using GL blend src/dst factors and GL equation configured with rlSetBlendFactors()