ttfGetGlyphImage function ttf
Get the pixel image for a UNICODE codepoint.
\param font the font to query. \param ch the codepoint to check. \param image_type a pointer filled in with the glyph image type, may be NULL. \returns an SDL_Surface containing the glyph, or NULL on failure; call SDL_GetError() for more information.
\threadsafety This function should be called on the thread that created the font.
\since This function is available since SDL_ttf 3.0.0.
extern SDL_DECLSPEC SDL_Surface * SDLCALL TTF_GetGlyphImage(TTF_Font *font, Uint32 ch, TTF_ImageType *image_type)
Implementation
Pointer<SdlSurface> ttfGetGlyphImage(
  Pointer<TtfFont> font,
  int ch,
  Pointer<Int32> imageType,
) {
  final ttfGetGlyphImageLookupFunction = _libTtf
      .lookupFunction<
        Pointer<SdlSurface> Function(
          Pointer<TtfFont> font,
          Uint32 ch,
          Pointer<Int32> imageType,
        ),
        Pointer<SdlSurface> Function(
          Pointer<TtfFont> font,
          int ch,
          Pointer<Int32> imageType,
        )
      >('TTF_GetGlyphImage');
  return ttfGetGlyphImageLookupFunction(font, ch, imageType);
}