mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
Decouple emulator and frontend code
This commit is contained in:
parent
ab83fc1e71
commit
fb0a2a6801
8 changed files with 411 additions and 364 deletions
19
include/panda_sdl/frontend_sdl.hpp
Normal file
19
include/panda_sdl/frontend_sdl.hpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
|
||||
#include <SDL.h>
|
||||
|
||||
#include "emulator.hpp"
|
||||
|
||||
struct FrontendSDL {
|
||||
FrontendSDL();
|
||||
bool loadROM(const std::filesystem::path& path);
|
||||
void run();
|
||||
|
||||
Emulator emu;
|
||||
SDL_Window* window = nullptr;
|
||||
#ifdef PANDA3DS_ENABLE_OPENGL
|
||||
SDL_GLContext glContext;
|
||||
#endif
|
||||
SDL_GameController* gameController = nullptr;
|
||||
int gameControllerID;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue