add java client source

This commit is contained in:
st committed 2026-11-09 21:22:29 -06:00
commit c7a15fdc7d
98 files changed
+80145

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#pragma once
#include <cstdio>
#include "text_hud.h"
class fps_counter : public text_hud {
public:
fps_counter() : text_hud("fps counter", "shows your current fps", category::hud, VK_F6) {
label_ = "fps"; text_ = "0"; reserve_ = "000"; hud_pos = ImVec2(10, 10);
}
void on_render() override {
char value[24]; snprintf(value, sizeof(value), "%.0f", ImGui::GetIO().Framerate);
text_ = value; draw_text();
}
};