#includeIn this example, we first create an instance of the CEGUI system. We then create a new window using the WindowManager singleton, set its size and position, and add a child element to display some text. Finally, we clean up the window and shut down the system. To use CEGUI in your project, you can download the library from the official website (https://cegui.org.uk/) or install it using your favorite package manager. Some popular package managers that support CEGUI include CMake, Conan, and vcpkg.int main() { // initialize CEGUI CEGUI::System::create(); // create a new window CEGUI::Window* myWindow = CEGUI::WindowManager::getSingleton().createWindow("DefaultWindow", "myWindow"); // set its size and position myWindow->setSize(CEGUI::USize(CEGUI::UDim(0.2f, 0), CEGUI::UDim(0.2f, 0))); myWindow->setPosition(CEGUI::UVector2(CEGUI::UDim(0.4f, 0), CEGUI::UDim(0.4f, 0))); // add some text to the window CEGUI::Window* text = CEGUI::WindowManager::getSingleton().createWindow("Vanilla/StaticText"); text->setText("Hello World!"); myWindow->addChild(text); // after we're done with the window, we should clean it up CEGUI::WindowManager::getSingleton().destroyWindow(myWindow); // shutdown CEGUI CEGUI::System::destroy(); return 0; }