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