/* * \brief Sky texture interface * \date 2005-10-24 * \author Norman Feske */ /* * Copyright (C) 2005-2013 Genode Labs GmbH * * This file is part of the Genode OS framework, which is distributed * under the terms of the GNU General Public License version 2. */ #ifndef _SKY_TEXTURE_H_ #define _SKY_TEXTURE_H_ #include #include "widgets.h" #include "config.h" namespace Scout { template class Sky_texture; } /** * \param PT pixel type (compatible to Pixel_rgba) * \param TW tile width * \param TH tile height */ template class Scout::Sky_texture : public Element { private: Sky_texture_painter::Static_sky_texture _sky_texture; public: void draw(Canvas_base &canvas, Point abs_position) { canvas.draw_sky_texture(abs_position.y(), _sky_texture, Config::background_detail); } }; #endif /* _SKY_TEXTURE_H_ */