Added the trunk/branches/tags directories at repository root, and moved previous root into trunk/
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1002 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
commit
2f524481c1
974 changed files with 295448 additions and 0 deletions
55
dotnet/src/Window/VideoMode.cs
Normal file
55
dotnet/src/Window/VideoMode.cs
Normal file
|
@ -0,0 +1,55 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace SFML
|
||||
{
|
||||
namespace Window
|
||||
{
|
||||
////////////////////////////////////////////////////////////
|
||||
/// <summary>
|
||||
/// VideoMode defines a video mode (width, height, bpp, frequency)
|
||||
/// and provides static functions for getting modes supported
|
||||
/// by the display device
|
||||
/// </summary>
|
||||
////////////////////////////////////////////////////////////
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct VideoMode
|
||||
{
|
||||
////////////////////////////////////////////////////////////
|
||||
/// <summary>
|
||||
/// Construct the video mode with its width and height
|
||||
/// </summary>
|
||||
/// <param name="width">Video mode width</param>
|
||||
/// <param name="height">Video mode height</param>
|
||||
////////////////////////////////////////////////////////////
|
||||
public VideoMode(uint width, uint height) :
|
||||
this(width, height, 32)
|
||||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// <summary>
|
||||
/// Construct the video mode with its width, height and depth
|
||||
/// </summary>
|
||||
/// <param name="width">Video mode width</param>
|
||||
/// <param name="height">Video mode height</param>
|
||||
/// <param name="bpp">Video mode depth (bits per pixel)</param>
|
||||
////////////////////////////////////////////////////////////
|
||||
public VideoMode(uint width, uint height, uint bpp)
|
||||
{
|
||||
Width = width;
|
||||
Height = height;
|
||||
BitsPerPixel = bpp;
|
||||
}
|
||||
|
||||
/// <summary>Video mode width, in pixels</summary>
|
||||
public uint Width;
|
||||
|
||||
/// <summary>Video mode height, in pixels</summary>
|
||||
public uint Height;
|
||||
|
||||
/// <summary>Video mode depth, in bits per pixel</summary>
|
||||
public uint BitsPerPixel;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue