Handle screenshot saving in RenderBase. Removes dependency on D3DX11 for screenshots (texture dumping is still broken).

This commit is contained in:
comex committed 2013-11-02 22:19:21 -04:00
1 parent 26059f1109
commit 5f72542e06
6 files changed
+109 -147

No files matched your search

+2 -2
View File
@@ -63,7 +63,7 @@ public:
void RenderText(const char* pstr, int left, int top, u32 color);
void DrawDebugInfo();
void FlipImageData(u8 *data, int w, int h);
static void FlipImageData(u8 *data, int w, int h);
u32 AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data);
@@ -80,7 +80,7 @@ public:
void UpdateViewport();
bool SaveScreenshot(const std::string &filename, const TargetRectangle &rc);
static void TakeScreenshot(const TargetRectangle &rc);
private:
void UpdateEFBCache(EFBAccessType type, u32 cacheRectIdx, const EFBRectangle& efbPixelRc, const TargetRectangle& targetPixelRc, const u32* data);