2023-03-14 13:36:58 +00:00
|
|
|
#include "MainWindow.hpp"
|
2023-03-19 02:37:35 +00:00
|
|
|
#include "SDL.hpp"
|
|
|
|
#include "DumpDVD.hpp"
|
2023-03-14 13:36:58 +00:00
|
|
|
|
2023-03-20 09:39:23 +00:00
|
|
|
#include "D3D.hpp"
|
2023-03-27 15:57:30 +00:00
|
|
|
#include "../Scsi/OpticalDrive.hpp"
|
2023-03-20 09:39:23 +00:00
|
|
|
#include "DvdSpin/D3DSpin.hpp"
|
|
|
|
|
2023-03-14 13:36:58 +00:00
|
|
|
#include <iostream>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
|
|
namespace Li::Gui {
|
|
|
|
MainWindow::MainWindow() {
|
|
|
|
this->sdl = new SDL("DumpDVD", 800, 400);
|
2023-03-19 02:37:35 +00:00
|
|
|
this->sdl->SetMaxFPS(24.0);
|
2023-03-14 13:36:58 +00:00
|
|
|
|
2023-03-27 15:57:30 +00:00
|
|
|
|
2023-03-20 09:39:23 +00:00
|
|
|
// Create menu
|
2023-03-27 15:57:30 +00:00
|
|
|
DumpDVD* dumpDvdMenu = new DumpDVD(sdl->Renderer());
|
2023-03-14 13:36:58 +00:00
|
|
|
while (!this->sdl->IsExiting()) {
|
2023-03-19 02:37:35 +00:00
|
|
|
this->sdl->PollEvent();
|
|
|
|
this->sdl->NewFrame();
|
2023-03-14 13:36:58 +00:00
|
|
|
|
2023-03-19 02:37:35 +00:00
|
|
|
dumpDvdMenu->RenderUI();
|
2023-03-14 13:36:58 +00:00
|
|
|
|
2023-03-27 15:57:30 +00:00
|
|
|
|
2023-03-19 02:37:35 +00:00
|
|
|
this->sdl->Render();
|
2023-03-14 13:36:58 +00:00
|
|
|
}
|
2023-03-15 06:59:59 +00:00
|
|
|
delete dumpDvdMenu;
|
2023-03-14 13:36:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
MainWindow::~MainWindow() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|