Ejemplo n.º 1
0
        public NativeDesignView()
        {
            GameEngine.Initialize();
            Util3D.Init();

            QuadView.TopLeft = new NativeDesignControl(this)
            {
                ViewType = ViewTypes.Perspective
            };
            QuadView.TopRight = new NativeDesignControl(this)
            {
                ViewType = ViewTypes.Right
            };
            QuadView.BottomLeft = new NativeDesignControl(this)
            {
                ViewType = ViewTypes.Top
            };
            QuadView.BottomRight = new NativeDesignControl(this)
            {
                ViewType = ViewTypes.Front
            };

            // set control names.
            QuadView.TopLeft.Name     = "TopLeft";
            QuadView.TopRight.Name    = "TopRight";
            QuadView.BottomLeft.Name  = "BottomLeft";
            QuadView.BottomRight.Name = "BottomRight";



            ViewMode        = ViewModes.Single;
            ContextChanged += NativeDesignView_ContextChanged;
        }
Ejemplo n.º 2
0
        public NativeDesignView()
        {
            GameEngine.Initialize(QuadView.Handle);
            Util3D.Init();

            QuadView.TopLeft = new NativeDesignControl(this)
            {
                ViewType = ViewTypes.Perspective
            };
            QuadView.TopRight = new NativeDesignControl(this)
            {
                ViewType = ViewTypes.Right
            };
            QuadView.BottomLeft = new NativeDesignControl(this)
            {
                ViewType = ViewTypes.Top
            };
            QuadView.BottomRight = new NativeDesignControl(this)
            {
                ViewType = ViewTypes.Front
            };
            ViewMode        = ViewModes.Single;
            ContextChanged += new EventHandler(NativeDesignView_ContextChanged);
        }