Brembo1926
Platinian
[ hide ]
[ /hide ]
C++:
#include <imgui.h>
#include <imgui_impl_glfw.h>
#include <imgui_impl_opengl3.h>
#include <GLFW/glfw3.h>
bool showMenu = false;
bool aimbotActive = false;
bool wallhackActive = false;
bool bhopActive = false;
void toggleAimbot() {
aimbotActive = !aimbotActive;
}
void toggleWallhack() {
wallhackActive = !wallhackActive;
}
void toggleBhop() {
bhopActive = !bhopActive;
}
void renderMenu() {
if (showMenu) {
ImGui::Begin("PlatinMods Menu", &showMenu);
ImGui::Text("Mod By Brembo1926");
if (ImGui::Button("Toggle Aimbot")) {
toggleAimbot();
}
if (ImGui::Button("Toggle Wallhack")) {
toggleWallhack();
}
if (ImGui::Button("Toggle Bunny Hop")) {
toggleBhop();
}
ImGui::End();
}
}
void setupImGui(GLFWwindow* window) {
IMGUI_CHECKVERSION();
ImGui::CreateContext();
ImGuiIO& io = ImGui::GetIO(); (void)io;
ImGui::StyleColorsDark();
ImGui_ImplGlfw_InitForOpenGL(window, true);
ImGui_ImplOpenGL3_Init("#version 130");
}
void drawIcon() {
ImGui::SetNextWindowBgAlpha(0.0f);
ImGui::SetNextWindowPos(ImVec2(10, 10), ImGuiCond_Once);
ImGui::Begin("Icon", NULL, ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoInputs);
ImGui::Text("🔧");
ImGui::End();
}
void mainLoop(GLFWwindow* window) {
while (!glfwWindowShouldClose(window)) {
glfwPollEvents();
ImGui_ImplOpenGL3_NewFrame();
ImGui_ImplGlfw_NewFrame();
ImGui::NewFrame();
drawIcon();
renderMenu();
ImGui::Render();
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
glfwSwapBuffers(window);
}
}
int main() {
if (!glfwInit())
return -1;
GLFWwindow* window = glfwCreateWindow(800, 600, "PlatinMods", NULL, NULL);
if (!window) {
glfwTerminate();
return -1;
}
glfwMakeContextCurrent(window);
setupImGui(window);
mainLoop(window);
ImGui_ImplOpenGL3_Shutdown();
ImGui_ImplGlfw_Shutdown();
ImGui::DestroyContext();
glfwDestroyWindow(window);
glfwTerminate();
return 0;
}