X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fvideo%2Fsurface.hpp;h=650f931694388e7bc09cbb323ba6a94c39070b25;hb=5fce9cfaf7f90280e86e15b1595f111e645f7343;hp=a5ba955582a1b3fcc303dda9104e4fa221336bfc;hpb=86181b0a14d89cf45daf97199c3556c4dd1ee7b7;p=supertux.git diff --git a/src/video/surface.hpp b/src/video/surface.hpp index a5ba95558..650f93169 100644 --- a/src/video/surface.hpp +++ b/src/video/surface.hpp @@ -1,7 +1,7 @@ // $Id$ -// +// // SuperTux -// Copyright (C) 2005 Matthias Braun +// Copyright (C) 2006 Matthias Braun // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -12,7 +12,7 @@ // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA @@ -22,6 +22,8 @@ #include +class Color; +class Blend; class ImageTexture; /// bitset for drawing effects @@ -35,8 +37,9 @@ enum DrawingEffect { }; /** - * Container class that holds a surface, necessary so that we can - * reload Surface implementations on the fly + * A rectangular image. + * The class basically holds a reference to a texture with additional UV + * coordinates that specify a rectangular area on this texture */ class Surface { @@ -50,6 +53,7 @@ private: float uv_right; float uv_bottom; + void draw(float x, float y, float alpha, float angle, const Color& color, const Blend& blend, DrawingEffect effect) const; void draw(float x, float y, float alpha, DrawingEffect effect) const; void draw_part(float src_x, float src_y, float dst_x, float dst_y, float width, float height, @@ -65,9 +69,6 @@ public: /** flip the surface horizontally */ void hflip(); - - /** Reload the surface, which is necesarry in case of a mode swich */ - void reload(); const Surface& operator= (const Surface& other);