protected override void OnLoad(EventArgs e) { Console.WriteLine("LOAD <3d street viewer> "); Console.Title = "GoogleHacks [Streetview 3D] - © 2016 RealityDaemon"; int[] t = new int[2]; GL.GetInteger(GetPName.MajorVersion, out t[0]); GL.GetInteger(GetPName.MinorVersion, out t[1]); Console.ForegroundColor = ConsoleColor.White; Console.WriteLine("OpenGL Version " + t[0] + "." + t[1]); // Initilise OpenGL GL.ClearColor(ClearColor.X, ClearColor.Y, ClearColor.Z, ClearColor.W); GL.ClearDepth(1.0f); // Depth Buffer Setup GL.Enable(EnableCap.DepthTest); // Enables Depth Testing GL.DepthFunc(DepthFunction.Lequal); // The Type Of Depth Testing To Do GL.Hint(HintTarget.PerspectiveCorrectionHint, HintMode.Nicest); // Really Nice Perspective Calculations // Panorama Panorama.Initilize(ActiveCamera); // Minimap map = new Minimap(size: new Vector3(1.0f, 1.0f, 1.0f), position: new Vector3(0.5f, 0.5f, -1.0f)); map.Initilize(ActiveCamera); textBasedView.Initilize(); this.Title = "GoogleHacks Streetview Hacker Collection - © 2016 RealityDaemon"; }
protected void Restart() { Panorama.Unload(); Panorama.Initilize(ActiveCamera); Panorama.Reset(ActiveCamera); }