Dawn/src/dawn/scene/components/debug/FPSLabelComponent.hpp

18 lines
435 B
C++

// Copyright (c) 2023 Dominic Masters
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#pragma once
#include "scene/components/ui/text/UILabel.hpp"
namespace Dawn {
class FPSLabelComponent : public SceneItemComponent {
public:
/* @optional */
UILabel *label = nullptr;
FPSLabelComponent(std::weak_ptr<SceneItem> item);
void onStart() override;
};
}