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