mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 23:41:19 +01:00
0b02880b76
Revert "Actually, filename really does need to be a parameter because of some random debug thing." Revert "fix non-HAVE_WX case" Revert "Handle screenshot saving in RenderBase. Removes dependency on D3DX11 for screenshots (texture dumping is still broken)." This reverts commits 00fe5057f13bca3416b9d25a1fe9df27c514b29c, 74b5fb3ab4b066681336d1be44c7eecfcf6a4dc6, cd46138d299088631bbcbf37543584946c4b174a and 5f72542e0637799092ad1006d16ebad1961020e0 because taking screenshots in D3D still crashed for me so there was no point in the code changes (which I found ugly anyway).
59 lines
1.3 KiB
C++
59 lines
1.3 KiB
C++
|
|
#ifndef _RENDER_H_
|
|
#define _RENDER_H_
|
|
|
|
#include "RenderBase.h"
|
|
|
|
namespace DX11
|
|
{
|
|
|
|
class Renderer : public ::Renderer
|
|
{
|
|
public:
|
|
Renderer();
|
|
~Renderer();
|
|
|
|
void SetColorMask();
|
|
void SetBlendMode(bool forceUpdate);
|
|
void SetScissorRect(const TargetRectangle& rc);
|
|
void SetGenerationMode();
|
|
void SetDepthMode();
|
|
void SetLogicOpMode();
|
|
void SetDitherMode();
|
|
void SetLineWidth();
|
|
void SetSamplerState(int stage,int texindex);
|
|
void SetInterlacingMode();
|
|
|
|
// TODO: Fix confusing names (see ResetAPIState and RestoreAPIState)
|
|
void ApplyState(bool bUseDstAlpha);
|
|
void RestoreState();
|
|
|
|
void ApplyCullDisable();
|
|
void RestoreCull();
|
|
|
|
void RenderText(const char* pstr, int left, int top, u32 color);
|
|
|
|
u32 AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data);
|
|
|
|
void ResetAPIState();
|
|
void RestoreAPIState();
|
|
|
|
TargetRectangle ConvertEFBRectangle(const EFBRectangle& rc);
|
|
|
|
void Swap(u32 xfbAddr, u32 fbWidth, u32 fbHeight, const EFBRectangle& rc,float Gamma);
|
|
|
|
void ClearScreen(const EFBRectangle& rc, bool colorEnable, bool alphaEnable, bool zEnable, u32 color, u32 z);
|
|
|
|
void ReinterpretPixelData(unsigned int convtype);
|
|
|
|
void UpdateViewport();
|
|
|
|
bool SaveScreenshot(const std::string &filename, const TargetRectangle &rc);
|
|
|
|
static bool CheckForResize();
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|