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
53
dotnet/src/Window/WindowSettings.cs
Normal file
53
dotnet/src/Window/WindowSettings.cs
Normal file
|
@ -0,0 +1,53 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace SFML
|
||||
{
|
||||
namespace Window
|
||||
{
|
||||
////////////////////////////////////////////////////////////
|
||||
/// <summary>
|
||||
/// Structure defining the creation settings of windows
|
||||
/// </summary>
|
||||
////////////////////////////////////////////////////////////
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct WindowSettings
|
||||
{
|
||||
////////////////////////////////////////////////////////////
|
||||
/// <summary>
|
||||
/// Construct the settings from depth / stencil bits
|
||||
/// </summary>
|
||||
/// <param name="depthBits">Depth buffer bits</param>
|
||||
/// <param name="stencilBits">Stencil buffer bits</param>
|
||||
////////////////////////////////////////////////////////////
|
||||
public WindowSettings(uint depthBits, uint stencilBits) :
|
||||
this(depthBits, stencilBits, 0)
|
||||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// <summary>
|
||||
/// Construct the settings from depth / stencil bits and antialiasing level
|
||||
/// </summary>
|
||||
/// <param name="depthBits">Depth buffer bits</param>
|
||||
/// <param name="stencilBits">Stencil buffer bits</param>
|
||||
/// <param name="antialiasingLevel">Antialiasing level</param>
|
||||
////////////////////////////////////////////////////////////
|
||||
public WindowSettings(uint depthBits, uint stencilBits, uint antialiasingLevel)
|
||||
{
|
||||
DepthBits = depthBits;
|
||||
StencilBits = stencilBits;
|
||||
AntialiasingLevel = antialiasingLevel;
|
||||
}
|
||||
|
||||
/// <summary>Depth buffer bits (0 is disabled)</summary>
|
||||
public uint DepthBits;
|
||||
|
||||
/// <summary>Stencil buffer bits (0 is disabled)</summary>
|
||||
public uint StencilBits;
|
||||
|
||||
/// <summary>Antialiasing level (0 is disabled)</summary>
|
||||
public uint AntialiasingLevel;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue