mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
92eed47213
Old code dumped the efb, which was no-longer relevant since the backend gained xfb support. New code dumps the colour texture which is about to be rendered to the screen so correctly reflects the bypassXFB option.
30 lines
732 B
C++
30 lines
732 B
C++
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include "Common/CommonTypes.h"
|
|
#include "Common/Thread.h"
|
|
#include "VideoBackends/Software/EfbInterface.h"
|
|
|
|
namespace SWRenderer
|
|
{
|
|
void Init();
|
|
void Prepare();
|
|
void Shutdown();
|
|
|
|
void SetScreenshot(const char *_szFilename);
|
|
void RenderText(const char* pstr, int left, int top, u32 color);
|
|
void DrawDebugText();
|
|
|
|
u8* getNextColorTexture();
|
|
u8* getCurrentColorTexture();
|
|
void swapColorTexture();
|
|
void UpdateColorTexture(EfbInterface::yuv422_packed *xfb, u32 fbWidth, u32 fbHeight);
|
|
void DrawTexture(u8 *texture, int width, int height);
|
|
|
|
void Swap(u32 fbWidth, u32 fbHeight);
|
|
void SwapBuffer();
|
|
}
|