25476d4e1e
This PR updates imgui and its dependencies from the last time, ~1 year ago (deabacbd50
) Commits will be refactored before merging Things you might ask : - why did you remove `ImGui_ImplGlfw_SetBorderlessWindowMode()` ? -> Where is it used ? The only usage of it I see is commented (cb9a3b1f55/lib/external/imgui/source/imgui_impl_glfw.cpp (L757)
) - why did you remove the implot anti aliasing flag ? -> They.. seem to have removed it altogether ? https://github.com/epezent/implot/issues/479
24 lines
1.4 KiB
C++
24 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include <imgui.h>
|
|
#include <imgui_internal.h>
|
|
|
|
#include <hex.hpp>
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
#define IMHEX_PLUGIN_SETUP(name, author, description) IMHEX_PLUGIN_SETUP_IMPL(name, author, description)
|
|
|
|
#define IMHEX_PLUGIN_SETUP_IMPL(name, author, description) \
|
|
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; \
|
|
} \
|
|
extern "C" [[gnu::visibility("default")]] void initializePlugin()
|