public ProjectiveIFaceControler Add3DInterface(int width, int height, Matrix4 ifaceModelMat) { ProjectiveIFaceControler tmp = new ProjectiveIFaceControler(new Rectangle(0, 0, width, height), ifaceModelMat); addInterfaceControler(tmp); return(tmp); }
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 (); }
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; }