BoboQuest's picture

Fit/Stretch everything in the window

I am using OpenTK in visual studio 2012. I have placed an OpenTK.GLControl inside of a C# form. I have used example code to adjust the window on resize as seen below -

public void Resize(Rectangle clientRect)
GL.Ortho(clientRect.Left, clientRect.Right,
clientRect.Bottom, clientRect.Top, -1.0, 1.0);

When I run my project, I have lines drawn and the lines are extending beyond the visible area of the window. Is it possible to stretch everything inside of the window to fit the dimensions of the GLControl?