aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-12-27 21:02:57 +0100
committerdec05eba <dec05eba@protonmail.com>2024-12-27 21:02:57 +0100
commit3c33f0f8136a8cd3844c9dc087daabf16443fa40 (patch)
tree0bde8c46d6e4807443d2150e77e8b59a1462c310
parent05ba259af78f879d344883c0edb7318a6eec2656 (diff)
Use correct alpha blending for transparent windowHEADmaster
m---------depends/mgl0
-rw-r--r--include/mglpp/window/Window.hpp5
-rw-r--r--src/window/Window.cpp8
3 files changed, 1 insertions, 12 deletions
diff --git a/depends/mgl b/depends/mgl
-Subproject 26aa794b4260afcac0d4a9377c0218e474b051d
+Subproject 0d5743ae8a077c284c0cad2e3f9dc52c6eed0a4
diff --git a/include/mglpp/window/Window.hpp b/include/mglpp/window/Window.hpp
index 5ef9d1a..2c179a8 100644
--- a/include/mglpp/window/Window.hpp
+++ b/include/mglpp/window/Window.hpp
@@ -44,7 +44,7 @@ namespace mgl {
WindowHandle parent_window = 0; /* 0 = root window */
bool hidden = false;
bool override_redirect = false;
- bool support_alpha = false; /* support alpha for the window. If this is set to true then you need to call window.set_texture_blend_func before rendering textures and call window.set_render_blend_func afterwards to ensure correct alpha blending */
+ bool support_alpha = false; /* support alpha for the window */
bool hide_decorations = false; /* this is a hint, it may be ignored by the window manager */
Color background_color = {0, 0, 0, 0};
const char *class_name = nullptr;
@@ -110,9 +110,6 @@ namespace mgl {
bool get_clipboard(ClipboardCallback callback);
std::string get_clipboard_string();
- void set_texture_blend_func();
- void set_render_blend_func();
-
WindowHandle get_system_handle() const;
mgl_window* internal_window();
diff --git a/src/window/Window.cpp b/src/window/Window.cpp
index 615b1a9..731ca8e 100644
--- a/src/window/Window.cpp
+++ b/src/window/Window.cpp
@@ -186,14 +186,6 @@ namespace mgl {
return result;
}
- void Window::set_texture_blend_func() {
- mgl_window_set_texture_blend_func(&window);
- }
-
- void Window::set_render_blend_func() {
- mgl_window_set_render_blend_func(&window);
- }
-
WindowHandle Window::get_system_handle() const {
return window.window;
}