using System; using System.Runtime.InteropServices; namespace SFML { namespace Window { //////////////////////////////////////////////////////////// /// /// Structure defining the creation settings of windows /// //////////////////////////////////////////////////////////// [StructLayout(LayoutKind.Sequential)] public struct WindowSettings { //////////////////////////////////////////////////////////// /// /// Construct the settings from depth / stencil bits /// /// Depth buffer bits /// Stencil buffer bits //////////////////////////////////////////////////////////// public WindowSettings(uint depthBits, uint stencilBits) : this(depthBits, stencilBits, 0) { } //////////////////////////////////////////////////////////// /// /// Construct the settings from depth / stencil bits and antialiasing level /// /// Depth buffer bits /// Stencil buffer bits /// Antialiasing level //////////////////////////////////////////////////////////// public WindowSettings(uint depthBits, uint stencilBits, uint antialiasingLevel) { DepthBits = depthBits; StencilBits = stencilBits; AntialiasingLevel = antialiasingLevel; } /// Depth buffer bits (0 is disabled) public uint DepthBits; /// Stencil buffer bits (0 is disabled) public uint StencilBits; /// Antialiasing level (0 is disabled) public uint AntialiasingLevel; } } }