Sharplike.Frontend.Rendering.TKWindow.TKWindow_Resize C# (CSharp) Méthode

TKWindow_Resize() private méthode

private TKWindow_Resize ( ) : void
Résultat void
        void TKWindow_Resize()
        {
            GL.Viewport(0, 0, Control.ClientSize.Width, Control.ClientSize.Height);
            GL.MatrixMode(MatrixMode.Projection);
            GL.LoadIdentity();
            GL.Ortho(0, WindowSize.Width, WindowSize.Height, 0, 0, 1);
        }