public static int Main(string[] args) { //Texture t = TextureFactory.Sky(512,512,0.71828f);//TextureFactory.Wood(512,512,0.314159265f); //t.QuadMirror(); //t.ToBitmap().Save("test2.png"); //Catalog.Init("gtz",""); //ZertzBoard.OffsetBoard().GenerateVisualRepresentation().Save("test.png"); MessageBoard messageboard = new MessageBoard(); using (MainWindow mw = new MainWindow(messageboard)) { mw.Run(); } return(0x00); }
public MainWindow(MessageBoard messageBoard) { this.lT = new float[this.l0.Length][]; for(int i = 0x00; i < this.l0.Length; i++) { this.lT[i] = new float[this.l0[i].Length]; for(int j = 0x00; j < this.l0[i].Length; j++) { this.lT[i][j] = this.l0[i][j]; } } this.Keyboard.KeyRepeat = true; this.Keyboard.KeyDown += HandleKeyboardhandleKeyDown; this.cam = new Camera(); //this.cam.PositionTarget = new Vector3(0.0f,-5.0f,-8.5f); //this.cam.ThetaTarget = 30.0f; this.sceneLoader = new SceneLoader(this); this.subtitles = new SubtitleRenderer(); float temp = (float)this.Width/(float)this.Height; this.perspective = Matrix4.CreatePerspectiveFieldOfView(0.25f*(float)Math.PI, temp, 1.0f, 64.0f); this.messageBoard = messageBoard; }
public MainWindow(MessageBoard messageBoard) { this.lT = new float[this.l0.Length][]; for (int i = 0x00; i < this.l0.Length; i++) { this.lT[i] = new float[this.l0[i].Length]; for (int j = 0x00; j < this.l0[i].Length; j++) { this.lT[i][j] = this.l0[i][j]; } } this.Keyboard.KeyRepeat = true; this.Keyboard.KeyDown += HandleKeyboardhandleKeyDown; this.cam = new Camera(); //this.cam.PositionTarget = new Vector3(0.0f,-5.0f,-8.5f); //this.cam.ThetaTarget = 30.0f; this.sceneLoader = new SceneLoader(this); this.subtitles = new SubtitleRenderer(); float temp = (float)this.Width / (float)this.Height; this.perspective = Matrix4.CreatePerspectiveFieldOfView(0.25f * (float)Math.PI, temp, 1.0f, 64.0f); this.messageBoard = messageBoard; }
public static int Main(string[] args) { //Texture t = TextureFactory.Sky(512,512,0.71828f);//TextureFactory.Wood(512,512,0.314159265f); //t.QuadMirror(); //t.ToBitmap().Save("test2.png"); //Catalog.Init("gtz",""); //ZertzBoard.OffsetBoard().GenerateVisualRepresentation().Save("test.png"); MessageBoard messageboard = new MessageBoard(); using(MainWindow mw = new MainWindow(messageboard)) { mw.Run(); } return 0x00; }