前田稔(Maeda Minoru)の超初心者のプログラム入門
Directory.SetCurrentDirectory(@"c:\data\xfile\"); mesh = Mesh.FromFile("tiny.x", MeshFlags.SystemMemory, device, out materials); |
device.Transform.World = Matrix.RotationX((float)(-Math.PI/2)) * Matrix.RotationY(Environment.TickCount/1000.0f); |
device.Transform.View = Matrix.LookAtLH(new Vector3(0.0f,3.0f,-1000.0f), new Vector3(0.0f,0.0f,0.0f), new Vector3(0.0f,1.0f,0.0f)); device.Transform.Projection = Matrix.PerspectiveFovLH((float)(Math.PI/4), 1.0f,1.0f,5000.0f); |