1// SuperTux
2// Copyright (C) 2018 Ingo Ruhnke <grumbel@gmail.com>
3//
4// This program is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17#include "video/null/null_renderer.hpp"
18
19#include "util/log.hpp"
20#include "video/null/null_painter.hpp"
21
22NullRenderer::NullRenderer() :
23 m_painter(new NullPainter)
24{
25}
26
27NullRenderer::~NullRenderer()
28{
29}
30
31void
32NullRenderer::start_draw()
33{
34 log_info << "NullRenderer::start_draw()" << std::endl;
35}
36
37void
38NullRenderer::end_draw()
39{
40 log_info << "NullRenderer::end_draw()" << std::endl;
41}
42
43Painter&
44NullRenderer::get_painter()
45{
46 return *m_painter;
47}
48
49Rect
50NullRenderer::get_rect() const
51{
52 return Rect();
53}
54
55Size
56NullRenderer::get_logical_size() const
57{
58 return Size();
59}
60
61TexturePtr
62NullRenderer::get_texture() const
63{
64 return {};
65}
66
67/* EOF */
68