Blender V2.61 - r43446

GHOST_DisplayManagerSDL.h

Go to the documentation of this file.
00001 /*
00002  * ***** BEGIN GPL LICENSE BLOCK *****
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (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, write to the Free Software Foundation,
00016  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  *
00018  * Contributor(s): Campbell Barton
00019  *
00020  * ***** END GPL LICENSE BLOCK *****
00021  */
00022 
00028 #ifndef _GHOST_DISPLAY_MANAGER_SDL_H_
00029 #define _GHOST_DISPLAY_MANAGER_SDL_H_
00030 
00031 #include "GHOST_DisplayManager.h"
00032 
00033 extern "C" {
00034     #include "SDL.h"
00035 }
00036 
00037 #if !SDL_VERSION_ATLEAST(1, 3, 0)
00038 #  error "SDL 1.3 or newer is needed to build with Ghost"
00039 #endif
00040 
00041 class GHOST_SystemSDL;
00042 
00043 class GHOST_DisplayManagerSDL : public GHOST_DisplayManager
00044 {
00045 public:
00046     GHOST_DisplayManagerSDL(GHOST_SystemSDL *system);
00047 
00048     GHOST_TSuccess
00049     getNumDisplays(GHOST_TUns8& numDisplays) const;
00050 
00051     GHOST_TSuccess
00052     getNumDisplaySettings(GHOST_TUns8 display,
00053                           GHOST_TInt32& numSettings) const;
00054 
00055     GHOST_TSuccess
00056     getDisplaySetting(GHOST_TUns8 display,
00057                       GHOST_TInt32 index,
00058                       GHOST_DisplaySetting& setting) const;
00059 
00060     GHOST_TSuccess
00061     getCurrentDisplaySetting(GHOST_TUns8 display,
00062                              GHOST_DisplaySetting& setting) const;
00063 
00064     GHOST_TSuccess
00065     setCurrentDisplaySetting(GHOST_TUns8 display,
00066                              const GHOST_DisplaySetting& setting);
00067 
00068 private :
00069     GHOST_SystemSDL * m_system;
00070 };
00071 
00072 #endif /* _GHOST_DISPLAY_MANAGER_SDL_H_ */