aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/window/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mgl/window/window.h')
-rw-r--r--include/mgl/window/window.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/mgl/window/window.h b/include/mgl/window/window.h
index eb7f587..23b780a 100644
--- a/include/mgl/window/window.h
+++ b/include/mgl/window/window.h
@@ -74,7 +74,7 @@ typedef struct {
mgl_window_handle parent_window; /* 0 = root window */
bool hidden; /* false by default */
bool override_redirect; /* false by default */
- bool support_alpha; /* support alpha for the window, false by default */
+ bool support_alpha; /* support alpha for the window, false by default. If this is set to true then you need to call mgl_window_set_texture_blend_func before rendering textures and call mgl_window_set_render_blend_func afterwards to ensure correct alpha blending */
bool hide_decorations; /* this is a hint, it may be ignored by the window manager, false by default */
mgl_color background_color; /* default: black */
const char *class_name;
@@ -165,6 +165,9 @@ bool mgl_window_get_clipboard(mgl_window *self, mgl_clipboard_callback callback,
bool mgl_window_get_clipboard_string(mgl_window *self, char **str, size_t *size);
void mgl_window_set_key_repeat_enabled(mgl_window *self, bool enabled);
+void mgl_window_set_texture_blend_func(mgl_window *self);
+void mgl_window_set_render_blend_func(mgl_window *self);
+
void mgl_window_flush(mgl_window *self);
#endif /* MGL_WINDOW_H */