using System;
using System.Runtime.InteropServices;
namespace SFML
{
namespace Window
{
////////////////////////////////////////////////////////////
///
/// VideoMode defines a video mode (width, height, bpp, frequency)
/// and provides static functions for getting modes supported
/// by the display device
///
////////////////////////////////////////////////////////////
[StructLayout(LayoutKind.Sequential)]
public struct VideoMode
{
////////////////////////////////////////////////////////////
///
/// Construct the video mode with its width and height
///
/// Video mode width
/// Video mode height
////////////////////////////////////////////////////////////
public VideoMode(uint width, uint height) :
this(width, height, 32)
{
}
////////////////////////////////////////////////////////////
///
/// Construct the video mode with its width, height and depth
///
/// Video mode width
/// Video mode height
/// Video mode depth (bits per pixel)
////////////////////////////////////////////////////////////
public VideoMode(uint width, uint height, uint bpp)
{
Width = width;
Height = height;
BitsPerPixel = bpp;
}
/// Video mode width, in pixels
public uint Width;
/// Video mode height, in pixels
public uint Height;
/// Video mode depth, in bits per pixel
public uint BitsPerPixel;
}
}
}