mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 12:14:54 +01:00
Update nemirtingas overlay.
This commit is contained in:
parent
b72b4da8fb
commit
743a810463
22 changed files with 235 additions and 79 deletions
|
|
@ -23,6 +23,16 @@
|
|||
#include <string>
|
||||
#include <memory>
|
||||
#include <cstdint>
|
||||
#include <set>
|
||||
|
||||
namespace ingame_overlay {
|
||||
|
||||
enum class ToggleKey
|
||||
{
|
||||
SHIFT, CTRL, ALT,
|
||||
TAB,
|
||||
F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12,
|
||||
};
|
||||
|
||||
class Renderer_Hook
|
||||
{
|
||||
|
|
@ -37,7 +47,7 @@ public:
|
|||
std::function<void()> OverlayProc;
|
||||
std::function<void(bool)> OverlayHookReady;
|
||||
|
||||
virtual bool StartHook(std::function<bool(bool)> key_combination_callback) = 0;
|
||||
virtual bool StartHook(std::function<bool(bool)> key_combination_callback, std::set<ToggleKey> toggle_keys) = 0;
|
||||
virtual bool IsStarted() = 0;
|
||||
// Returns a Handle to the renderer image ressource or nullptr if it failed to create the resource, the handle can be used in ImGui's Image calls, image_buffer must be RGBA ordered
|
||||
virtual std::weak_ptr<uint64_t> CreateImageResource(const void* image_data, uint32_t width, uint32_t height) = 0;
|
||||
|
|
@ -45,3 +55,5 @@ public:
|
|||
|
||||
virtual std::string GetLibraryName() const = 0;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue