aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-07-31 19:58:37 +0200
committerdec05eba <dec05eba@protonmail.com>2024-07-31 19:58:37 +0200
commit6c79d44732272b4d8a28abe89a78692a6b7c5cc4 (patch)
treed7a8f7625d272e0ea4caa540c05e51e5b08d1038
parent10f2382951303780f5a3d4ded0ca349fb13ab9dc (diff)
Flush after window move/resize
-rw-r--r--README.md2
m---------depends/mgl0
-rw-r--r--include/mglpp/window/Window.hpp2
-rw-r--r--src/window/Window.cpp4
4 files changed, 8 insertions, 0 deletions
diff --git a/README.md b/README.md
index 49d980f..0a0b586 100644
--- a/README.md
+++ b/README.md
@@ -7,3 +7,5 @@ C++ wrapper for [mgl](https://git.dec05eba.com/mgl/about/)
`libglvnd (libGL.so)`
# Notes
Every window _get_ function is cached from the last event poll, no calls to x11 is made.
+Only one window can be created and used at once.\
+mglpp needs to be initialized first and then a window created, before other functions are called.
diff --git a/depends/mgl b/depends/mgl
-Subproject bff9b4c0ee5c943d3729006c8303bbde1e96742
+Subproject f3e5b69d33f47dece7e3bc8c133f65ad7169cc1
diff --git a/include/mglpp/window/Window.hpp b/include/mglpp/window/Window.hpp
index 08cd435..7d3f90b 100644
--- a/include/mglpp/window/Window.hpp
+++ b/include/mglpp/window/Window.hpp
@@ -108,6 +108,8 @@ namespace mgl {
std::string get_clipboard_string();
WindowHandle get_system_handle() const;
+
+ mgl_window* internal_window();
private:
mgl_window window;
};
diff --git a/src/window/Window.cpp b/src/window/Window.cpp
index cf6f64b..339df71 100644
--- a/src/window/Window.cpp
+++ b/src/window/Window.cpp
@@ -185,4 +185,8 @@ namespace mgl {
WindowHandle Window::get_system_handle() const {
return window.window;
}
+
+ mgl_window* Window::internal_window() {
+ return &window;
+ }
} \ No newline at end of file