citra/src/video_core/video_core.h

36 lines
887 B
C
Raw Normal View History

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