Exemplo n.º 1
0
 /// <summary>
 /// Set the window size
 /// </summary>
 /// <param name="fullScreen">Set if window should be fullscreen</param>
 /// <param name="width">if 0 set to primary monitor width</param>
 /// <param name="height">if 0 set to primary monitor height</param>
 public void SetWindowSize(bool fullScreen, int width = 0, int height = 0)
 {
     window.SetSize(fullScreen, width, height);
     Gl.Viewport(0, 0, window.Width, window.Height);
     Shader.SetUniformsM4("pr_matrix", Matrix4f.Orthogonal(window.Width, 0, window.Height, 0, -1.0f, 1.0f));
 }