mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
24 lines
1.4 KiB
C++
24 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include <glad/glad.h>
|
|
#include <imgui.h>
|
|
|
|
#include <hex.hpp>
|
|
#include <views/view.hpp>
|
|
#include <providers/provider.hpp>
|
|
#include <helpers/shared_data.hpp>
|
|
#include <helpers/content_registry.hpp>
|
|
|
|
#define IMHEX_PLUGIN_SETUP namespace hex::plugin { void setup(); } \
|
|
namespace hex::plugin::internal { \
|
|
void initializePlugin(SharedData &sharedData) { \
|
|
if (glGetString == NULL) \
|
|
gladLoadGL(); \
|
|
SharedData::get().initializeData(sharedData); \
|
|
ImGui::SetCurrentContext(*sharedData.imguiContext); \
|
|
hex::plugin::setup(); \
|
|
\
|
|
} \
|
|
} \
|
|
void hex::plugin::setup()
|