FontAtlasWrapper.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #pragma once
  2. #include "imguiWrapperTypes.h"
  3. #ifdef __cplusplus
  4. extern "C"
  5. {
  6. #endif
  7. extern IggGlyphRanges iggGetGlyphRangesAll();
  8. extern IggGlyphRanges iggGetGlyphRangesDefault(IggFontAtlas handle);
  9. extern IggGlyphRanges iggGetGlyphRangesKorean(IggFontAtlas handle);
  10. extern IggGlyphRanges iggGetGlyphRangesJapanese(IggFontAtlas handle);
  11. extern IggGlyphRanges iggGetGlyphRangesChineseFull(IggFontAtlas handle);
  12. extern IggGlyphRanges iggGetGlyphRangesChineseSimplifiedCommon(IggFontAtlas handle);
  13. extern IggGlyphRanges iggGetGlyphRangesCyrillic(IggFontAtlas handle);
  14. extern IggGlyphRanges iggGetGlyphRangesThai(IggFontAtlas handle);
  15. extern IggFont iggAddFontDefault(IggFontAtlas handle);
  16. extern IggFont iggAddFontDefaultV(IggFontAtlas handle, IggFontConfig config);
  17. extern IggFont iggAddFontFromFileTTF(IggFontAtlas handle, char const *filename, float sizePixels,
  18. IggFontConfig config, IggGlyphRanges glyphRanges);
  19. extern IggFont iggAddFontFromMemoryTTF(IggFontAtlas handle, char *font_data, int font_size, float sizePixels,
  20. IggFontConfig config, IggGlyphRanges glyphRanges);
  21. extern int iggFontAtlasFontCount(IggFontAtlas handle);
  22. extern void iggFontAtlasSetTexDesiredWidth(IggFontAtlas handle, int value);
  23. extern void iggFontAtlasGetTexDataAsAlpha8(IggFontAtlas handle, unsigned char **pixels,
  24. int *width, int *height, int *bytesPerPixel);
  25. extern void iggFontAtlasGetTexDataAsRGBA32(IggFontAtlas handle, unsigned char **pixels,
  26. int *width, int *height, int *bytesPerPixel);
  27. extern void iggFontAtlasSetTextureID(IggFontAtlas handle, IggTextureID id);
  28. extern void iggFontAtlasBuild(IggFontAtlas handle);
  29. extern void iggFontAtlasClear(IggFontAtlas handle);
  30. extern unsigned int iggFontAtlasGetFontBuilderFlags(IggFontAtlas handle);
  31. extern void iggFontAtlasSetFontBuilderFlags(IggFontAtlas handle, unsigned int flags);
  32. #ifdef __cplusplus
  33. }
  34. #endif