private static void ExtractAndLoadEmbeddedDependency(string targetDir, string fqn) { var actualFileName = ResourceNameToFileName(fqn); using var fs = new FileStream(Path.Combine(targetDir, actualFileName), FileMode.Create); using var ms = EmbeddedResources.GetResourceStream(fqn); ms.CopyTo(fs); Console.WriteLine(actualFileName); WinApi.LoadLibrary(actualFileName); }
private void InitializeRenderingSystem() { RenderWindow = new RenderWindow( GraphicsSettings.VideoMode, Window.Title, GraphicsSettings.WindowStyle, GraphicsSettings.ContextSettings ); RenderWindow.SetMouseCursorGrabbed(Window.CaptureCursor); RenderWindow.SetMouseCursorVisible(Window.ShowCursor); RenderWindow.SetActive(true); Window.Icon = new Graphics.Texture( EmbeddedResources.GetResourceStream( EmbeddedResources.IconResourceString ) ); ConnectWindowEvents(); RenderContext = new RenderContext(RenderWindow); }