2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-18 01:08:10 +02:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 05:29:41 +02:00
|
|
|
// Refer to the license.txt file included.
|
2010-06-09 03:37:08 +02:00
|
|
|
|
2014-02-10 19:54:46 +01:00
|
|
|
#pragma once
|
2010-06-09 03:37:08 +02:00
|
|
|
|
2014-02-17 11:18:15 +01:00
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
#include "Common/Thread.h"
|
|
|
|
#include "VideoBackends/Software/EfbInterface.h"
|
2010-06-09 03:37:08 +02:00
|
|
|
|
2011-02-03 20:55:30 +01:00
|
|
|
namespace SWRenderer
|
2014-02-17 05:51:41 +01:00
|
|
|
{
|
2013-04-14 05:54:02 +02:00
|
|
|
void Init();
|
|
|
|
void Prepare();
|
|
|
|
void Shutdown();
|
2014-03-29 11:05:44 +01:00
|
|
|
|
2013-11-16 05:07:08 +01:00
|
|
|
void SetScreenshot(const char *_szFilename);
|
2013-04-14 05:54:02 +02:00
|
|
|
void RenderText(const char* pstr, int left, int top, u32 color);
|
|
|
|
void DrawDebugText();
|
2010-06-09 03:37:08 +02:00
|
|
|
|
2014-08-11 04:01:42 +02:00
|
|
|
u8* GetNextColorTexture();
|
|
|
|
u8* GetCurrentColorTexture();
|
|
|
|
void SwapColorTexture();
|
2013-11-23 06:38:15 +01:00
|
|
|
void UpdateColorTexture(EfbInterface::yuv422_packed *xfb, u32 fbWidth, u32 fbHeight);
|
2010-06-09 03:37:08 +02:00
|
|
|
|
2013-08-20 13:51:39 +02:00
|
|
|
void Swap(u32 fbWidth, u32 fbHeight);
|
2010-06-09 03:37:08 +02:00
|
|
|
}
|