mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-25 14:54:56 +00:00
28 lines
782 B
C++
28 lines
782 B
C++
// Copyright 2010 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
enum class EFBAccessType;
|
|
enum class EFBReinterpretType;
|
|
|
|
// Renderer really isn't a very good name for this class - it's more like "Misc".
|
|
// It used to be a massive mess, but almost everything has been refactored out.
|
|
//
|
|
// All that's left is a thin abstraction layer for VideoSoftware to intercept EFB accesses.
|
|
class Renderer
|
|
{
|
|
public:
|
|
virtual ~Renderer();
|
|
|
|
virtual void ReinterpretPixelData(EFBReinterpretType convtype);
|
|
|
|
virtual u32 AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data);
|
|
virtual void PokeEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data);
|
|
};
|
|
|
|
extern std::unique_ptr<Renderer> g_renderer;
|