mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 16:18:58 +00:00
VideoBackend: Add a virtual PrepareWindow function
Executes backend-specific commands on the main thread.
This commit is contained in:
parent
2e370b4ec3
commit
487ea5ab36
2 changed files with 7 additions and 0 deletions
|
@ -43,6 +43,10 @@ public:
|
|||
virtual std::string GetDisplayName() const { return GetName(); }
|
||||
virtual void InitBackendInfo() = 0;
|
||||
|
||||
// Prepares a native window for rendering. This is called on the main thread, or the
|
||||
// thread which owns the window.
|
||||
virtual void PrepareWindow(const WindowSystemInfo& wsi) {}
|
||||
|
||||
void Video_ExitLoop();
|
||||
|
||||
void Video_BeginField(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height, u64 ticks);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue