Panda3DS/include/panda_sdl/frontend_sdl.hpp
2023-10-20 02:16:49 +03:00

23 lines
No EOL
372 B
C++

#pragma once
#include <SDL.h>
#include <filesystem>
#include "emulator.hpp"
class FrontendSDL {
Emulator emu;
#ifdef PANDA3DS_ENABLE_OPENGL
SDL_GLContext glContext;
#endif
public:
FrontendSDL();
bool loadROM(const std::filesystem::path& path);
void run();
SDL_Window* window = nullptr;
SDL_GameController* gameController = nullptr;
int gameControllerID;
};