From 70d997645188862e9cce0c832e5ed2acfd715ca9 Mon Sep 17 00:00:00 2001 From: Tobias Frisch <tfrisch@uni-koblenz.de> Date: Thu, 17 Jun 2021 19:27:58 +0200 Subject: [PATCH] [#72] Added minor documentation for the gui class Signed-off-by: Tobias Frisch <tfrisch@uni-koblenz.de> --- modules/gui/include/vkcv/gui/GUI.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/gui/include/vkcv/gui/GUI.hpp b/modules/gui/include/vkcv/gui/GUI.hpp index 0f9d5f47..d1a9986c 100644 --- a/modules/gui/include/vkcv/gui/GUI.hpp +++ b/modules/gui/include/vkcv/gui/GUI.hpp @@ -27,6 +27,12 @@ namespace vkcv::gui { event_handle<unsigned int> f_char; public: + /** + * Constructor of a new instance of ImGui management + * + * @param core Valid #Core instance of the framework + * @param window Valid #Window instance of the framework + */ GUI(Core& core, Window& window); GUI(const GUI& other) = delete; @@ -35,10 +41,20 @@ namespace vkcv::gui { GUI& operator=(const GUI& other) = delete; GUI& operator=(GUI&& other) = delete; + /** + * Destructor of a #GUI instance + */ virtual ~GUI(); + /** + * Sets up a new frame for ImGui to draw + */ void beginGUI(); + /** + * Ends a frame for ImGui, renders it and draws it onto + * the currently active swapchain image of the core (ready to present). + */ void endGUI(); }; -- GitLab