aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-24 13:53:06 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-24 13:53:15 +0200
commit6af3b55b9a11cf85e850eba0fddcf531e2002c7f (patch)
treea9c95a30f8b667f429a21c4379a4e455f289d315 /include
parente419500eafed85d4f7b184ddae75c855bdc45200 (diff)
Vertices: fix alpha blending when window background is transparent, add uniform for color
Diffstat (limited to 'include')
-rw-r--r--include/mgl/graphics/shader.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mgl/graphics/shader.h b/include/mgl/graphics/shader.h
index 16b573a..19d0605 100644
--- a/include/mgl/graphics/shader.h
+++ b/include/mgl/graphics/shader.h
@@ -2,6 +2,7 @@
#define MGL_SHADER_H
#include "../system/vec.h"
+#include "../graphics/color.h"
typedef struct mgl_texture mgl_texture;
@@ -26,6 +27,7 @@ int mgl_shader_program_set_uniform_float(mgl_shader_program *self, const char *u
int mgl_shader_program_set_uniform_vec2f(mgl_shader_program *self, const char *uniform_name, mgl_vec2f value);
int mgl_shader_program_set_uniform_vec3f(mgl_shader_program *self, const char *uniform_name, mgl_vec3f value);
int mgl_shader_program_set_uniform_vec4f(mgl_shader_program *self, const char *uniform_name, mgl_vec4f value);
+int mgl_shader_program_set_uniform_color(mgl_shader_program *self, const char *uniform_name, mgl_color color);
/* If |shader_program| is NULL then no shader is used */
void mgl_shader_program_use(mgl_shader_program *shader_program);