Using PerformanceOverlayUiElement in example apps
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include "Scene/Material.hpp"
|
||||
#include "Scene/Vertex.hpp"
|
||||
#include "Scene/SimpleDrawable.hpp"
|
||||
#include "Scene/UI/PerformanceOverlayUiElement.hpp"
|
||||
#include "Input/InputManager.hpp"
|
||||
#include "Host/GraphicsAppManager.hpp"
|
||||
#include "Math/Math.hpp"
|
||||
@@ -40,6 +41,7 @@ namespace OpenVulkano
|
||||
std::vector<SimpleDrawable> drawablesPool;
|
||||
std::vector<Node> nodesPool;
|
||||
Vector3f_SIMD position = {0, 0, -10};
|
||||
OpenVulkano::Scene::UI::PerformanceOverlayUiElement m_ui;
|
||||
|
||||
public:
|
||||
void Init() override
|
||||
@@ -78,6 +80,8 @@ namespace OpenVulkano
|
||||
|
||||
camController.Init(&cam);
|
||||
camController.SetDefaultKeybindings();
|
||||
|
||||
GetGraphicsAppManager()->GetRenderer()->SetActiveUi(&m_ui);
|
||||
}
|
||||
|
||||
void Tick() override
|
||||
|
||||
Reference in New Issue
Block a user