DumpDVD/DumpDVD/Gui/MainWindow.cpp

41 lines
593 B
C++

#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"
#include "DumpDVD.hpp"
namespace Li::Gui {
MainWindow::MainWindow() {
this->sdl = new SDL("DumpDVD", 800, 400);
DumpDVD* dumpDvdMenu = new DumpDVD();
while (!this->sdl->IsExiting()) {
this->sdl->PollEvent();
this->sdl->NewFrame();
dumpDvdMenu->RenderUI();
this->sdl->Render();
}
delete dumpDvdMenu;
}
MainWindow::~MainWindow() {
}
}