2014-02-03 06:02:17 -07:00
|
|
|
// Copyright 2015 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#include "Common/Logging/Log.h"
|
|
|
|
|
2017-09-30 00:25:36 -06:00
|
|
|
#include "VideoBackends/Null/NullTexture.h"
|
2014-02-03 06:02:17 -07:00
|
|
|
#include "VideoBackends/Null/Render.h"
|
|
|
|
|
|
|
|
#include "VideoCommon/VideoConfig.h"
|
|
|
|
|
|
|
|
namespace Null
|
|
|
|
{
|
|
|
|
// Init functions
|
2017-03-03 23:40:08 -07:00
|
|
|
Renderer::Renderer() : ::Renderer(1, 1)
|
2014-02-03 06:02:17 -07:00
|
|
|
{
|
|
|
|
UpdateActiveConfig();
|
|
|
|
}
|
|
|
|
|
|
|
|
Renderer::~Renderer()
|
|
|
|
{
|
|
|
|
UpdateActiveConfig();
|
|
|
|
}
|
|
|
|
|
2017-09-30 00:25:36 -06:00
|
|
|
std::unique_ptr<AbstractTexture> Renderer::CreateTexture(const TextureConfig& config)
|
|
|
|
{
|
|
|
|
return std::make_unique<NullTexture>(config);
|
|
|
|
}
|
|
|
|
|
2014-02-03 06:02:17 -07:00
|
|
|
void Renderer::RenderText(const std::string& text, int left, int top, u32 color)
|
|
|
|
{
|
2016-11-01 19:19:00 -06:00
|
|
|
NOTICE_LOG(VIDEO, "RenderText: %s", text.c_str());
|
2014-02-03 06:02:17 -07: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;
|
|
|
|
}
|
|
|
|
|
2017-05-29 16:02:09 -06:00
|
|
|
void Renderer::SwapImpl(AbstractTexture*, const EFBRectangle&, u64, float)
|
2014-02-03 06:02:17 -07:00
|
|
|
{
|
|
|
|
UpdateActiveConfig();
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Null
|