VideoCore: Unify interface to OpenGL and SW rasterizers

This removes explicit checks sprinkled all over the codebase to instead
just have the SW rasterizer expose an implementation with no-ops for
most operations.
This commit is contained in:
Yuri Kunde Schlesner 2015-12-06 19:06:12 -08:00
parent 03835d04f4
commit 195fedccf0
16 changed files with 115 additions and 77 deletions

View file

@ -8,7 +8,7 @@
#include "common/common_types.h"
#include "video_core/hwrasterizer_base.h"
#include "video_core/rasterizer_interface.h"
class EmuWindow;
@ -54,10 +54,14 @@ public:
return m_current_frame;
}
std::unique_ptr<HWRasterizer> hw_rasterizer;
void RefreshRasterizerSetting();
std::unique_ptr<VideoCore::RasterizerInterface> rasterizer;
protected:
f32 m_current_fps; ///< Current framerate, should be set by the renderer
int m_current_frame; ///< Current frame, should be set by the renderer
private:
bool opengl_rasterizer_active = false;
};