private void VisHost_Resize(ResizeEventArgs e) { GL.Viewport(0, 0, e.Width, e.Height); components.Resize(e.Width, e.Height); SetProjection(e.Size); //SetProjection(new Vector2i(e.Width, e.Height)); //components.Resize(e.Width, e.Height); }
private void TestBench_Resize(ResizeEventArgs e) { GL.Viewport(0, 0, e.Width, e.Height); components.Resize(e.Width, e.Height); }
private void ParticleTestBench_Resize(object sender, EventArgs e) { GL.Viewport(ClientRectangle); components.Resize(ClientRectangle.Width, ClientRectangle.Height); }