diff options
| author | raysan5 <raysan5@gmail.com> | 2015-08-07 17:24:28 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2015-08-07 17:24:28 +0200 |
| commit | b8b024704309cf88c2f4c97d190f50c976c1018e (patch) | |
| tree | 61f9422d7fb7dd69de052ebc7a7dabcddf6904f5 /src/raylib.h | |
| parent | 6da175fccbd5881535258b79a746eab3558f5473 (diff) | |
| download | raylib-b8b024704309cf88c2f4c97d190f50c976c1018e.tar.gz raylib-b8b024704309cf88c2f4c97d190f50c976c1018e.zip | |
Added function SetBlendMode()
Useful to enable additive blend mode for particles
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h index c8c5c8a1..f5220e2e 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -353,6 +353,9 @@ typedef enum { COMPRESSED_ASTC_8x8_RGBA // 2 bpp } TextureFormat; +// Color blending modes (pre-defined) +typedef enum { BLEND_ALPHA = 0, BLEND_ADDITIVE, BLEND_MULTIPLIED } BlendMode; + // Gestures type // NOTE: It could be used as flags to enable only some gestures typedef enum { @@ -448,6 +451,8 @@ void SetShaderMapNormal(Shader *shader, const char *uniformName, Texture2D textu void SetShaderMapSpecular(Shader *shader, const char *uniformName, Texture2D texture); // Specular map texture shader assignment void SetShaderMap(Shader *shader, int mapLocation, Texture2D texture, int textureUnit); // TODO: Generic shader map assignment +void SetBlendMode(int mode); // Set blending mode (alpha, additive, multiplied) + //------------------------------------------------------------------------------------ // Input Handling Functions (Module: core) //------------------------------------------------------------------------------------ |
