// $Id$
-//
+//
// SuperTux
-// Copyright (C) 2005 Matthias Braun <matze@braunis.de>
+// Copyright (C) 2006 Matthias Braun <matze@braunis.de>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// 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
#include <string>
+class Color;
+class Blend;
class ImageTexture;
/// bitset for drawing effects
};
/**
- * 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
{
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,
/** 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);