Пример #1
0
        public ProjectiveIFaceControler Add3DInterface(int width, int height, Matrix4 ifaceModelMat)
        {
            ProjectiveIFaceControler tmp = new ProjectiveIFaceControler(new Rectangle(0, 0, width, height), ifaceModelMat);

            addInterfaceControler(tmp);
            return(tmp);
        }
Пример #2
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad (e);

            MouseMove += HelloCube_MouseMove;
            MouseWheelChanged += Hello3D_MouseWheelChanged;

            iface3D = Add3DInterface (2048, 2048,
                Matrix4.CreateScale (6f) *
                Matrix4.CreateRotationX (MathHelper.PiOver2) *
                Matrix4.CreateTranslation (Vector3.UnitY * -1.1f));
            Load (@"Interfaces/Divers/0.crow").DataSource = this;
            initGL ();
            shader.Enable ();
        }
Пример #3
0
 public ProjectiveIFaceControler Add3DInterface(int width, int height, Matrix4 ifaceModelMat)
 {
     ProjectiveIFaceControler tmp = new ProjectiveIFaceControler (new Rectangle (0, 0, width, height), ifaceModelMat);
     ifaceControl.Add (tmp);
     return tmp;
 }