18 lines
No EOL
515 B
C++
18 lines
No EOL
515 B
C++
import VUI;
|
|
#include <chrono>
|
|
#include <thread>
|
|
|
|
int main() {
|
|
VUI::WindowManager::Create(1280, 720, "VUI");
|
|
while (VUI::WindowManager::HasOpenWindows()) {
|
|
VUI::WindowManager::Update();
|
|
if (VUI::Input::IsKeyPressed(VUI::KeyCodes::F3)) {
|
|
VUI::WindowManager::Create(1280, 720, "Second Window");
|
|
}
|
|
if (VUI::Input::IsKeyPressed(VUI::KeyCodes::F4)) {
|
|
VUI::WindowManager::CloseByTitle("Second Window");
|
|
}
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(30));
|
|
}
|
|
return 0;
|
|
} |