Exemplo n.º 1
0
        public Viewport(Viewpoint vp, Rectangle screenSpace, string name)
        {
            mViewpoint = vp;

            mViewportBounds = screenSpace;

            mName = name;

            mViewportSurface = new Surface(mViewportBounds);

            Plane.y = (float)((double)(mViewportBounds.Width / mViewportBounds.Height) / 2);

            mGeometryZBuffer = new double[mViewportBounds.Width];
            mSpriteZBuffer = new double[mViewportBounds.Width];
        }
Exemplo n.º 2
0
 public Viewport(Viewpoint vp, int x, int y, int width, int height, string name)
     : this(vp, new Rectangle(x, y, width, height), name)
 {
 }