mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Renderer: Add backbuffer format to base class
This commit is contained in:
@ -32,6 +32,7 @@
|
||||
#include "VideoCommon/BPMemory.h"
|
||||
#include "VideoCommon/FPSCounter.h"
|
||||
#include "VideoCommon/RenderState.h"
|
||||
#include "VideoCommon/TextureConfig.h"
|
||||
#include "VideoCommon/VideoCommon.h"
|
||||
|
||||
class AbstractFramebuffer;
|
||||
@ -72,7 +73,7 @@ enum class OSDMessage : s32
|
||||
class Renderer
|
||||
{
|
||||
public:
|
||||
Renderer(int backbuffer_width, int backbuffer_height);
|
||||
Renderer(int backbuffer_width, int backbuffer_height, AbstractTextureFormat backbuffer_format);
|
||||
virtual ~Renderer();
|
||||
|
||||
using ClearColor = std::array<float, 4>;
|
||||
@ -230,6 +231,7 @@ protected:
|
||||
// Backbuffer (window) size and render area
|
||||
int m_backbuffer_width = 0;
|
||||
int m_backbuffer_height = 0;
|
||||
AbstractTextureFormat m_backbuffer_format = AbstractTextureFormat::Undefined;
|
||||
TargetRectangle m_target_rectangle = {};
|
||||
|
||||
FPSCounter m_fps_counter;
|
||||
|
Reference in New Issue
Block a user