1
0
mirror of synced 2024-12-14 00:32:52 +01:00
ImHex/plugins/libimhex/include/plugin.hpp

19 lines
1.0 KiB
C++

#pragma once
#include <glad/glad.h>
#include <imgui.h>
#include <hex.hpp>
#include <views/view.hpp>
#include <providers/provider.hpp>
#define IMHEX_PLUGIN namespace hex::plugin::internal { \
void initializePlugin(ImGuiContext *ctx, hex::prv::Provider **provider) { \
if (glGetString == NULL) \
gladLoadGL(); \
ImGui::SetCurrentContext(ctx); \
hex::prv::Provider::setProviderStorage(*provider); \
} \
} \
namespace hex::plugin