From 6c79d44732272b4d8a28abe89a78692a6b7c5cc4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 31 Jul 2024 19:58:37 +0200 Subject: Flush after window move/resize --- README.md | 2 ++ depends/mgl | 2 +- include/mglpp/window/Window.hpp | 2 ++ src/window/Window.cpp | 4 ++++ 4 files changed, 9 insertions(+), 1 deletion(-) 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 index bff9b4c..f3e5b69 160000 --- a/depends/mgl +++ b/depends/mgl @@ -1 +1 @@ -Subproject commit bff9b4c0ee5c943d3729006c8303bbde1e96742e +Subproject commit f3e5b69d33f47dece7e3bc8c133f65ad7169cc18 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 -- cgit v1.2.3