mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-02 05:12:02 +00:00
[client] overlay: add ImGui support for non-latin characters
This commit is contained in:
@@ -131,6 +131,11 @@ void app_freeOverlays(void);
|
||||
*/
|
||||
void app_invalidateOverlay(bool renderTwice);
|
||||
|
||||
/**
|
||||
* Ensure that user-supplied UTF-8 text has glyphs in the UI font atlas.
|
||||
*/
|
||||
void app_registerImGuiText(const char * text);
|
||||
|
||||
struct OverlayGraph;
|
||||
typedef struct OverlayGraph * GraphHandle;
|
||||
typedef const char * (*GraphFormatFn)(const char * name,
|
||||
|
||||
@@ -26,6 +26,9 @@
|
||||
#include "common/types.h"
|
||||
#include "common/util.h"
|
||||
|
||||
struct ImFont;
|
||||
struct ImFontAtlas;
|
||||
|
||||
// reads the specified file into a new buffer
|
||||
// the callee must free the buffer
|
||||
bool util_fileGetContents(const char * filename, char ** buffer, size_t * length);
|
||||
@@ -46,5 +49,8 @@ static inline double util_clamp(double x, double min, double max)
|
||||
bool util_initUIFonts(void);
|
||||
void util_freeUIFonts(void);
|
||||
char * util_getUIFont(const char * fontName);
|
||||
bool util_uiFontAddText(const char * text);
|
||||
bool util_buildUIFontAtlas(
|
||||
struct ImFontAtlas * atlas, float size, struct ImFont ** large);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user