diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mgl/gl.h | 1 | ||||
-rw-r--r-- | include/mgl/window/window.h | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/include/mgl/gl.h b/include/mgl/gl.h index 87a3ccd..4658198 100644 --- a/include/mgl/gl.h +++ b/include/mgl/gl.h @@ -58,6 +58,7 @@ typedef struct { void (*glClear)(unsigned int mask); void (*glEnable)(unsigned int cap); void (*glBlendFunc)(unsigned int sfactor, unsigned int dfactor); + void (*glBlendFuncSeparate)(unsigned int sfactorRGB, unsigned int dfactorRGB, unsigned int sfactorAlpha, unsigned int dfactorAlpha); void (*glGenTextures)(int n, unsigned int *textures); void (*glDeleteTextures)(int n, const unsigned int *textures); void (*glGetTexLevelParameteriv)(unsigned int target, int level, unsigned int pname, int *params); diff --git a/include/mgl/window/window.h b/include/mgl/window/window.h index 77589c9..a5ccbf7 100644 --- a/include/mgl/window/window.h +++ b/include/mgl/window/window.h @@ -81,7 +81,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. 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 support_alpha; /* support alpha for the window, false by default */ 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; @@ -182,9 +182,6 @@ 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); void* mgl_window_get_egl_display(mgl_window *self); |