public static async Task LoadBrowserWithGraphAsync(SceneGraph graph) { await Task.Run(() => { browser = new X3DBrowser( OpenTK.VSyncMode.On, graph, Resolution.Size800x600, new GraphicsMode(32, 16, 0, 4) ); browser.Title = "Initilising"; browser.Run(60); }); }
public static async Task LoadBrowserWithURLAsync() { #if VSYNC_OFF VSync = VSyncMode.Off; #else VSync = VSyncMode.On; #endif await Task.Run(() => { browser = new X3DBrowser(VSync, url, Resolution.Size800x600, new GraphicsMode(32, 16, 0, 4)); browser.Title = "Initilising.."; #if VSYNC_OFF browser.Run(); #else browser.Run(60); #endif }); }