mirror of
https://github.com/decaf-emu/decaf-emu.git
synced 2025-04-02 10:42:13 -04:00
26 lines
478 B
C++
26 lines
478 B
C++
#pragma once
|
|
#include <SDL.h>
|
|
#include <libgpu/gpu_graphicsdriver.h>
|
|
|
|
#include <string>
|
|
#include <thread>
|
|
|
|
class SDLWindow
|
|
{
|
|
static const auto WindowWidth = 1420;
|
|
static const auto WindowHeight = 768;
|
|
|
|
public:
|
|
~SDLWindow();
|
|
|
|
bool initCore();
|
|
bool initGraphics();
|
|
|
|
bool run(const std::string &tracePath);
|
|
|
|
private:
|
|
SDL_Window *mWindow = nullptr;
|
|
gpu::GraphicsDriver *mGraphicsDriver = nullptr;
|
|
std::string mRendererName;
|
|
bool mToggleDRC = false;
|
|
};
|