2020-12-27 15:39:06 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <imgui.h>
|
2021-08-28 18:15:20 +02:00
|
|
|
#define IMGUI_DEFINE_MATH_OPERATORS
|
2021-08-21 00:52:11 +02:00
|
|
|
#include <imgui_internal.h>
|
2020-12-27 15:39:06 +01:00
|
|
|
|
|
|
|
#include <hex.hpp>
|
|
|
|
|
2023-04-18 10:06:47 +02:00
|
|
|
/**
|
|
|
|
* This macro is used to define all the required entry points for a plugin.
|
|
|
|
* Name, Author and Description will be displayed in the in the plugin list on the Welcome screen.
|
|
|
|
*/
|
2022-02-02 17:19:50 +01:00
|
|
|
#define IMHEX_PLUGIN_SETUP(name, author, description) IMHEX_PLUGIN_SETUP_IMPL(name, author, description)
|
2021-02-07 13:40:47 +01:00
|
|
|
|
2022-02-02 17:19:50 +01:00
|
|
|
#define IMHEX_PLUGIN_SETUP_IMPL(name, author, description) \
|
2022-01-24 20:53:17 +01:00
|
|
|
extern "C" [[gnu::visibility("default")]] const char *getPluginName() { return name; } \
|
|
|
|
extern "C" [[gnu::visibility("default")]] const char *getPluginAuthor() { return author; } \
|
|
|
|
extern "C" [[gnu::visibility("default")]] const char *getPluginDescription() { return description; } \
|
|
|
|
extern "C" [[gnu::visibility("default")]] const char *getCompatibleVersion() { return IMHEX_VERSION; } \
|
|
|
|
extern "C" [[gnu::visibility("default")]] void setImGuiContext(ImGuiContext *ctx) { \
|
|
|
|
ImGui::SetCurrentContext(ctx); \
|
|
|
|
GImGui = ctx; \
|
|
|
|
} \
|
2022-01-23 23:28:56 +01:00
|
|
|
extern "C" [[gnu::visibility("default")]] void initializePlugin()
|