From 6a40207b9fa230b0d212f81efb2e6e15e4aa4533 Mon Sep 17 00:00:00 2001 From: Jarl Gullberg Date: Fri, 15 Sep 2017 12:39:47 +0200 Subject: [PATCH] Remove properties that are no longer relevant or used. --- src/OpenTK.GLWidget/GLWidget.cs | 67 --------------------------------- 1 file changed, 67 deletions(-) diff --git a/src/OpenTK.GLWidget/GLWidget.cs b/src/OpenTK.GLWidget/GLWidget.cs index dbae8dae..2bc1dd9b 100644 --- a/src/OpenTK.GLWidget/GLWidget.cs +++ b/src/OpenTK.GLWidget/GLWidget.cs @@ -28,42 +28,6 @@ namespace OpenTK private IWindowInfo _WindowInfo; private bool _Initialized = false; - /// - /// Use a single buffer versus a double buffer. - /// - [Browsable(true)] - public bool SingleBuffer { get; set; } - - /// - /// Color Buffer Bits-Per-Pixel - /// - public int ColorBPP { get; set; } - - /// - /// Accumulation Buffer Bits-Per-Pixel - /// - public int AccumulatorBPP { get; set; } - - /// - /// Depth Buffer Bits-Per-Pixel - /// - public int DepthBPP { get; set; } - - /// - /// Stencil Buffer Bits-Per-Pixel - /// - public int StencilBPP { get; set; } - - /// - /// Number of samples - /// - public int Samples { get; set; } - - /// - /// Indicates if steropic renderering is enabled - /// - public bool Stereo { get; set; } - /// /// The set for this widget. /// @@ -96,14 +60,6 @@ namespace OpenTK { 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; SetRequiredVersion(glVersionMajor, glVersionMinor); @@ -335,29 +291,6 @@ namespace OpenTK { _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) { Console.WriteLine("OpenTK running on windows");