Blender  V2.93
GHOST_DisplayManagerSDL.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
22 #pragma once
23 
24 #include "GHOST_DisplayManager.h"
25 
26 extern "C" {
27 #include "SDL.h"
28 }
29 
30 #if !SDL_VERSION_ATLEAST(2, 0, 0)
31 # error "SDL 2.0 or newer is needed to build with Ghost"
32 #endif
33 
34 class GHOST_SystemSDL;
35 
37  public:
39 
40  GHOST_TSuccess getNumDisplays(GHOST_TUns8 &numDisplays) const;
41 
42  GHOST_TSuccess getNumDisplaySettings(GHOST_TUns8 display, GHOST_TInt32 &numSettings) const;
43 
45  GHOST_TInt32 index,
46  GHOST_DisplaySetting &setting) const;
47 
49  GHOST_DisplaySetting &setting) const;
50 
51  GHOST_TSuccess getCurrentDisplayModeSDL(SDL_DisplayMode &mode) const;
52 
54  const GHOST_DisplaySetting &setting);
55 
56  private:
57  GHOST_SystemSDL *m_system;
58  SDL_DisplayMode m_mode;
59 };
int GHOST_TInt32
Definition: GHOST_Types.h:63
GHOST_TSuccess
Definition: GHOST_Types.h:91
unsigned char GHOST_TUns8
Definition: GHOST_Types.h:60
GHOST_TSuccess getDisplaySetting(GHOST_TUns8 display, GHOST_TInt32 index, GHOST_DisplaySetting &setting) const
GHOST_TSuccess getNumDisplays(GHOST_TUns8 &numDisplays) const
GHOST_TSuccess getCurrentDisplayModeSDL(SDL_DisplayMode &mode) const
GHOST_TSuccess getCurrentDisplaySetting(GHOST_TUns8 display, GHOST_DisplaySetting &setting) const
GHOST_TSuccess setCurrentDisplaySetting(GHOST_TUns8 display, const GHOST_DisplaySetting &setting)
GHOST_TSuccess getNumDisplaySettings(GHOST_TUns8 display, GHOST_TInt32 &numSettings) const
GHOST_DisplayManagerSDL(GHOST_SystemSDL *system)