metaforce/imgui/ImGuiEngine.hpp

26 lines
454 B
C++
Raw Permalink Normal View History

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