Displaying SVG in OpenGL without intermediate raster

前端 未结 5 1689
青春惊慌失措
青春惊慌失措 2020-12-01 04:03

I have some simple SVG artwork (icon and glyph kind of things) which I want to display in an OpenGL app (developing in C++ on Debian, using Qt).

The obvious solution

5条回答
  •  星月不相逢
    2020-12-01 04:16

    Qt can do this.
    QSvgRenderer can take an SVG and paint it over a QGLWidget
    Its possibly you'll need to fiddle around with the paintEvent() abit if you want to draw anything else on the QGLWidget other than the SVG.

提交回复
热议问题