metaforce/imgui/ImGuiEngine.hpp

27 lines
474 B
C++
Raw Normal View History

2021-05-24 21:25:31 +00:00
#pragma once
#include "imgui.h"
#include "misc/cpp/imgui_stdlib.h"
#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