2020-12-27 15:39:06 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <glad/glad.h>
|
|
|
|
#include <imgui.h>
|
|
|
|
|
|
|
|
#include <hex.hpp>
|
2021-01-20 20:16:24 +01:00
|
|
|
#include <hex/api/imhex_api.hpp>
|
2021-01-13 17:28:27 +01:00
|
|
|
#include <hex/api/content_registry.hpp>
|
|
|
|
#include <hex/views/view.hpp>
|
|
|
|
#include <hex/providers/provider.hpp>
|
|
|
|
#include <hex/helpers/shared_data.hpp>
|
2021-01-30 22:39:06 +01:00
|
|
|
#include <hex/data_processor/node.hpp>
|
2020-12-27 15:39:06 +01:00
|
|
|
|
2021-02-19 13:22:12 +01:00
|
|
|
#define IMHEX_PLUGIN_SETUP(name, author, description) IMHEX_PLUGIN_SETUP_IMPL(IMHEX_PLUGIN_NAME, name, author, description)
|
2021-02-07 13:40:47 +01:00
|
|
|
|
2021-02-19 13:22:12 +01:00
|
|
|
#define IMHEX_PLUGIN_SETUP_IMPL(namespaceName, name, author, description) \
|
|
|
|
namespace hex::plugin::namespaceName::internal { \
|
|
|
|
[[gnu::visibility("default")]] void initializePlugin(); \
|
|
|
|
\
|
|
|
|
[[gnu::visibility("default")]] const char* getPluginName() { return name; } \
|
|
|
|
[[gnu::visibility("default")]] const char* getPluginAuthor() { return author; } \
|
|
|
|
[[gnu::visibility("default")]] const char* getPluginDescription() { return description; } \
|
|
|
|
} \
|
|
|
|
void hex::plugin::namespaceName::internal::initializePlugin()
|