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_painter.hpp"
18
19#include "util/log.hpp"
20
21NullPainter::NullPainter() :
22 m_clip_rect()
23{
24}
25
26NullPainter::~NullPainter()
27{
28}
29
30void
31NullPainter::draw_texture(const TextureRequest& request)
32{
33 log_info << "NullPainter::draw_texture()" << std::endl;
34}
35
36void
37NullPainter::draw_gradient(const GradientRequest& request)
38{
39 log_info << "NullPainter::draw_gradient()" << std::endl;
40}
41
42void
43NullPainter::draw_filled_rect(const FillRectRequest& request)
44{
45 log_info << "NullPainter::draw_filled_rect()" << std::endl;
46}
47
48void
49NullPainter::draw_inverse_ellipse(const InverseEllipseRequest& request)
50{
51 log_info << "NullPainter::draw_inverse_ellipse()" << std::endl;
52}
53
54void
55NullPainter::draw_line(const LineRequest& request)
56{
57 log_info << "NullPainter::draw_line()" << std::endl;
58}
59
60void
61NullPainter::draw_triangle(const TriangleRequest& request)
62{
63 log_info << "NullPainter::draw_triangle()" << std::endl;
64}
65
66
67void
68NullPainter::clear(const Color& color)
69{
70 log_info << "NullPainter::clear()" << std::endl;
71}
72
73void
74NullPainter::get_pixel(const GetPixelRequest& request) const
75{
76 log_info << "NullPainter::get_pixel()" << std::endl;
77}
78
79void
80NullPainter::set_clip_rect(const Rect& rect)
81{
82 log_info << "NullPainter::set_clip_rect()" << std::endl;
83 m_clip_rect = rect;
84}
85
86void
87NullPainter::clear_clip_rect()
88{
89 log_info << "NullPainter::clear_clip_rect()" << std::endl;
90 m_clip_rect = boost::none;
91}
92
93/* EOF */
94