public void RunGame(Type value) { currentApplication?.Exit(); //at this moment, UWP supports assets only in pak files (see PackageTool) currentApplication = UrhoSurface.Run(value, new ApplicationOptions("Data") { WindowedMode = Debugger.IsAttached, LimitFps = true }); }
public async void RunGame(TypeInfo value) { currentApplication?.Exit(); //at this moment, UWP supports assets only in pak files (see PackageTool) currentApplication = UrhoSurface.Run(value.Type, new ApplicationOptions("Data") { Width = (int)UrhoSurface.ActualWidth, Height = (int)UrhoSurface.ActualHeight }); }
private void Page_Loaded(object sender, RoutedEventArgs e) { _application = UrhoSurface.Run <UrhoApplication>( new ApplicationOptions("Data") { Width = UrhoApplication.VIDEO_WIDTH_LOW, Height = UrhoApplication.VIDEO_HEIGHT_LOW }); _callViewModel.UrhoApplication = _application; }
async void MainPage_Loaded(object sender, RoutedEventArgs e) { mediaCapture = new MediaCapture(); await mediaCapture.InitializeAsync(); CaptureElement.Source = mediaCapture; await mediaCapture.StartPreviewAsync(); urhoApp = UrhoSurface.Run <UrhoApp>(); urhoApp.CaptureVideo(CaptureFrameAsync); }
public MainPage() { //Urho.Application.UnhandledException += (s, e) => e.Handled = true; this.InitializeComponent(); this.Loaded += (s, e) => { UrhoSurface.Run <LocalApplication>(new Urho.ApplicationOptions("Data") { Width = (int)UrhoSurface.ActualWidth, Height = (int)UrhoSurface.ActualHeight, }); }; }
private void MainPage_Loaded(object sender, RoutedEventArgs e) { UrhoSurface.Run <HelloWorld>(new Urho.ApplicationOptions(assetsFolder: null)); }
public void RunGame(TypeInfo value) { currentApplication?.Engine.Exit(); //at this moment, UWP supports assets only in pak files (see PackageTool) currentApplication = UrhoSurface.Run(value.Type, "Data.pak"); }