Beispiel #1
0
        public MGLShader(double width, double height)
        {
            // update window size
            _windowSize  = new MSize2D(width, height);
            _aspectRatio = _windowSize.Width / _windowSize.Height;

            Reset();
        }
Beispiel #2
0
 public MGLShader(MSize2D windowSize)
     : this(windowSize.Width, windowSize.Height)
 {
 }