Capycore Engine  0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Loading...
Searching...
No Matches
ui_fps.h
Go to the documentation of this file.
1#pragma once
2
4
16class UIFPS : public UIObject {
17 public:
18 explicit UIFPS(Scene& Scene);
19
20 void update(float dt) override;
21};
std::optional< std::reference_wrapper< T > > get_component() const noexcept
Get the first component of type T attached to this GameObject.
Definition gameObject.h:141
Represents a scene within the engine. A scene contains multiple GameObjects and manages their lifecyc...
Definition scene.h:19
UI Component that displays the current frames per second (FPS).
Definition ui_fps.h:16
UIFPS(Scene &Scene)
void update(float dt) override
Update the UI object.
Base class for all UI objects.
Definition ui_object.h:16