protected override void Initialize() { ShaderManager.Add("VS_2D", Resources.GetShader("VS", "VS", "UI2D.fx")).SetInputLayout(Vertex2D.Elements); ShaderManager.Add("PS_2D", Resources.GetShader("PS", "PS", "UI2D.fx")); FontManager.Add("small", Resources.GetFont("Fonts/small")); FontManager.Add("default", Resources.GetFont("Fonts/default")); ScreenshotManager.Initialize(); QuadRenderer.Initialize(); InputManager.Initialize(); WebWindow.Initialize(); DebugPerfMonitor.Initialize(); ScreenManager.AddScreen(new StartupScreen()); ScreenManager.GotoScreen("Startup"); Form.KeyDown += Form_KeyDown; }