2014-02-03 13:02:17 +00:00
|
|
|
// Copyright 2015 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#include "Common/Logging/Log.h"
|
|
|
|
|
|
|
|
#include "VideoBackends/Null/Render.h"
|
|
|
|
|
|
|
|
#include "VideoCommon/VideoConfig.h"
|
|
|
|
|
|
|
|
namespace Null
|
|
|
|
{
|
|
|
|
// Init functions
|
2017-03-04 06:40:08 +00:00
|
|
|
Renderer::Renderer() : ::Renderer(1, 1)
|
2014-02-03 13:02:17 +00:00
|
|
|
{
|
|
|
|
UpdateActiveConfig();
|
|
|
|
}
|
|
|
|
|
|
|
|
Renderer::~Renderer()
|
|
|
|
{
|
|
|
|
UpdateActiveConfig();
|
|
|
|
}
|
|
|
|
|
|
|
|
void Renderer::RenderText(const std::string& text, int left, int top, u32 color)
|
|
|
|
{
|
2016-11-02 01:19:00 +00:00
|
|
|
NOTICE_LOG(VIDEO, "RenderText: %s", text.c_str());
|
2014-02-03 13:02:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
TargetRectangle Renderer::ConvertEFBRectangle(const EFBRectangle& rc)
|
|
|
|
{
|
|
|
|
TargetRectangle result;
|
|
|
|
result.left = rc.left;
|
|
|
|
result.top = rc.top;
|
|
|
|
result.right = rc.right;
|
|
|
|
result.bottom = rc.bottom;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
2016-10-08 10:56:28 +00:00
|
|
|
void Renderer::SwapImpl(u32, u32, u32, u32, const EFBRectangle&, u64, float)
|
2014-02-03 13:02:17 +00:00
|
|
|
{
|
|
|
|
UpdateActiveConfig();
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Null
|