summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderBase.h
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2015-11-21 10:20:34 +0100
committerdegasus <wickmarkus@web.de>2015-11-24 22:39:10 +0100
commitdf799dd12466a319c5616027980db0dbcadaa7de (patch)
treefd10dd76400220934b22a07707f01ad25cb210ae /Source/Core/VideoCommon/RenderBase.h
parentf560e8e283281d6130b2592617f2fe6453cebf83 (diff)
VideoCommon: Create default implementation for state setters
It's fine to pull those within the backends, so there is no need to enforce them to implement this interface.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.h')
-rw-r--r--Source/Core/VideoCommon/RenderBase.h33
1 files changed, 16 insertions, 17 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.h b/Source/Core/VideoCommon/RenderBase.h
index c717483d1e..ad53f2f20c 100644
--- a/Source/Core/VideoCommon/RenderBase.h
+++ b/Source/Core/VideoCommon/RenderBase.h
@@ -58,19 +58,22 @@ public:
PP_EFB_COPY_CLOCKS
};
- virtual void SetColorMask() = 0;
- virtual void SetBlendMode(bool forceUpdate) = 0;
- virtual void SetScissorRect(const EFBRectangle& rc) = 0;
- virtual void SetGenerationMode() = 0;
- virtual void SetDepthMode() = 0;
- virtual void SetLogicOpMode() = 0;
- virtual void SetDitherMode() = 0;
- virtual void SetSamplerState(int stage, int texindex, bool custom_tex) = 0;
- virtual void SetInterlacingMode() = 0;
- virtual void SetViewport() = 0;
-
- virtual void ApplyState(bool bUseDstAlpha) = 0;
- virtual void RestoreState() = 0;
+ virtual void SetColorMask() {}
+ virtual void SetBlendMode(bool forceUpdate) {}
+ virtual void SetScissorRect(const EFBRectangle& rc) {}
+ virtual void SetGenerationMode() {}
+ virtual void SetDepthMode() {}
+ virtual void SetLogicOpMode() {}
+ virtual void SetDitherMode() {}
+ virtual void SetSamplerState(int stage, int texindex, bool custom_tex) {}
+ virtual void SetInterlacingMode() {}
+ virtual void SetViewport() {}
+
+ virtual void ApplyState(bool bUseDstAlpha) {}
+ virtual void RestoreState() {}
+
+ virtual void ResetAPIState() {}
+ virtual void RestoreAPIState() {}
// Ideal internal resolution - determined by display resolution (automatic scaling) and/or a multiple of the native EFB resolution
static int GetTargetWidth() { return s_target_width; }
@@ -117,10 +120,6 @@ public:
virtual u16 BBoxRead(int index) = 0;
virtual void BBoxWrite(int index, u16 value) = 0;
- // What's the real difference between these? Too similar names.
- virtual void ResetAPIState() = 0;
- virtual void RestoreAPIState() = 0;
-
// Finish up the current frame, print some stats
static void Swap(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, const EFBRectangle& rc,float Gamma = 1.0f);
virtual void SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, const EFBRectangle& rc, float Gamma = 1.0f) = 0;