VideoCommon: Move the blit methods to the backend class

The parameter types will be different for each backend currently,
anyway (e.g. textures/render passes/etc).
This commit is contained in:
Stenzek
2017-04-21 23:33:12 +10:00
parent dd31a403db
commit a10e8b1ef5
3 changed files with 7 additions and 10 deletions

View File

@ -60,6 +60,7 @@ public:
bool IsDirty() { return m_any_options_dirty; }
void SetDirty(bool dirty) { m_any_options_dirty = dirty; }
bool HasOptions() { return m_options.size() > 0; }
const ConfigMap& GetOptions() const { return m_options; }
ConfigMap& GetOptions() { return m_options; }
const ConfigurationOption& GetOption(const std::string& option) { return m_options[option]; }
// For updating option's values
@ -83,11 +84,6 @@ public:
virtual ~PostProcessingShaderImplementation();
PostProcessingShaderConfiguration* GetConfig() { return &m_config; }
// Should be implemented by the backends for backend specific code
virtual void BlitFromTexture(TargetRectangle src, TargetRectangle dst, int src_texture,
int src_width, int src_height, int layer = 0) = 0;
virtual void ApplyShader() = 0;
protected:
// Timer for determining our time value
Common::Timer m_timer;