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