MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / Initialize_Internal

Method Initialize_Internal

SampleFramework12/v1.00/App.cpp:133–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void 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
159void App::Shutdown_Internal()
160{

Callers

nothing calls this directly

Calls 7

SetClientAreaMethod · 0.80
ShowWindowMethod · 0.80
InitializeFunction · 0.70
WidthMethod · 0.45
HeightMethod · 0.45
InitializeMethod · 0.45

Tested by

no test coverage detected