DumpDVD/DumpDVD/Gui/MainWindow.cpp

41 lines
593 B
C++
Raw Normal View History

2023-03-14 13:36:58 +00:00
#include "MainWindow.hpp"
#ifdef _WIN32
#include "D3D.hpp"
#include <imgui_impl_dx11.cpp>
#endif
#include <imgui_impl_sdl2.h>
#include <imgui.h>
#include <iostream>
#include <string>
#include <vector>
#include "SDL.hpp"
2023-03-15 06:59:59 +00:00
#include "DumpDVD.hpp"
2023-03-14 13:36:58 +00:00
namespace Li::Gui {
2023-03-15 06:59:59 +00:00
2023-03-14 13:36:58 +00:00
MainWindow::MainWindow() {
this->sdl = new SDL("DumpDVD", 800, 400);
2023-03-15 06:59:59 +00:00
DumpDVD* dumpDvdMenu = new DumpDVD();
2023-03-14 13:36:58 +00:00
while (!this->sdl->IsExiting()) {
this->sdl->PollEvent();
this->sdl->NewFrame();
2023-03-15 06:59:59 +00:00
dumpDvdMenu->RenderUI();
2023-03-14 13:36:58 +00:00
this->sdl->Render();
}
2023-03-15 06:59:59 +00:00
delete dumpDvdMenu;
2023-03-14 13:36:58 +00:00
}
MainWindow::~MainWindow() {
}
}