summaryrefslogtreecommitdiffhomepage
path: root/src/rlgl.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2015-08-07 17:24:28 +0200
committerraysan5 <[email protected]>2015-08-07 17:24:28 +0200
commitb8b024704309cf88c2f4c97d190f50c976c1018e (patch)
tree61f9422d7fb7dd69de052ebc7a7dabcddf6904f5 /src/rlgl.h
parent6da175fccbd5881535258b79a746eab3558f5473 (diff)
downloadraylib-b8b024704309cf88c2f4c97d190f50c976c1018e.tar.gz
raylib-b8b024704309cf88c2f4c97d190f50c976c1018e.zip
Added function SetBlendMode()
Useful to enable additive blend mode for particles
Diffstat (limited to 'src/rlgl.h')
-rw-r--r--src/rlgl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index c8503903..af312596 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -182,6 +182,9 @@ typedef enum { OPENGL_11 = 1, OPENGL_33, OPENGL_ES_20 } GlVersion;
Texture2D texture;
Shader shader;
} Model;
+
+ // Color blending modes (pre-defined)
+ typedef enum { BLEND_ALPHA = 0, BLEND_ADDITIVE, BLEND_MULTIPLIED } BlendMode;
#endif
#ifdef __cplusplus
@@ -282,6 +285,8 @@ void SetShaderMapDiffuse(Shader *shader, Texture2D texture);
void SetShaderMapNormal(Shader *shader, const char *uniformName, Texture2D texture); // Normal map texture shader assignment
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)
#endif
#ifdef __cplusplus