DumpDVD/DumpDVD/Gui/MainWindow.cpp

39 lines
781 B
C++

#include "MainWindow.hpp"
#include "SDL.hpp"
#include "DumpDVD.hpp"
#include "D3D.hpp"
#include "DvdSpin/D3DSpin.hpp"
#include <iostream>
#include <string>
#include <vector>
namespace Li::Gui {
MainWindow::MainWindow() {
this->sdl = new SDL("DumpDVD", 800, 400);
this->sdl->SetMaxFPS(24.0);
// Create dvd spinner
Li::Gui::DvdSpin::RenderDvdSpin* spin = Li::Gui::DvdSpin::RenderDvdSpin::CreateDvdSpinner(sdl->Renderer());
// Create menu
DumpDVD* dumpDvdMenu = new DumpDVD();
while (!this->sdl->IsExiting()) {
this->sdl->PollEvent();
this->sdl->NewFrame();
spin->RenderDVD();
dumpDvdMenu->RenderUI();
this->sdl->Render();
}
Li::Gui::DvdSpin::RenderDvdSpin::DeleteDvdSpinner(spin);
delete dumpDvdMenu;
}
MainWindow::~MainWindow() {
}
}