menu
This commit is contained in:
@@ -28,6 +28,8 @@ namespace Game::Window {
|
||||
|
||||
static SDL_Window* getSDLWindowBackend() { std::scoped_lock lock(sMutex); return sWindowBackend; }
|
||||
Renderer::Renderer* getRenderer() { std::scoped_lock lock(mMutex); return &mRenderer; }
|
||||
// Post a task to be executed on the window/event thread.
|
||||
static void postToMainThread(std::function<void()> fn);
|
||||
|
||||
private:
|
||||
mutable std::mutex mMutex;
|
||||
|
||||
Reference in New Issue
Block a user