|
Blender
V2.59
|
00001 /* 00002 * $Id: GHOST_DisplayManagerSDL.h 38349 2011-07-13 00:49:22Z gsrb3d $ 00003 * ***** BEGIN GPL LICENSE BLOCK ***** 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software Foundation, 00017 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00018 * 00019 * Contributor(s): Campbell Barton 00020 * 00021 * ***** END GPL LICENSE BLOCK ***** 00022 */ 00023 00029 #ifndef _GHOST_DISPLAY_MANAGER_SDL_H_ 00030 #define _GHOST_DISPLAY_MANAGER_SDL_H_ 00031 00032 #include "GHOST_DisplayManager.h" 00033 00034 extern "C" { 00035 #include "SDL.h" 00036 } 00037 00038 #if !SDL_VERSION_ATLEAST(1, 3, 0) 00039 # error "SDL 1.3 or newer is needed to build with Ghost" 00040 #endif 00041 00042 class GHOST_SystemSDL; 00043 00044 class GHOST_DisplayManagerSDL : public GHOST_DisplayManager 00045 { 00046 public: 00047 GHOST_DisplayManagerSDL(GHOST_SystemSDL *system); 00048 00049 GHOST_TSuccess 00050 getNumDisplays(GHOST_TUns8& numDisplays); 00051 00052 GHOST_TSuccess 00053 getNumDisplaySettings(GHOST_TUns8 display, 00054 GHOST_TInt32& numSettings); 00055 00056 GHOST_TSuccess 00057 getDisplaySetting(GHOST_TUns8 display, 00058 GHOST_TInt32 index, 00059 GHOST_DisplaySetting& setting); 00060 00061 GHOST_TSuccess 00062 getCurrentDisplaySetting(GHOST_TUns8 display, 00063 GHOST_DisplaySetting& setting); 00064 00065 GHOST_TSuccess 00066 setCurrentDisplaySetting(GHOST_TUns8 display, 00067 const GHOST_DisplaySetting& setting); 00068 00069 private : 00070 GHOST_SystemSDL * m_system; 00071 }; 00072 00073 #endif /* _GHOST_DISPLAY_MANAGER_SDL_H_ */