public static extern Int32 GetWindowDisplayMode(IntPtr window, SDL_DisplayMode* mode);
public static extern SDL_DisplayMode* GetClosestDisplayMode(Int32 displayIndex, SDL_DisplayMode* mode, SDL_DisplayMode* closest);
public static extern Int32 GetDesktopDisplayMode(Int32 displayIndex, SDL_DisplayMode* mode);
public static extern Int32 GetCurrentDisplayMode(Int32 displayIndex, SDL_DisplayMode* mode);
public static extern Int32 GetDisplayMode(Int32 displayIndex, Int32 modeIndex, SDL_DisplayMode* mode);
/// <summary> /// Creates an Ultraviolet DisplayMode object from the specified SDL2 display mode. /// </summary> private DisplayMode CreateDisplayModeFromSDL(SDL_DisplayMode mode) { Int32 bpp; UInt32 Rmask, Gmask, Bmask, Amask; SDL.PixelFormatEnumToMasks((uint)mode.format, &bpp, &Rmask, &Gmask, &Bmask, &Amask); return new DisplayMode(mode.w, mode.h, bpp, mode.refresh_rate, Index); }