Mondschein Engine  0.3.0
sdl_types.h
Go to the documentation of this file.
1 #ifndef SDL_TYPES_H_INCLUDED
2 #define SDL_TYPES_H_INCLUDED
3 
4 /* Mondschein Engine is a fast, powerful, and easy-to-use 3D realtime rendering engine.
5  *
6  * Copyright (C) 2009-2013 by Andreas Amereller
7  * E-Mail: andreas.amereller.dev@googlemail.com
8  *
9  * This program is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU General Public License as published by the Free
11  * Software Foundation; either version 3 of the License, or (at your option)
12  * any later version.
13  *
14  * This program is distributed in the hope that it will be useful, but WITHOUT
15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17  * more details.
18  *
19  * You should have received a copy of the GNU General Public License along
20  * with this program; if not, write to the Free Software Foundation, Inc.,
21  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  */
24 
25 
26 #include "types.h"
27 namespace mondschein
28 {
29  namespace display
30  {
31  class SDL_Visual;
32  typedef boost::shared_ptr<SDL_Visual> SDL_Visual_p;
33  typedef boost::shared_ptr<const SDL_Visual> SDL_Visual_c;
34  }
42  {
43  protected:
44  SDL_Factory();
45  virtual ~SDL_Factory();
46 
47  public:
55  static display::SDL_Visual_p create_sdl_visual();
85  static display::SDL_Visual_p create_sdl_visual(uint32 _w,uint32 _h,uint32 _bpp,bool _fs,
86  Eigen::Vector4i _cd,Eigen::Vector4i _ad,int32 _dbs,int32 _sbs,
87  bool _db,bool _init=false);
97  static display::SDL_Visual_p create_sdl_visual(display::SDL_Visual_c _v);
98  };
99 }
100 
101 #endif // SDL_TYPES_H_INCLUDED