X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fvideo%2Fdrawing_context.hpp;h=a8b7fc400d018c4fabf04c25afd3a8f0edeae644;hb=08813a74da6ac1fd045a105e4e8105f1d7f716f0;hp=5f392ef0e7bfda86fbb5212d2d0dcb0cdcf29c13;hpb=f406067af6cbeb0a638078fe1d386d092583909c;p=supertux.git diff --git a/src/video/drawing_context.hpp b/src/video/drawing_context.hpp index 5f392ef0e..a8b7fc400 100644 --- a/src/video/drawing_context.hpp +++ b/src/video/drawing_context.hpp @@ -1,12 +1,10 @@ -// $Id$ -// // SuperTux // 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 -// as published by the Free Software Foundation; either version 2 -// of the License, or (at your option) any later version. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -14,23 +12,24 @@ // 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 02111-1307, USA. -#ifndef SUPERTUX_DRAWINGCONTEXT_H -#define SUPERTUX_DRAWINGCONTEXT_H +// along with this program. If not, see . + +#ifndef HEADER_SUPERTUX_VIDEO_DRAWING_CONTEXT_HPP +#define HEADER_SUPERTUX_VIDEO_DRAWING_CONTEXT_HPP -#include -#include #include +#include +#include #include -#include "obstack/obstack.h" -#include "math/vector.hpp" #include "math/rect.hpp" -#include "color.hpp" -#include "font.hpp" -#include "drawing_request.hpp" +#include "math/vector.hpp" +#include "obstack/obstack.h" +#include "video/color.hpp" +#include "video/drawing_request.hpp" +#include "video/font.hpp" +#include "video/texture.hpp" class Surface; class Texture; @@ -124,8 +123,10 @@ private: DrawingEffect drawing_effect; float alpha; - Transform() - : drawing_effect(NO_EFFECT), alpha(1.0f) + Transform() : + translation(), + drawing_effect(NO_EFFECT), + alpha(1.0f) { } Vector apply(const Vector& v) const @@ -162,7 +163,12 @@ private: struct obstack obst; bool screenshot_requested; /**< true if a screenshot should be taken after the next frame has been rendered */ + +private: + DrawingContext(const DrawingContext&); + DrawingContext& operator=(const DrawingContext&); }; #endif +/* EOF */