| 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 | { |