示例#1
0
 public override void Apply(RenderTargetI renderTarget)
 {
     #if SILVERLIGHT
     try {
     #endif
     var viewPort = new Microsoft.Xna.Framework.Graphics.Viewport()
     {
         X = Position.X,
         Y = renderTarget.Size.Height - Size.Height - Position.Y,
         Width = Size.Width,
         Height = Size.Height,
         MinDepth = 0,
         MaxDepth = 1
     };
     video.Device.Viewport = viewPort;
     #if SILVERLIGHT
     } catch {}
     #endif
 }
示例#2
0
        public override void Apply(RenderTargetI renderTarget)
        {
                        #if SILVERLIGHT
            try {
                        #endif
            var viewPort = new Microsoft.Xna.Framework.Graphics.Viewport()
            {
                X        = Position.X,
                Y        = renderTarget.Size.Height - Size.Height - Position.Y,
                Width    = Size.Width,
                Height   = Size.Height,
                MinDepth = 0,
                MaxDepth = 1
            };
            video.Device.Viewport = viewPort;
                        #if SILVERLIGHT
        }

        catch {}
                        #endif
        }
示例#3
0
 public override void Apply(RenderTargetI renderTarget)
 {
     video.context.SetViewport(Location.X, Location.Y, Size.Width, Size.Height);
 }
示例#4
0
 public override void Apply(RenderTargetI renderTarget)
 {
     video.context.SetViewport(Location.X, Location.Y, Size.Width, Size.Height);
 }