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 | |
22 | NullRenderer::NullRenderer() : |
23 | m_painter(new NullPainter) |
24 | { |
25 | } |
26 | |
27 | NullRenderer::~NullRenderer() |
28 | { |
29 | } |
30 | |
31 | void |
32 | NullRenderer::start_draw() |
33 | { |
34 | log_info << "NullRenderer::start_draw()" << std::endl; |
35 | } |
36 | |
37 | void |
38 | NullRenderer::end_draw() |
39 | { |
40 | log_info << "NullRenderer::end_draw()" << std::endl; |
41 | } |
42 | |
43 | Painter& |
44 | NullRenderer::get_painter() |
45 | { |
46 | return *m_painter; |
47 | } |
48 | |
49 | Rect |
50 | NullRenderer::get_rect() const |
51 | { |
52 | return Rect(); |
53 | } |
54 | |
55 | Size |
56 | NullRenderer::get_logical_size() const |
57 | { |
58 | return Size(); |
59 | } |
60 | |
61 | TexturePtr |
62 | NullRenderer::get_texture() const |
63 | { |
64 | return {}; |
65 | } |
66 | |
67 | /* EOF */ |
68 | |