Ejemplo n.º 1
0
 public static void ResetState()
 {
     last = null;
     stateCache.Viewport = null;
     //  No meaningfull GL.Viewport() call to make;
     //  Will be set to something anyway when something is drawn.
 }
Ejemplo n.º 2
0
 public override void Execute()
 {
     if (last == this)
     {
         return;
     }
     if (stateCache.Viewport != Viewport)
     {
         GL.Viewport(
             Viewport.X,
             Viewport.Y,
             Viewport.Width,
             Viewport.Height
             );
         stateCache.Viewport = Viewport;
     }
     last = this;
 }