Skip to content
Snippets Groups Projects
Verified Commit 70d99764 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

[#72] Added minor documentation for the gui class

parent 688f59ce
No related branches found
No related tags found
1 merge request!63Resolve "ImGui support"
Pipeline #25821 passed
...@@ -27,6 +27,12 @@ namespace vkcv::gui { ...@@ -27,6 +27,12 @@ namespace vkcv::gui {
event_handle<unsigned int> f_char; event_handle<unsigned int> f_char;
public: 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(Core& core, Window& window);
GUI(const GUI& other) = delete; GUI(const GUI& other) = delete;
...@@ -35,10 +41,20 @@ namespace vkcv::gui { ...@@ -35,10 +41,20 @@ namespace vkcv::gui {
GUI& operator=(const GUI& other) = delete; GUI& operator=(const GUI& other) = delete;
GUI& operator=(GUI&& other) = delete; GUI& operator=(GUI&& other) = delete;
/**
* Destructor of a #GUI instance
*/
virtual ~GUI(); virtual ~GUI();
/**
* Sets up a new frame for ImGui to draw
*/
void beginGUI(); 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(); void endGUI();
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment