最接近Direct2D / DirectWrite的跨平台替代方案?

时间:2017-07-14 13:42:39

标签: c++ graphics direct2d directwrite

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

2 个答案:

答案 0 :(得分:1)

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

答案 1 :(得分:1)

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