Exemplo n.º 1
0
 public override void SetViewport(Size viewportSize)
 {
     if (Settings.Current.StartInFullscreen)
     {
         if (!TryChangeResolution(viewportSize))
         {
             throw new ResolutionRequestFailedCouldNotFindResolution(viewportSize);
         }
     }
     GLCore.Viewport(0, 0, (int)viewportSize.Width, (int)viewportSize.Height);
     SetModelViewProjectionMatrixFor2D();
 }