public static void Main() { SynchronizationContext.SetSynchronizationContext(new SynchronizationContext()); Instance = new PulsarMainWindow(); Instance.Run(); Instance.Dispose(); }
public void Dispose() { // Dispose state if (m_pendingState == null) { m_currentState.Shutdown(); } m_currentState.PostShutdown(); // Dispose the rest m_fullScreenQuad.Dispose(); if (m_audio is IDisposable) { ((IDisposable)m_audio).Dispose(); } m_screen.Dispose(); m_window.Dispose(); if (m_steamControllers != null) { m_steamControllers.Dispose(); } if (m_pendingScreenshot != null) { m_pendingScreenshot.Dispose(); } m_cameraAxisMarker.Dispose(); // Shutdown animation LuaAnimation.UnloadAll(); }
static void Main(string[] args) { Queue <string> argq = new Queue <string>(args); while (argq.Count > 0) { string arg = argq.Dequeue(); if (arg == "--debug") { Debugger.Launch(); } } /*ImGuiSDL2CSWindow*/ Instance = new YourGameNamespace.YourGameWindow(); Instance.Run(); Instance.Dispose(); }
public static void Main() { Instance = new PulsarMainWindow(); Instance.Run(); Instance.Dispose(); }