diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-07-31 19:58:37 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-07-31 19:58:37 +0200 |
commit | 6c79d44732272b4d8a28abe89a78692a6b7c5cc4 (patch) | |
tree | d7a8f7625d272e0ea4caa540c05e51e5b08d1038 | |
parent | 10f2382951303780f5a3d4ded0ca349fb13ab9dc (diff) |
Flush after window move/resize
-rw-r--r-- | README.md | 2 | ||||
m--------- | depends/mgl | 0 | ||||
-rw-r--r-- | include/mglpp/window/Window.hpp | 2 | ||||
-rw-r--r-- | src/window/Window.cpp | 4 |
4 files changed, 8 insertions, 0 deletions
@@ -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 |