[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r4059 - trunk/pingus/src/pingus
From: |
grumbel at BerliOS |
Subject: |
[Pingus-CVS] r4059 - trunk/pingus/src/pingus |
Date: |
Fri, 6 Nov 2009 20:18:52 +0100 |
Author: grumbel
Date: 2009-11-06 20:18:51 +0100 (Fri, 06 Nov 2009)
New Revision: 4059
Removed:
trunk/pingus/src/pingus/graphic_context_state.hpp
Log:
Moved GraphicContextState to engine/display/
Deleted: trunk/pingus/src/pingus/graphic_context_state.hpp
===================================================================
--- trunk/pingus/src/pingus/graphic_context_state.hpp 2009-11-06 16:01:42 UTC
(rev 4058)
+++ trunk/pingus/src/pingus/graphic_context_state.hpp 2009-11-06 19:18:51 UTC
(rev 4059)
@@ -1,73 +0,0 @@
- // Pingus - A free Lemmings clone
-// Copyright (C) 2004 Ingo Ruhnke <address@hidden>
-//
-// 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
-// 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, see <http://www.gnu.org/licenses/>.
-
-#ifndef HEADER_PINGUS_PINGUS_GRAPHIC_CONTEXT_STATE_HPP
-#define HEADER_PINGUS_PINGUS_GRAPHIC_CONTEXT_STATE_HPP
-
-#include <boost/shared_ptr.hpp>
-#include "math/rect.hpp"
-#include "math/vector3f.hpp"
-#include "math/vector2i.hpp"
-#include "math/vector2f.hpp"
-#include "engine/display/drawing_context.hpp"
-#include "engine/display/scene_context.hpp"
-
-class GraphicContextStateImpl;
-
-/** Helper class for capturing the state of a GraphicContext, with
- additional convenience functions to make handling GraphicContexts
- easier */
-class GraphicContextState
-{
-public:
- GraphicContextState();
- GraphicContextState(int w, int h);
- GraphicContextState(const Rect& rect);
-
- /** Limit the graphic context to the given limits rectangle, meaning
- that no point of the current visible region will be outside the
- limit */
- void set_limit(const Rect& limit);
- void set_unlimited();
-
- void set_size(int w, int h);
-
- void push(DrawingContext& gc);
- void pop (DrawingContext& gc);
-
- void push(SceneContext& gc);
- void pop (SceneContext& gc);
-
- /** Return a rectangle in world coordinates that represents the area
- visible on the screen */
- Rect get_clip_rect();
-
- int get_width() const;
- int get_height() const;
-
- /** Move the center of the visible area to pos */
- void set_pos(const Vector2i& pos);
- Vector2i get_pos() const;
-
- Vector2i screen2world(const Vector2i& pos) const;
-
-private:
- boost::shared_ptr<GraphicContextStateImpl> impl;
-};
-
-#endif
-
-/* EOF */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r4059 - trunk/pingus/src/pingus,
grumbel at BerliOS <=