public void Start() { _renderer = _runner.GetSubSystem <Sdl2Renderer>(); _ui = _runner.GetSubSystem <Ui>(); _loadingScreenTexture = _runner.GetSubSystem <ResourceLoader>().LoadEmbeddedAsset <ProcessedTexture>(_splashScreen); _loadingTexture = _loadingScreenTexture.CreateDeviceTexture(_renderer.GraphicsDevice, _renderer.ResourceFactory, TextureUsage.Sampled); _loadingTextureView = _renderer.ResourceFactory.CreateTextureView(_loadingTexture); _loadingScreen = new LoadingScreen(_ui.GetOrCreateImGuiBinding(_renderer.ResourceFactory, _loadingTextureView)); _ui.Windows.Add(_loadingScreen); LoadScene(new MenuScene()); }
public void Start() { _renderer = _runner.GetSubSystem <Sdl2Renderer>(); _ft = _runner.GetSubSystem <FrameTimer>(); if (_imguiRenderer == null) { _imguiRenderer = new ImGuiRenderer(_renderer.GraphicsDevice, _renderer.MainSwapchain.Framebuffer.OutputDescription, (int)_renderer.Size.X, (int)_renderer.Size.Y); } else { _imguiRenderer.CreateDeviceResources(_renderer.GraphicsDevice, _renderer.MainSwapchain.Framebuffer.OutputDescription); } _renderer.Render += RenderCallback; }
public void Start() { _renderer = _runner.GetSubSystem <Sdl2Renderer>(); }
public void Shutdown() { _renderer = null; }