2014-04-08 19:04:25 -04:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-16 21:38:14 -08:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-04-08 19:04:25 -04:00
|
|
|
// Refer to the license.txt file included.
|
2014-04-05 16:04:25 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2015-05-18 21:21:33 -07:00
|
|
|
#include <atomic>
|
2015-12-30 08:52:01 -05:00
|
|
|
#include <memory>
|
2015-05-18 21:21:33 -07:00
|
|
|
|
2015-06-21 14:02:11 +01:00
|
|
|
class EmuWindow;
|
|
|
|
class RendererBase;
|
|
|
|
|
2014-04-05 16:04:25 -04:00
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Video Core namespace
|
|
|
|
|
|
|
|
namespace VideoCore {
|
|
|
|
|
2016-09-18 09:38:01 +09:00
|
|
|
extern std::unique_ptr<RendererBase> g_renderer; ///< Renderer plugin
|
|
|
|
extern EmuWindow* g_emu_window; ///< Emu window
|
2014-04-05 16:04:25 -04:00
|
|
|
|
2016-09-18 09:38:01 +09:00
|
|
|
// TODO: Wrap these in a user settings struct along with any other graphics settings (often set from
|
|
|
|
// qt ui)
|
2016-12-07 07:33:19 +12:00
|
|
|
extern std::atomic<bool> g_toggle_framelimit_enabled;
|
2015-05-18 21:21:33 -07:00
|
|
|
|
2014-04-05 16:04:25 -04:00
|
|
|
/// Start the video core
|
|
|
|
void Start();
|
|
|
|
|
|
|
|
/// Initialize the video core
|
2016-01-07 20:33:54 +01:00
|
|
|
bool Init(EmuWindow* emu_window);
|
2014-04-05 16:04:25 -04:00
|
|
|
|
|
|
|
/// Shutdown the video core
|
2014-04-06 16:55:39 -04:00
|
|
|
void Shutdown();
|
2014-04-05 16:04:25 -04:00
|
|
|
|
|
|
|
} // namespace
|