diff options
| author | Markus Wick <markus+github@selfnet.de> | 2014-12-26 13:25:33 +0100 |
|---|---|---|
| committer | Markus Wick <markus+github@selfnet.de> | 2014-12-26 13:25:33 +0100 |
| commit | a86865d1c42baced251204f1474bed65727637bc (patch) | |
| tree | 7be2bb799f930fd150488232ae16a4a54f99318c /Source/Core/VideoCommon/FramebufferManagerBase.h | |
| parent | f71c4b5768579aff6986543c10ed8b24169e2589 (diff) | |
| parent | 833513f38413dc0f6af47067b223125c3de3eeaf (diff) | |
Merge pull request #1740 from Armada651/stereo-xfb
Support stereoscopy with Virtual XFB
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferManagerBase.h')
| -rw-r--r-- | Source/Core/VideoCommon/FramebufferManagerBase.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/Core/VideoCommon/FramebufferManagerBase.h b/Source/Core/VideoCommon/FramebufferManagerBase.h index 592338e43c..661cfb7f31 100644 --- a/Source/Core/VideoCommon/FramebufferManagerBase.h +++ b/Source/Core/VideoCommon/FramebufferManagerBase.h @@ -13,9 +13,6 @@ struct XFBSourceBase { virtual ~XFBSourceBase() {} - virtual void Draw(const MathUtil::Rectangle<int> &sourcerc, - const MathUtil::Rectangle<float> &drawrc) const {}; - virtual void DecodeToTexture(u32 xfbAddr, u32 fbWidth, u32 fbHeight) = 0; virtual void CopyEFB(float Gamma) = 0; @@ -52,8 +49,8 @@ public: static unsigned int LastXfbWidth() { return s_last_xfb_width; } static unsigned int LastXfbHeight() { return s_last_xfb_height; } - static int ScaleToVirtualXfbWidth(int x, unsigned int backbuffer_width); - static int ScaleToVirtualXfbHeight(int y, unsigned int backbuffer_height); + static int ScaleToVirtualXfbWidth(int x); + static int ScaleToVirtualXfbHeight(int y); static unsigned int GetEFBLayers() { return m_EFBLayers; } @@ -75,9 +72,9 @@ protected: static unsigned int m_EFBLayers; private: - virtual XFBSourceBase* CreateXFBSource(unsigned int target_width, unsigned int target_height) = 0; + virtual XFBSourceBase* CreateXFBSource(unsigned int target_width, unsigned int target_height, unsigned int layers) = 0; // TODO: figure out why OGL is different for this guy - virtual void GetTargetSize(unsigned int *width, unsigned int *height, const EFBRectangle& sourceRc) = 0; + virtual void GetTargetSize(unsigned int *width, unsigned int *height) = 0; static VirtualXFBListType::iterator FindVirtualXFB(u32 xfbAddr, u32 width, u32 height); |
