Exemplo n.º 1
0
 public static bool GetVisible()
 {
     SDL.WindowFlags flags = (SDL.WindowFlags)SDL.GetWindowFlags(Game.WindowHandle);
     if (flags.HasFlag(SDL.WindowFlags.WINDOW_SHOWN))
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
 public static bool GetBorder()
 {
     SDL.WindowFlags flags = (SDL.WindowFlags)SDL.GetWindowFlags(Game.WindowHandle);
     if (flags.HasFlag(SDL.WindowFlags.WINDOW_BORDERLESS))
     {
         return(false);
     }
     return(true);
 }
Exemplo n.º 3
0
 public static ScreenMode GetScreenMode()
 {
     SDL.WindowFlags flags = (SDL.WindowFlags)SDL.GetWindowFlags(Game.WindowHandle);
     if (flags.HasFlag(SDL.WindowFlags.WINDOW_FULLSCREEN))
     {
         return(ScreenMode.Fullscreen);
     }
     else if (flags.HasFlag(SDL.WindowFlags.WINDOW_FULLSCREEN_DESKTOP))
     {
         return(ScreenMode.FakeFullscreen);
     }
     return(ScreenMode.Windowed);
 }