forked from inkyblackness/imgui-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFontAtlasWrapper.h
33 lines (26 loc) · 1.3 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
#pragma once
#include "imguiWrapperTypes.h"
#ifdef __cplusplus
extern "C"
{
#endif
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 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);
#ifdef __cplusplus
}
#endif