Modules/Graphics/examples/Example.cpp
2024-11-24 22:41:14 +03:00

26 lines
554 B
C++

#include "GraphicApplication.hpp"
#include "imgui.h"
using namespace tp;
class ExampleApplication : public Application {
public:
ExampleApplication() = default;
void processFrame(EventHandler* eventHandler) override {
// example
}
virtual void drawFrame(Canvas* canvas) override {
ImGui::Text("Frames processed per second: %f", this->mFramesProcessedPerSecond);
ImGui::Text("Frames drawn per second: %f", this->mFramesDrawnPerSecond);
}
virtual ~ExampleApplication() = default;
};
int main() {
ExampleApplication app;
app.run();
}