pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] r3694 - trunk/pingus/src/display


From: grumbel at BerliOS
Subject: [Pingus-CVS] r3694 - trunk/pingus/src/display
Date: Sat, 5 Jul 2008 21:41:57 +0200

Author: grumbel
Date: 2008-07-05 21:41:57 +0200 (Sat, 05 Jul 2008)
New Revision: 3694

Removed:
   trunk/pingus/src/display/surface.cpp
   trunk/pingus/src/display/surface.hpp
Log:
Removed obsolete surface class

Deleted: trunk/pingus/src/display/surface.cpp
===================================================================
--- trunk/pingus/src/display/surface.cpp        2008-07-05 15:08:08 UTC (rev 
3693)
+++ trunk/pingus/src/display/surface.cpp        2008-07-05 19:41:57 UTC (rev 
3694)
@@ -1,53 +0,0 @@
-//  Pingus - A free Lemmings clone
-//  Copyright (C) 2005 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/>.
-
-#include "surface.hpp"
-
-class SurfaceImpl
-{
-public:
-  SDL_Surface* surface;
-};
-
-Surface::Surface(SDL_Surface* surface, bool delete_it = false)
-  : surface(surface_)
-{
-  
-}
-
-Surface::Surface(const std::string& filename)
-  : impl(new SurfaceImpl(filename))
-{
-  surface = IMG_Load(filename.c_str());
-  if (!surface)
-    {
-      std::cout << "Error: Couldn't load " << filename << std::endl;
-      surface = IMG_Load("data/images/core/misc/404.png");
-      assert(surface);
-    }
-}
-
-Surface::~Surface()
-{
-  
-}
-  
-Surface::operate bool() const
-{
-  return impl.get();
-}
-
-/* EOF */

Deleted: trunk/pingus/src/display/surface.hpp
===================================================================
--- trunk/pingus/src/display/surface.hpp        2008-07-05 15:08:08 UTC (rev 
3693)
+++ trunk/pingus/src/display/surface.hpp        2008-07-05 19:41:57 UTC (rev 
3694)
@@ -1,39 +0,0 @@
-//  Pingus - A free Lemmings clone
-//  Copyright (C) 2005 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_SURFACE_HPP
-#define HEADER_SURFACE_HPP
-
-class SurfaceImpl;
-
-/** */
-class Surface
-{
-private:
-public:
-  Surface();
-  Surface(SDL_Surface*, bool delete_it = false);
-  Surface(const std::string& filename);
-  ~Surface();
-  
-  operate bool() const;
-private:
-  SharedPtr<SurfaceImpl> impl;
-};
-
-#endif
-
-/* EOF */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]