mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-21 02:45:00 +00:00
basic sdl window init
This commit is contained in:
parent
c2453f6ae9
commit
8954a35eec
5 changed files with 73 additions and 10 deletions
|
@ -1,6 +1,17 @@
|
|||
#pragma once
|
||||
#include <Core/PS4/HLE/Graphics/graphics_ctx.h>
|
||||
#include <Lib/Threads.h>
|
||||
#include <SDL.h>
|
||||
|
||||
namespace Emulator {
|
||||
void emuInit();
|
||||
struct WindowCtx {
|
||||
HLE::Libs::Graphics::GraphicCtx m_graphic_ctx;
|
||||
Lib::Mutex m_mutex;
|
||||
bool m_is_graphic_initialized = false;
|
||||
Lib::ConditionVariable m_graphic_initialized_cond;
|
||||
SDL_Window* m_window = nullptr;
|
||||
bool is_window_hidden = true;
|
||||
};
|
||||
void emuInit(u32 width, u32 height);
|
||||
void emuRun();
|
||||
}
|
||||
} // namespace Emulator
|
Loading…
Add table
Add a link
Reference in a new issue