MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / SetupFPSCounter

Method SetupFPSCounter

SDK/src/NDK/Application.cpp:221–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 }
220
221 void Application::SetupFPSCounter(WindowInfo& info)
222 {
223 std::unique_ptr<FPSCounterOverlay> fpsCounter = std::make_unique<FPSCounterOverlay>();
224 fpsCounter->sprite = Nz::TextSprite::New();
225
226 fpsCounter->entity = info.overlayWorld->CreateEntity();
227 fpsCounter->entity->AddComponent<NodeComponent>();
228 fpsCounter->entity->AddComponent<GraphicsComponent>().Attach(fpsCounter->sprite);
229
230 info.fpsCounter = std::move(fpsCounter);
231 }
232
233 void Application::SetupOverlay(WindowInfo& info)
234 {

Callers

nothing calls this directly

Calls 1

AttachMethod · 0.80

Tested by

no test coverage detected