Does OpenGL use Xlib to draw windows and render things, or is it the other way around?

前端 未结 3 724
谎友^
谎友^ 2021-02-01 10:26

I want to render fonts and lines on a window using either OpenGL or Xlib, but I\'d like to know which one is \"more fundamental\".

Usin

3条回答
  •  攒了一身酷
    2021-02-01 11:00

    Regardless of the image engine you finally use (also don't forget Wayland!) you want to talk to harbuzz-ng, freebidi, fontconfig and freetype for text. Unicode and Opentype are moving so fast those days it's not remotely interesting to reimplement the corresponding engines yourself.

    You may think 7-bit ascii is sufficient, but even embedded appliances do more now (if only to render i18n streams, music tags and so on).

    Pango-Cairo used to be the standard way to integrate all of those. But many big apps are moving to skia for speed nowadays.

提交回复
热议问题