Remove properties that are no longer relevant or used.

This commit is contained in:
Jarl Gullberg 2017-09-15 12:39:47 +02:00
parent 649cce05f7
commit 6a40207b9f
No known key found for this signature in database
GPG key ID: FBB69BD7CAE095A0

View file

@ -28,42 +28,6 @@ namespace OpenTK
private IWindowInfo _WindowInfo; private IWindowInfo _WindowInfo;
private bool _Initialized = false; private bool _Initialized = false;
/// <summary>
/// Use a single buffer versus a double buffer.
/// </summary>
[Browsable(true)]
public bool SingleBuffer { get; set; }
/// <summary>
/// Color Buffer Bits-Per-Pixel
/// </summary>
public int ColorBPP { get; set; }
/// <summary>
/// Accumulation Buffer Bits-Per-Pixel
/// </summary>
public int AccumulatorBPP { get; set; }
/// <summary>
/// Depth Buffer Bits-Per-Pixel
/// </summary>
public int DepthBPP { get; set; }
/// <summary>
/// Stencil Buffer Bits-Per-Pixel
/// </summary>
public int StencilBPP { get; set; }
/// <summary>
/// Number of samples
/// </summary>
public int Samples { get; set; }
/// <summary>
/// Indicates if steropic renderering is enabled
/// </summary>
public bool Stereo { get; set; }
/// <summary> /// <summary>
/// The set <see cref="GraphicsContextFlags"/> for this widget. /// The set <see cref="GraphicsContextFlags"/> for this widget.
/// </summary> /// </summary>
@ -96,14 +60,6 @@ namespace OpenTK
{ {
this.DoubleBuffered = false; this.DoubleBuffered = false;
SingleBuffer = graphicsMode.Buffers == 1;
ColorBPP = graphicsMode.ColorFormat.BitsPerPixel;
AccumulatorBPP = graphicsMode.AccumulatorFormat.BitsPerPixel;
DepthBPP = graphicsMode.Depth;
StencilBPP = graphicsMode.Stencil;
Samples = graphicsMode.Samples;
Stereo = graphicsMode.Stereo;
GraphicsContextFlags = graphicsContextFlags; GraphicsContextFlags = graphicsContextFlags;
SetRequiredVersion(glVersionMajor, glVersionMinor); SetRequiredVersion(glVersionMajor, glVersionMinor);
@ -335,29 +291,6 @@ namespace OpenTK
{ {
_Initialized = true; _Initialized = true;
// If this looks uninitialized... initialize.
if (ColorBPP == 0)
{
ColorBPP = 32;
if (DepthBPP == 0)
{
DepthBPP = 16;
}
}
ColorFormat colorBufferColorFormat = new ColorFormat(ColorBPP);
ColorFormat accumulationColorFormat = new ColorFormat(AccumulatorBPP);
int buffers = 2;
if (SingleBuffer)
{
buffers--;
}
GraphicsMode graphicsMode = new GraphicsMode(colorBufferColorFormat, DepthBPP, StencilBPP, Samples, accumulationColorFormat, buffers, Stereo);
if (Configuration.RunningOnWindows) if (Configuration.RunningOnWindows)
{ {
Console.WriteLine("OpenTK running on windows"); Console.WriteLine("OpenTK running on windows");