| 131 | } |
| 132 | |
| 133 | void App::Initialize_Internal() |
| 134 | { |
| 135 | DX12::Initialize(minFeatureLevel); |
| 136 | |
| 137 | window.SetClientArea(swapChain.Width(), swapChain.Height()); |
| 138 | swapChain.Initialize(window); |
| 139 | |
| 140 | if(showWindow) |
| 141 | window.ShowWindow(); |
| 142 | |
| 143 | // Create a font + SpriteRenderer |
| 144 | font.Initialize(L"Consolas", 18, SpriteFont::Regular, true); |
| 145 | spriteRenderer.Initialize(); |
| 146 | |
| 147 | Profiler::GlobalProfiler.Initialize(); |
| 148 | |
| 149 | window.RegisterMessageCallback(OnWindowResized, this); |
| 150 | |
| 151 | // Initialize ImGui |
| 152 | ImGuiHelper::Initialize(window); |
| 153 | |
| 154 | AppSettings::Initialize(); |
| 155 | |
| 156 | Initialize(); |
| 157 | } |
| 158 | |
| 159 | void App::Shutdown_Internal() |
| 160 | { |
nothing calls this directly
no test coverage detected