forked from inkyblackness/imgui-go
-
Notifications
You must be signed in to change notification settings - Fork 15
/
FontAtlasWrapper.h
44 lines (34 loc) · 1.82 KB
/
FontAtlasWrapper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#pragma once
#include "imguiWrapperTypes.h"
#ifdef __cplusplus
extern "C"
{
#endif
extern IggGlyphRanges iggGetGlyphRangesAll();
extern IggGlyphRanges iggGetGlyphRangesDefault(IggFontAtlas handle);
extern IggGlyphRanges iggGetGlyphRangesKorean(IggFontAtlas handle);
extern IggGlyphRanges iggGetGlyphRangesJapanese(IggFontAtlas handle);
extern IggGlyphRanges iggGetGlyphRangesChineseFull(IggFontAtlas handle);
extern IggGlyphRanges iggGetGlyphRangesChineseSimplifiedCommon(IggFontAtlas handle);
extern IggGlyphRanges iggGetGlyphRangesCyrillic(IggFontAtlas handle);
extern IggGlyphRanges iggGetGlyphRangesThai(IggFontAtlas handle);
extern IggFont iggAddFontDefault(IggFontAtlas handle);
extern IggFont iggAddFontDefaultV(IggFontAtlas handle, IggFontConfig config);
extern IggFont iggAddFontFromFileTTF(IggFontAtlas handle, char const *filename, float sizePixels,
IggFontConfig config, IggGlyphRanges glyphRanges);
extern IggFont iggAddFontFromMemoryTTF(IggFontAtlas handle, char *font_data, int font_size, float sizePixels,
IggFontConfig config, IggGlyphRanges glyphRanges);
extern int iggFontAtlasFontCount(IggFontAtlas handle);
extern void iggFontAtlasSetTexDesiredWidth(IggFontAtlas handle, int value);
extern void iggFontAtlasGetTexDataAsAlpha8(IggFontAtlas handle, unsigned char **pixels,
int *width, int *height, int *bytesPerPixel);
extern void iggFontAtlasGetTexDataAsRGBA32(IggFontAtlas handle, unsigned char **pixels,
int *width, int *height, int *bytesPerPixel);
extern void iggFontAtlasSetTextureID(IggFontAtlas handle, IggTextureID id);
extern void iggFontAtlasBuild(IggFontAtlas handle);
extern void iggFontAtlasClear(IggFontAtlas handle);
extern unsigned int iggFontAtlasGetFontBuilderFlags(IggFontAtlas handle);
extern void iggFontAtlasSetFontBuilderFlags(IggFontAtlas handle, unsigned int flags);
#ifdef __cplusplus
}
#endif