mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-31 08:21:11 -06:00
* Initial SDF font generation work. * Text now correctly displaying with proper spacing. * Fix untextured draws, implement custom rectangles. * Fix regular image display. * Slightly refactor ImGui rendering. * Implement outlines. * Implement bevel. * Create host device after loading the module if the installer wasn't run. * Move ImGui files to its own folder. * Fix outline sizes. * Fix default ImGui font and font scales. * Update font atlas files.
68 lines
1.3 KiB
C
68 lines
1.3 KiB
C
#pragma once
|
|
|
|
#define IMGUI_SHADER_MODIFIER_NONE 0
|
|
#define IMGUI_SHADER_MODIFIER_SCANLINE 1
|
|
#define IMGUI_SHADER_MODIFIER_CHECKERBOARD 2
|
|
#define IMGUI_SHADER_MODIFIER_SCANLINE_BUTTON 3
|
|
#define IMGUI_SHADER_MODIFIER_TEXT_SKEW 4
|
|
#define IMGUI_SHADER_MODIFIER_MARQUEE_FADE 5
|
|
#define IMGUI_SHADER_MODIFIER_GRAYSCALE 6
|
|
#define IMGUI_SHADER_MODIFIER_TITLE_BEVEL 7
|
|
#define IMGUI_SHADER_MODIFIER_CATEGORY_BEVEL 8
|
|
|
|
#ifdef __cplusplus
|
|
|
|
enum class ImGuiCallback : int32_t
|
|
{
|
|
SetGradient = -1,
|
|
SetShaderModifier = -2,
|
|
SetOrigin = -3,
|
|
SetScale = -4,
|
|
SetMarqueeFade = -5,
|
|
SetOutline = -6,
|
|
// -8 is ImDrawCallback_ResetRenderState, don't use!
|
|
};
|
|
|
|
union ImGuiCallbackData
|
|
{
|
|
struct
|
|
{
|
|
float boundsMin[2];
|
|
float boundsMax[2];
|
|
uint32_t gradientTop;
|
|
uint32_t gradientBottom;
|
|
} setGradient;
|
|
|
|
struct
|
|
{
|
|
uint32_t shaderModifier;
|
|
} setShaderModifier;
|
|
|
|
struct
|
|
{
|
|
float origin[2];
|
|
} setOrigin;
|
|
|
|
struct
|
|
{
|
|
float scale[2];
|
|
} setScale;
|
|
|
|
struct
|
|
{
|
|
float boundsMin[2];
|
|
float boundsMax[2];
|
|
} setMarqueeFade;
|
|
|
|
struct
|
|
{
|
|
float outline;
|
|
} setOutline;
|
|
};
|
|
|
|
extern ImGuiCallbackData* AddImGuiCallback(ImGuiCallback callback);
|
|
|
|
extern void ResetImGuiCallbacks();
|
|
|
|
#endif
|