2021-05-24 21:25:31 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "imgui.h"
|
2021-06-02 11:49:03 +00:00
|
|
|
#include "misc/cpp/imgui_stdlib.h"
|
2022-02-08 09:40:50 +00:00
|
|
|
#include <memory>
|
2021-05-24 21:25:31 +00:00
|
|
|
|
|
|
|
namespace metaforce {
|
|
|
|
class ImGuiEngine {
|
|
|
|
public:
|
2021-05-27 04:56:25 +00:00
|
|
|
static ImFont* fontNormal;
|
|
|
|
static ImFont* fontLarge;
|
2022-02-01 00:06:54 +00:00
|
|
|
static ImTextureID metaforceIcon;
|
|
|
|
};
|
2021-05-24 21:25:31 +00:00
|
|
|
|
2022-02-01 00:06:54 +00:00
|
|
|
// Called from Rust
|
|
|
|
void ImGuiEngine_Initialize(float scale);
|
2022-02-16 05:21:24 +00:00
|
|
|
void ImGuiEngine_AddTextures();
|
2021-05-24 21:25:31 +00:00
|
|
|
|
2022-02-08 08:28:56 +00:00
|
|
|
struct Icon {
|
|
|
|
std::unique_ptr<uint8_t[]> data;
|
|
|
|
size_t size;
|
|
|
|
uint32_t width;
|
|
|
|
uint32_t height;
|
|
|
|
};
|
|
|
|
Icon GetIcon();
|
2021-05-24 21:25:31 +00:00
|
|
|
} // namespace metaforce
|