src/video/video_systems.hpp

Go to the documentation of this file.
00001 //  SuperTux
00002 //  Copyright (C) 2006 Matthias Braun <matze@braunis.de>
00003 //
00004 //  This program is free software: you can redistribute it and/or modify
00005 //  it under the terms of the GNU General Public License as published by
00006 //  the Free Software Foundation, either version 3 of the License, or
00007 //  (at your option) any later version.
00008 //
00009 //  This program is distributed in the hope that it will be useful,
00010 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 //  GNU General Public License for more details.
00013 //
00014 //  You should have received a copy of the GNU General Public License
00015 //  along with this program.  If not, see <http://www.gnu.org/licenses/>.
00016 
00017 #ifndef HEADER_SUPERTUX_VIDEO_VIDEO_SYSTEMS_HPP
00018 #define HEADER_SUPERTUX_VIDEO_VIDEO_SYSTEMS_HPP
00019 
00020 #include <config.h>
00021 
00022 #include <SDL.h>
00023 #include <string>
00024 
00025 #include "video/texture_ptr.hpp"
00026 
00027 class Renderer;
00028 class Lightmap;
00029 class Surface;
00030 class SurfaceData;
00031 
00032 class VideoSystem
00033 {
00034 public:
00035   enum Enum {
00036     AUTO_VIDEO,
00037     OPENGL,
00038     PURE_SDL,
00039     NUM_SYSTEMS
00040   };
00041 
00042 public:
00043   static Renderer* new_renderer();
00044   static Lightmap* new_lightmap();
00045   static TexturePtr   new_texture(SDL_Surface *image);
00046   static SurfaceData* new_surface_data(const Surface &surface);
00047   static void      free_surface_data(SurfaceData* surface_data);
00048 
00049   static Enum get_video_system(const std::string &video);
00050   static std::string get_video_string(Enum video);
00051 
00052 private:
00053   VideoSystem();
00054   VideoSystem(const VideoSystem&);
00055   VideoSystem& operator=(const VideoSystem&);
00056 };
00057 
00058 #endif
00059 
00060 /* EOF */

Generated on Mon Jun 9 03:38:24 2014 for SuperTux by  doxygen 1.5.1