【问题标题】:Closest cross-platform alternative to Direct2D/DirectWrite? [closed]最接近 Direct2D/DirectWrite 的跨平台替代方案? [关闭]
【发布时间】:2017-12-19 15:32:16
【问题描述】:

对于特定于 Windows 的 2D API,有哪些好的跨平台替代方案?我正在寻找一种用于渲染简单几何对象的 API,以及一种用于渲染具有亚像素抗锯齿 (ClearType) 和 OpenType 支持的文本的 API,特别是对提示的支持。

【问题讨论】:

    标签: c++ graphics direct2d directwrite


    【解决方案1】:

    OpenGL 是事实上的跨平台图形 API。 OpenGLsupports the FreeType and OpenType libraries。较新版本的FreeType (2.7+) 支持与 DirectWrite 提供的类似的亚像素提示。

    【讨论】:

    • 显然,OpenGL 不保证在不同的实现中输出相同的像素。
    【解决方案2】:

    查看Simple DirectMedia Layer (SDL),它包含您所需要的内容。 SDL_ttf 是 libsdl 的扩展,提供文本渲染功能。

    【讨论】:

      猜你喜欢
      • 2022-06-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-25
      • 1970-01-01
      • 2016-08-26
      • 1970-01-01
      相关资源
      最近更新 更多